parent
266af81b0f
commit
ea40c09db7
|
@ -1717,10 +1717,10 @@ bool LoadROM(const char* path, const char* sram, bool direct)
|
|||
|
||||
NDS::Reset();
|
||||
|
||||
char* romname = strrchr(path, '/');
|
||||
char* romname = strrchr((char*)path, '/');
|
||||
if (!romname)
|
||||
{
|
||||
romname = strrchr(path, '\\');
|
||||
romname = strrchr((char*)path, '\\');
|
||||
if (!romname)
|
||||
romname = (char*)&path[-1];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue