Fixed crash when opening rom via file associations
This commit is contained in:
parent
073f1be566
commit
7813b7c9fe
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ namespace Mesen.GUI.Forms
|
|||
{
|
||||
var switches = new List<string>();
|
||||
for(int i = 0; i < args.Length; i++) {
|
||||
switches.Add(args[i].ToLowerInvariant().Replace("--", "/").Replace("-", "/").Replace("=/", "=-"));
|
||||
if(args[i] != null) {
|
||||
switches.Add(args[i].ToLowerInvariant().Replace("--", "/").Replace("-", "/").Replace("=/", "=-"));
|
||||
}
|
||||
}
|
||||
|
||||
if(forStartup) {
|
||||
|
|
Loading…
Add table
Reference in a new issue