BLARG
This commit is contained in:
parent
fe96944fc0
commit
cce9de5ee1
|
@ -87,6 +87,7 @@ std::string GetAssetPath(bool gba, std::string configpath, std::string ext, std:
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
int i = configpath.length() - 1;
|
int i = configpath.length() - 1;
|
||||||
|
if (i < 0) break;
|
||||||
if (configpath[i] == '/' || configpath[i] == '\\')
|
if (configpath[i] == '/' || configpath[i] == '\\')
|
||||||
configpath = configpath.substr(0, i);
|
configpath = configpath.substr(0, i);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue