mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-22 23:39:50 +00:00
Fix derpy derp.
This commit is contained in:
parent
164a0d76d3
commit
f6a4d35498
@ -94,7 +94,11 @@ void retro_init()
|
||||
{
|
||||
retro_base_directory = dir;
|
||||
// Make sure that we don't have any lingering slashes, etc, as they break Windows.
|
||||
retro_base_directory = retro_base_directory.substr(0, retro_base_directory.find_last_not_of("/\\"));
|
||||
size_t last = retro_base_directory.find_last_not_of("/\\");
|
||||
if (last != std::string::npos)
|
||||
last++;
|
||||
|
||||
retro_base_directory = retro_base_directory.substr(0, last);
|
||||
|
||||
MDFNI_Initialize(retro_base_directory.c_str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user