Swap Duktape for quickjs-ng

Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
committed 2026-04-01 02:18:36 +11:00
1 parent 69518538fd
commit 16cd1c07ff
143 files changed
+97493 -120975

No files matched your search

+10 -5
View File
@@ -164,17 +164,22 @@ static constexpr float kWindowScrollLocations[][2] = {
}
}
/**
*
* rct2: 0x006E77A1
*/
void WindowUpdateAll()
void WindowCullDead()
{
// Remove all windows in gWindowList that have the WindowFlag::dead flag
gWindowList.erase(
std::remove_if(
gWindowList.begin(), gWindowList.end(), [](auto&& w) -> bool { return w->flags.has(WindowFlag::dead); }),
gWindowList.end());
}
/**
*
* rct2: 0x006E77A1
*/
void WindowUpdateAll()
{
WindowCullDead();
// Periodic update happens every second so 40 ticks.
if (gCurrentRealTimeTicks >= gWindowUpdateTicks)