Adds a check for "OneDrive" in the execution path to the startup errors that prevent running. (#5522)

This commit is contained in:
Malkierian
2025-05-23 14:06:25 -07:00
committed by GitHub
parent a9fc317a5a
commit d69a45674f

View File

@@ -1145,6 +1145,13 @@ extern "C" void InitOTR() {
"Error", "SoH does not have proper file permissions. Please move it to a folder that does and run again.");
exit(1);
}
if (ownPath.string().find("OneDrive") != std::string::npos) {
Extractor::ShowErrorBox(
"Error",
"SoH appears to be in a OneDrive folder, which will cause issues. "
"Please move it to a folder outside of OneDrive, like the root of a drive (e.g. \"C:\\Games\\SoH\").");
exit(1);
}
#endif
#if not defined(__SWITCH__) && not defined(__WIIU__)