diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 69344a436..acff92c09 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -139,11 +139,22 @@ void ViewController::setMenuColors() void ViewController::legacyAppDataDialog() { - const std::string upgradeMessage { + const std::string upgradeMessage + { "AS OF ES-DE 3.0 THE APPLICATION DATA DIRECTORY HAS CHANGED FROM \".emulationstation\" " "to \"ES-DE\"\nPLEASE RENAME YOUR CURRENT DATA DIRECTORY:\n" + - Utils::FileSystem::getAppDataDirectory() + "\nTO THE FOLLOWING:\n" + - Utils::FileSystem::getParent(Utils::FileSystem::getAppDataDirectory()) + "/ES-DE"}; +#if defined(_WIN64) + Utils::String::replace(Utils::FileSystem::getAppDataDirectory(), "/", "\\") + + "\nTO THE FOLLOWING:\n" + + Utils::String::replace( + Utils::FileSystem::getParent(Utils::FileSystem::getAppDataDirectory()), "/", "\\") + + "\\ES-DE" + }; +#else + Utils::FileSystem::getAppDataDirectory() + "\nTO THE FOLLOWING:\n" + + Utils::FileSystem::getParent(Utils::FileSystem::getAppDataDirectory()) + "/ES-DE" + }; +#endif mWindow->pushGui(new GuiMsgBox( HelpStyle(), upgradeMessage.c_str(), "OK", [] {}, "", nullptr, "", nullptr, nullptr, true,