Skip to content

Commit 4b3e180

Browse files
committed
Remove platform check for path cache
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 60ae1e6 commit 4b3e180

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

MarathonRecomp/kernel/io/file_system.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ FileHandle* XCreateFileA
110110
}
111111

112112
fileStream.open(filePath, fileOpenMode);
113-
#ifdef __linux__
113+
114114
if (!fileStream.is_open()) {
115115
std::filesystem::path cachedPath = FindInPathCache(filePath);
116116
if (!cachedPath.empty()) {
117117
fileStream.open(cachedPath, fileOpenMode);
118118
}
119119
}
120-
#endif
120+
121121
if (!fileStream.is_open())
122122
{
123123
#ifdef _WIN32

MarathonRecomp/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ void KiSystemStartup()
6767
const auto gameContent = XamMakeContent(XCONTENTTYPE_RESERVED, "Game");
6868
const std::string gamePath = (const char*)(GetGamePath() / "game").u8string().c_str();
6969

70-
#ifdef __linux__
71-
BuildPathCache(gamePath);
72-
#endif
70+
BuildPathCache(gamePath);
7371

7472
XamRegisterContent(gameContent, gamePath);
7573

0 commit comments

Comments
 (0)