mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
Update StorageManager.cpp
This commit is contained in:
parent
808ff28aa5
commit
37eca9b95a
@ -87,13 +87,13 @@ std::string GetMusicFolder() {
|
||||
std::string GetPreviewPath(std::string path) {
|
||||
std::string pathView = path;
|
||||
|
||||
if (Path(GetLocalFolder()) == Path(path + "\\LocalState")) {
|
||||
return "AppData";
|
||||
}
|
||||
pathView = ReplaceAll(pathView, "/", "\\");
|
||||
pathView = ReplaceAll(pathView, GetLocalFolder(), "LocalState");
|
||||
pathView = ReplaceAll(pathView, GetTempFolder(), "TempState");
|
||||
pathView = ReplaceAll(pathView, GetInstallationFolder(), "Installation folder");
|
||||
auto appData = ReplaceAll(GetLocalFolder(), "\\LocalState", "");
|
||||
pathView = ReplaceAll(pathView, appData, "AppData");
|
||||
|
||||
return pathView;
|
||||
}
|
||||
bool isLocalState(std::string path) {
|
||||
|
Loading…
Reference in New Issue
Block a user