GRAAAAAAAHH

can we be done with the stupidity now pls
This commit is contained in:
Arisotura 2021-10-28 18:21:26 +02:00 committed by GitHub
parent 266af81b0f
commit ea40c09db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}