Fix some warnings

This commit is contained in:
Megamouse 2024-03-26 11:28:50 +01:00
parent 0e73b58abf
commit e05239f3d9
2 changed files with 1 additions and 6 deletions

View file

@ -3006,7 +3006,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
thread_ctrl::wait_for(5'000);
}
for (int i = 0; thread_ctrl::state() != thread_state::aborting;)
while (thread_ctrl::state() != thread_state::aborting)
{
if (auto ar_ptr = to_ar.load())
{
@ -3245,8 +3245,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
if (savestate)
{
auto& ar = *to_ar.load();
fs::stat_t file_stat{};
if (!file.commit() || !fs::get_stat(path, file_stat))