Skip to content

Commit

Permalink
RMG-Core: ensure core is hooked in CoreGetUser{Data,Cache}Directory()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Feb 27, 2025
1 parent e1bbf66 commit acc2c80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/RMG-Core/Directories.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,21 @@ std::filesystem::path CoreGetDefaultScreenshotDirectory(void)

std::filesystem::path CoreGetUserDataDirectory(void)
{
if (!m64p::Config.IsHooked())
{
return std::filesystem::path();
}

return std::filesystem::path(m64p::Config.GetUserDataPath());
}

std::filesystem::path CoreGetUserCacheDirectory(void)
{
if (!m64p::Config.IsHooked())
{
return std::filesystem::path();
}

return std::filesystem::path(m64p::Config.GetUserCachePath());
}

Expand Down

0 comments on commit acc2c80

Please sign in to comment.