Skip to content

Commit

Permalink
fix(zc): do not update saves order.txt in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Aug 5, 2023
1 parent 7ebfcf8 commit 1ac8d0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/zc/saves.cpp
Expand Up @@ -1807,6 +1807,9 @@ static int move_legacy_save_file()

static void do_save_order()
{
if (standalone_mode)
return;

std::ofstream out(get_save_order_path(), std::ios::binary);
for (auto& save : saves)
{
Expand All @@ -1833,6 +1836,9 @@ static int init_from_save_folder()
}
}

if (standalone_mode)
return 0;

std::ifstream file(get_save_order_path());
std::vector<std::string> lines;
if (file.is_open())
Expand Down

0 comments on commit 1ac8d0b

Please sign in to comment.