Fixing core to work with win32 #1257

This commit is contained in:
Hordur Johannsson 2024-08-25 15:37:39 +00:00 committed by Stephen Gutekanst
parent 17450fde65
commit 13e53e7176
3 changed files with 8 additions and 3 deletions

View file

@ -25,7 +25,7 @@ pub fn main() !void {
// possible on all platforms.
if (mach.Core.supports_non_blocking) {
mach.Core.non_blocking = true;
while (mach.mods.mod.mach_core.state != .exited) {
while (mach.mods.mod.mach_core.state().state != .exited) {
// Execute systems until a frame has been finished.
try mach.mods.dispatchUntil(stack_space, .mach_core, .frame_finished);
}