You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/BizHawk.Emulation.Cores/Consoles/Nintendo/QuickNES/LibQuickNES.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -227,11 +227,11 @@ public static void ThrowStringError(IntPtr p)
227
227
{
228
228
if(p==IntPtr.Zero)
229
229
return;
230
-
strings=Marshal.PtrToStringAnsi(p);
231
-
if(s=="Unsupported mapper"
232
-
||s=="Not an iNES file"// Not worth making a new exception for the iNES error, they ultimately are the same problem
233
-
||s==" truncated file"// This is a garbage rom not worth anyone's time but at least NesHawk handles these better, and these occur before the core has a chance to assess an unsupported mapper
234
-
)
230
+
vars=Marshal.PtrToStringAnsi(p);
231
+
if(sis"Unsupported mapper"
232
+
or"Not an iNES file"// Not worth making a new exception for the iNES error, they ultimately are the same problem
233
+
or "Malformed iNES file"// This is a garbage rom not worth anyone's time but at least NesHawk handles these better, and these occur before the core has a chance to assess an unsupported mapper
0 commit comments