We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe96944 commit cce9de5Copy full SHA for cce9de5
src/frontend/qt_sdl/ROMManager.cpp
@@ -87,6 +87,7 @@ std::string GetAssetPath(bool gba, std::string configpath, std::string ext, std:
87
for (;;)
88
{
89
int i = configpath.length() - 1;
90
+ if (i < 0) break;
91
if (configpath[i] == '/' || configpath[i] == '\\')
92
configpath = configpath.substr(0, i);
93
else
0 commit comments