2
0
mirror of https://github.com/skyline-emu/skyline.git synced 2025-07-25 10:11:33 +03:00

Force flush when dirty refresh returns true

This commit is contained in:
Billy Laws 2022-09-14 23:12:40 +01:00
parent ec4ea5c5d7
commit 302b2fcc3f

@ -222,7 +222,8 @@ namespace skyline::dirty {
dirty = false;
value.Flush(std::forward<Args>(args)...);
} else if constexpr (std::is_base_of_v<RefreshableManualDirty, T>) {
value.Refresh(std::forward<Args>(args)...);
if (value.Refresh(std::forward<Args>(args)...))
value.Flush(std::forward<Args>(args)...);
}
}