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
commit d69a45674f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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."); "Error", "SoH does not have proper file permissions. Please move it to a folder that does and run again.");
exit(1); 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 #endif
#if not defined(__SWITCH__) && not defined(__WIIU__) #if not defined(__SWITCH__) && not defined(__WIIU__)