diff options
author | Arisotura <thetotalworm@gmail.com> | 2022-03-08 14:42:02 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2022-03-08 14:42:02 +0100 |
commit | cce9de5ee1f51e906a644922b2ada6644d81287a (patch) | |
tree | 036e34db82045a873e889fe7e120337bb619148a /src/frontend/qt_sdl | |
parent | fe96944fc096d8a410b75cdd8273987322275510 (diff) |
BLARG
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/ROMManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/ROMManager.cpp b/src/frontend/qt_sdl/ROMManager.cpp index d24e21a..304862e 100644 --- a/src/frontend/qt_sdl/ROMManager.cpp +++ b/src/frontend/qt_sdl/ROMManager.cpp @@ -87,6 +87,7 @@ std::string GetAssetPath(bool gba, std::string configpath, std::string ext, std: for (;;) { int i = configpath.length() - 1; + if (i < 0) break; if (configpath[i] == '/' || configpath[i] == '\\') configpath = configpath.substr(0, i); else |