This commit is contained in:
Arisotura 2022-03-08 14:42:02 +01:00
parent fe96944fc0
commit cce9de5ee1
1 changed files with 1 additions and 0 deletions

View File

@ -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