From 6c5423ceed84e609e5c56eba2090c91f76919d78 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Tue, 6 Dec 2022 15:07:04 +0000 Subject: [PATCH] app/emulator_window: store recent.toml in storage root This makes it consistent with the config file. --- src/xenia/app/emulator_window.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xenia/app/emulator_window.cc b/src/xenia/app/emulator_window.cc index bee44ba6e..4d2789be4 100644 --- a/src/xenia/app/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -1137,7 +1137,7 @@ void EmulatorWindow::FillRecentlyLaunchedTitlesMenu( } void EmulatorWindow::ReadRecentlyLaunchedTitles() { - std::ifstream file("recent.toml"); + std::ifstream file(emulator()->storage_root() / "recent.toml"); if (!file.is_open()) { return; } @@ -1198,7 +1198,8 @@ void EmulatorWindow::AddRecentlyLaunchedTitle( toml_table->end(); // Open and write serialized data. - std::ofstream file("recent.toml", std::ofstream::trunc); + std::ofstream file(emulator()->storage_root() / "recent.toml", + std::ofstream::trunc); file << *toml_table; file.close(); }