Skip to content

Commit

Permalink
Add todo to resolvePaths
Browse files Browse the repository at this point in the history
  • Loading branch information
pskelton committed Mar 14, 2024
1 parent 275be41 commit 8380f06
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Application/GamePathResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static const PathResolutionConfig mm6Config = {
"HKEY_LOCAL_MACHINE/SOFTWARE/New World Computing/Might and Magic\xC2\xAE VI/1.0/AppPath", // \xC2\xAE is (R) in utf-8.
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/GOG.com/Games/1207661253/PATH",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/GOG.com/GOGMM6/PATH",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/New World Computing/Might and Magic\xC2\xAE VI/1.0/AppPath",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/New World Computing/Might and Magic\xC2\xAE VI/1.0/AppPath"
}
};

Expand All @@ -31,7 +31,7 @@ static const PathResolutionConfig mm7Config = {
"HKEY_LOCAL_MACHINE/SOFTWARE/New World Computing/Might and Magic VII/1.0/AppPath",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/GOG.com/Games/1207658916/Path",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/GOG.com/GOGMM7/PATH",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/New World Computing/Might and Magic VII/1.0/AppPath",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/New World Computing/Might and Magic VII/1.0/AppPath"
}
};

Expand All @@ -41,7 +41,7 @@ static const PathResolutionConfig mm8Config = {
"HKEY_LOCAL_MACHINE/SOFTWARE/GOG.com/GOGMM8/PATH",
"HKEY_LOCAL_MACHINE/SOFTWARE/New World Computing/Might and Magic Day of the Destroyer/1.0/AppPath",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/GOG.com/GOGMM8/PATH",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/New World Computing/Might and Magic Day of the Destroyer/1.0/AppPath",
"HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/New World Computing/Might and Magic Day of the Destroyer/1.0/AppPath"
}
};

Expand All @@ -55,6 +55,7 @@ static std::vector<std::string> resolvePaths(Environment *environment, const Pat

std::vector<std::string> result;

// TODO(pskelton): std::filesystem::current_path().string()?
// Otherwise we check PWD first.
result.push_back(".");

Expand Down

0 comments on commit 8380f06

Please sign in to comment.