From 302b2fcc3fb6164f92b87afa153d1734799e40a3 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 14 Sep 2022 23:12:40 +0100 Subject: [PATCH] Force flush when dirty refresh returns true --- app/src/main/cpp/skyline/common/dirty_tracking.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/common/dirty_tracking.h b/app/src/main/cpp/skyline/common/dirty_tracking.h index 3bfaf29e..4c6cb64e 100644 --- a/app/src/main/cpp/skyline/common/dirty_tracking.h +++ b/app/src/main/cpp/skyline/common/dirty_tracking.h @@ -222,7 +222,8 @@ namespace skyline::dirty { dirty = false; value.Flush(std::forward(args)...); } else if constexpr (std::is_base_of_v) { - value.Refresh(std::forward(args)...); + if (value.Refresh(std::forward(args)...)) + value.Flush(std::forward(args)...); } }