Skip to content

Commit 1efc670

Browse files
committed
Bugfix: if on macOS/Linux, export ReplayData to User folder
1 parent ef326ab commit 1efc670

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Core/Core/WiiRoot.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ void ShutdownWiiRoot()
238238
if (Config::Get(Config::SYSCONF_SAVE_REPLAYS))
239239
{
240240
std::string s_brawl_temp_save = File::GetUserPath(D_USER_IDX) + "WiiSession" DIR_SEP + "title" DIR_SEP + "00010000" DIR_SEP + "52534245" DIR_SEP + "data" DIR_SEP;
241-
std::string replay_data = "./ReplayData";
241+
#if defined(_WIN32)
242+
std::string replay_data = "./ReplayData";
243+
#else
244+
std::string replay_data = File::GetUserPath(D_USER_IDX) + "ReplayData" DIR_SEP;
245+
#endif
242246

243247
if (File::Exists(s_brawl_temp_save + "collect.vff"))
244248
{

0 commit comments

Comments
 (0)