- fixed: On Windows the cache path could end up with double slashes when no AppData folder could be found.

This commit is contained in:
Christoph Oelckers 2015-05-07 00:45:36 +02:00
parent 535102ae6e
commit b587c85a81

View file

@ -146,6 +146,7 @@ FString M_GetCachePath(bool create)
// Don't use GAME_DIR and such so that ZDoom and its child ports can
// share the node cache.
path += "/zdoom/cache";
path.Substitute("//", "/"); // needed because progdir ends with a slash.
return path;
}