Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 6f5271f

Browse files
committed
fix for Windows.hx
1 parent c790b43 commit 6f5271f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

source/Main.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ class Main extends Sprite
8989
gameWidth = Math.ceil(stageWidth / zoom);
9090
gameHeight = Math.ceil(stageHeight / zoom);
9191
}
92+
93+
Paths.assetsTree = new AssetsLibraryList();
9294

9395
ClientPrefs.loadDefaultStuff();
9496
addChild(new FlxGame(gameWidth, gameHeight, initialState, framerate, framerate, skipSplash, startFullscreen));
@@ -111,8 +113,6 @@ class Main extends Sprite
111113
#if CRASH_HANDLER
112114
Lib.current.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onCrash);
113115
#end
114-
115-
Paths.assetsTree = new AssetsLibraryList();
116116

117117
#if GLOBAL_SCRIPT
118118
codename.scripting.GlobalScript.init();

source/codename/backend/utils/native/Windows.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import codename.backend.utils.NativeAPI.MessageBoxIcon;
2727
#include <wingdi.h>
2828
#include <shellapi.h>
2929
#include <uxtheme.h>
30+
#include <Main.h>
3031

3132
#define SAFE_RELEASE(punk) \\
3233
if ((punk) != NULL) \\
@@ -106,7 +107,7 @@ class AudioFixClient : public IMMNotificationClient {
106107
EDataFlow flow, ERole role,
107108
LPCWSTR pwstrDeviceId)
108109
{
109-
_hx_system::Main_obj::audioDisconnected = true;
110+
Main_obj::audioDisconnected = true;
110111
return S_OK;
111112
};
112113
};

0 commit comments

Comments
 (0)