Skip to content

Commit

Permalink
Fixed invalid launch string -'s when running older versions of medanf…
Browse files Browse the repository at this point in the history
…en (or emu4crt) - #222
  • Loading branch information
Asnivor committed Dec 4, 2018
1 parent 4424587 commit 630261f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions BuildTools/ChangeLog/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ title: Changelog
* (Enhancement) - Added compatibility for mednafen v1.21.2 and v1.21.3 ([214](https://github.com/Asnivor/MedLaunch/issues/214))
* (BugFix) - Mitigated TimeSpan overflow exception ([215](https://github.com/Asnivor/MedLaunch/issues/215))
* (Enhancement) - Background picture can now be hidden (Opacity set to 0) ([220](https://github.com/Asnivor/MedLaunch/issues/220))
* (BugFix) - Remove unneccesary dashes generated at the start of a launch string if user is running an older version of mednafen (or emu4crt.exe renamed to mednafen.exe)

##### [0.5.25.3](https://medlaunch.info/releases/0-5-25-x)
###### 2018-03-22
Expand Down
2 changes: 1 addition & 1 deletion MedLaunch/Classes/VersionChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public static string GetCompatLaunchString(string launchParams)
}
}

working = " -" + working.TrimStart('-').Replace("- -", "").Replace("- -", "").TrimStart();
working = " -" + working.TrimStart('-').Replace("- -", "").Replace("- -", "").Replace("--", "").Replace("--", "").TrimStart();

string currIntOnly;
string targetIntOnly;
Expand Down

0 comments on commit 630261f

Please sign in to comment.