Skip to content

Instantly share code, notes, and snippets.

@MarianoGnu
Created February 11, 2013 20:19
Show Gist options
  • Save MarianoGnu/4757269 to your computer and use it in GitHub Desktop.
Save MarianoGnu/4757269 to your computer and use it in GitHub Desktop.
diff --git "a/C:\\Users\\Mariano\\AppData\\Local\\Temp\\TortoiseGit\\fil5688.tmp\\filefinder-95804c6-left.cpp" "b/C:\\Users\\Mariano\\Documents\\GitHub\\Player\\src\\filefinder.cpp"
index af1ecb2..bb6a387 100644
--- "a/C:\\Users\\Mariano\\AppData\\Local\\Temp\\TortoiseGit\\fil5688.tmp\\filefinder-95804c6-left.cpp"
+++ "b/C:\\Users\\Mariano\\Documents\\GitHub\\Player\\src\\filefinder.cpp"
@@ -225,6 +225,13 @@ void FileFinder::InitRtpPaths() {
rtp_path = Registry::ReadStrValue(HKEY_LOCAL_MACHINE, "Software\\ASCII\\RPG" + version_str, "RuntimePackagePath");
if(! rtp_path.empty()) { add_rtp_path(rtp_path); }
+
+ rtp_path = Registry::ReadStrValue(HKEY_CURRENT_USER, "Software\\Enterbrain\\rpg" + version_str, "RuntimePackagePath");
+ if(! rtp_path.empty()) { add_rtp_path(rtp_path); }
+
+ rtp_path = Registry::ReadStrValue(HKEY_LOCAL_MACHINE, "Software\\Enterbrain\\rpg" + version_str, "RuntimePackagePath");
+ if(! rtp_path.empty()) { add_rtp_path(rtp_path); }
+
#elif defined(GEKKO)
add_rtp_path("sd:/data/rtp/" + version_str + "/");
add_rtp_path("usb:/data/rtp/" + version_str + "/");
@Ghabry
Copy link

Ghabry commented Feb 11, 2013

I suggest adding:

HKEY_CURRENT_USER, "Software\\ASCII\\RPG" + version_str, "RuntimePackagePath"

too.

And the same code too for x64:

#ifdef _WIN64
 rtp_path = Registry::ReadStrValue(HKEY_LOCAL_MACHINE, "Software\\Wow6432Node\\ASCII\\RPG" + version_str, "RuntimePackagePath");
if(! rtp_path.empty()) { add_rtp_path(rtp_path); }

rtp_path = Registry::ReadStrValue(HKEY_CURRENT_USER, "Software\\Wow6432Node\\Enterbrain\\rpg" + version_str, "RuntimePackagePath");
if(! rtp_path.empty()) { add_rtp_path(rtp_path); }

rtp_path = Registry::ReadStrValue(HKEY_LOCAL_MACHINE, "Software\\Wow6432Node\\Enterbrain\\rpg" + version_str, "RuntimePackagePath");
if(! rtp_path.empty()) { add_rtp_path(rtp_path); }

endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment