mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
app/emulator_window: store recent.toml in storage root
This makes it consistent with the config file.
This commit is contained in:
parent
da2710f18c
commit
6c5423ceed
|
|
@ -1137,7 +1137,7 @@ void EmulatorWindow::FillRecentlyLaunchedTitlesMenu(
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmulatorWindow::ReadRecentlyLaunchedTitles() {
|
void EmulatorWindow::ReadRecentlyLaunchedTitles() {
|
||||||
std::ifstream file("recent.toml");
|
std::ifstream file(emulator()->storage_root() / "recent.toml");
|
||||||
if (!file.is_open()) {
|
if (!file.is_open()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -1198,7 +1198,8 @@ void EmulatorWindow::AddRecentlyLaunchedTitle(
|
||||||
toml_table->end();
|
toml_table->end();
|
||||||
|
|
||||||
// Open and write serialized data.
|
// 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 << *toml_table;
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue