| 257 | } |
| 258 | |
| 259 | std::filesystem::path XivAlexander::Config::InitRepository::ResolveGameOpcodeConfigPath() { |
| 260 | const auto gameReleaseInfo = Misc::GameInstallationDetector::GetGameReleaseInfo(); |
| 261 | return ResolveConfigStorageDirectoryPath() / std::format(L"game.{}.{}.json", gameReleaseInfo.CountryCode, gameReleaseInfo.PathSafeGameVersion); |
| 262 | } |
| 263 | |
| 264 | std::filesystem::path XivAlexander::Config::TranslatePath(const std::filesystem::path & path, const std::filesystem::path & relativeTo) { |
| 265 | return Utils::Win32::TranslatePath(path, relativeTo.empty() ? Dll::Module().PathOf().parent_path() : relativeTo); |