@@ -8,7 +8,7 @@ namespace Windows
88 class Registry final
99 {
1010 public: // Data
11- enum class WindowsBit
11+ enum class Arch
1212 {
1313 Win32,
1414 Win64
@@ -27,12 +27,12 @@ namespace Windows
2727 };
2828
2929 // / @brief Paths in Window's registry to the C&C: Generals and C&C: Generals — Zero Hour
30- inline static const std::map<Games, std::map<WindowsBit , std::wstring>> PATHS_TO_GAMES =
30+ inline static const std::map<Games, std::map<Arch , std::wstring>> PATHS_TO_GAMES =
3131 {
32- {Games::Generals, {{WindowsBit ::Win32, L" SOFTWARE\\ Electronic Arts\\ EA Games\\ Generals" },
33- {WindowsBit ::Win64, L" SOFTWARE\\ WOW6432Node\\ Electronic Arts\\ EA Games\\ Generals" }}},
34- {Games::GeneralsZeroHour, {{WindowsBit ::Win32, L" SOFTWARE\\ Electronic Arts\\ EA Games\\ Command and Conquer Generals Zero Hour" },
35- {WindowsBit ::Win64, L" SOFTWARE\\ WOW6432Node\\ Electronic Arts\\ EA Games\\ Command and Conquer Generals Zero Hour" }}},
32+ {Games::Generals, {{Arch ::Win32, L" SOFTWARE\\ Electronic Arts\\ EA Games\\ Generals" },
33+ {Arch ::Win64, L" SOFTWARE\\ WOW6432Node\\ Electronic Arts\\ EA Games\\ Generals" }}},
34+ {Games::GeneralsZeroHour, {{Arch ::Win32, L" SOFTWARE\\ Electronic Arts\\ EA Games\\ Command and Conquer Generals Zero Hour" },
35+ {Arch ::Win64, L" SOFTWARE\\ WOW6432Node\\ Electronic Arts\\ EA Games\\ Command and Conquer Generals Zero Hour" }}},
3636 };
3737
3838 public: // Methods
@@ -43,7 +43,7 @@ namespace Windows
4343 // / @brief Returns equal string for enum class value.
4444 static QString ToQString (Games game);
4545 // / @brief Returns actual Windows bit like a enum value.
46- static WindowsBit GetWindowsBit ();
46+ static Arch GetWindowsBit ();
4747
4848 // / @brief Returns REG_SZ string value from MS Windows registry.
4949 static std::string GetTextFromKeyA (RootFolder Folder, const char * pPathToFolder, const char * pKeyName);
0 commit comments