mirror of https://github.com/PCSX2/pcsx2.git
parent
356429d0e7
commit
c5d727da39
|
@ -429,7 +429,11 @@ void cdvdReloadElfInfo(wxString elfoverride)
|
||||||
static __fi s32 StrToS32(const wxString& str, int base = 10)
|
static __fi s32 StrToS32(const wxString& str, int base = 10)
|
||||||
{
|
{
|
||||||
long l;
|
long l;
|
||||||
str.ToLong(&l, base);
|
if (!str.ToLong(&l, base)) {
|
||||||
|
Console.Error(L"StrToS32: fail to translate '%s' as long", WX_STR(str));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue