foxygit / doom Log in
commit 259fc72c13c4e155415c1e9cc07a3f46be86a8d9
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Sat Aug 29 12:05:26 2015 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Sat Aug 29 12:09:19 2015 -0700

    d_iwad: change "gogcom_collectors_edition" to "root_path"
---
 src/d_iwad.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/d_iwad.c b/src/d_iwad.c
index 5f938c79..b413c010 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -144,7 +144,7 @@ static registry_value_t uninstall_values[] =

 // Values installed by the GOG.com and Collector's Edition versions

-static registry_value_t gogcom_collectors_edition_values[] =
+static registry_value_t root_path_keys[] =
 {
     // Doom Collector's Edition

@@ -181,7 +181,7 @@ static registry_value_t gogcom_collectors_edition_values[] =

 // Subdirectories of the above install path, where IWADs are installed.

-static char *gogcom_collectors_edition_subdirs[] =
+static char *root_path_subdirs[] =
 {
     ".",
     "Doom2",
@@ -301,27 +301,27 @@ static void CheckUninstallStrings(void)

 // Check for GOG.com and Doom: Collector's Edition

-static void CheckGOGcomCollectorsEdition(void)
+static void CheckInstallRootPaths(void)
 {
     unsigned int i;

-    for (i=0; i<arrlen(gogcom_collectors_edition_values); ++i)
+    for (i=0; i<arrlen(root_path_keys); ++i)
     {
         char *install_path;
         char *subpath;
         unsigned int j;

-        install_path = GetRegistryString(&gogcom_collectors_edition_values[i]);
+        install_path = GetRegistryString(&root_path_keys[i]);

         if (install_path == NULL)
         {
             continue;
         }

-        for (j=0; j<arrlen(gogcom_collectors_edition_subdirs); ++j)
+        for (j=0; j<arrlen(root_path_subdirs); ++j)
         {
             subpath = M_StringJoin(install_path, DIR_SEPARATOR_S,
-                                   gogcom_collectors_edition_subdirs[j], NULL);
+                                   root_path_subdirs[j], NULL);
             AddIWADDir(subpath);
         }

@@ -670,7 +670,7 @@ static void BuildIWADDirList(void)
     // Search the registry and find where IWADs have been installed.

     CheckUninstallStrings();
-    CheckGOGcomCollectorsEdition();
+    CheckInstallRootPaths();
     CheckSteamEdition();
     CheckDOSDefaults();