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