Skip to content

Commit a3b2645

Browse files
More UI Updates
1 parent 438ac8a commit a3b2645

6 files changed

Lines changed: 359 additions & 182 deletions

File tree

data/loader.js

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
(async function () {
2-
console.log("[Loader] ========================================");
3-
console.log("[Loader] loader.js executing - START");
4-
console.log("[Loader] ========================================");
52
const scripts = [
63
// Netplay modules first (in dependency order)
74
"netplay/core/input/frameworks/SimpleController.js",
@@ -60,37 +57,10 @@
6057
})();
6158
// Debug logging for netplay modules
6259
if (file.includes("netplay")) {
63-
console.log("[Loader] 📦 About to load netplay script:", file);
64-
console.log("[Loader] 📦 Full URL will be:", script.src);
6560
}
6661
script.onload = () => {
6762
if (file.includes("netplay")) {
68-
console.log("[Loader] ✅ Netplay script loaded successfully:", file);
6963
// Verify critical globals after loading key files
70-
if (file === "netplay/core/NetplayEngine.js") {
71-
const exists = typeof window.NetplayEngine !== "undefined";
72-
console.log(
73-
"[Loader] 🔍 NetplayEngine global check:",
74-
exists ? "✅ EXISTS" : "❌ MISSING"
75-
);
76-
if (!exists) {
77-
console.error(
78-
"[Loader] ⚠️ WARNING: NetplayEngine.js loaded but window.NetplayEngine is undefined!"
79-
);
80-
}
81-
}
82-
if (file === "netplay/adapters/emulatorjs/EmulatorJSAdapter.js") {
83-
const exists = typeof window.EmulatorJSAdapter !== "undefined";
84-
console.log(
85-
"[Loader] 🔍 EmulatorJSAdapter global check:",
86-
exists ? "✅ EXISTS" : "❌ MISSING"
87-
);
88-
if (!exists) {
89-
console.error(
90-
"[Loader] ⚠️ WARNING: EmulatorJSAdapter.js loaded but window.EmulatorJSAdapter is undefined!"
91-
);
92-
}
93-
}
9464
}
9565
resolve();
9666
};
@@ -157,50 +127,20 @@
157127
}
158128
}
159129

160-
console.log("[Loader] About to start loading", scripts.length, "scripts");
161130
if ("undefined" != typeof EJS_DEBUG_XX && true === EJS_DEBUG_XX) {
162-
console.log("[Loader] Using DEBUG mode");
163131
for (let i = 0; i < scripts.length; i++) {
164-
console.log(
165-
"[Loader] Loading script",
166-
i + 1,
167-
"of",
168-
scripts.length,
169-
":",
170-
scripts[i]
171-
);
172132
await loadScript(scripts[i]);
173133
}
174134
await loadStyle("emulator.css");
175135
} else {
176136
// RomM uses the SFU fork primarily for netplay; it does not bundle cores.
177137
// Always load the non-minified runtime so core CDN fallbacks can be patched
178138
// without touching huge single-line minified bundles.
179-
console.log("[Loader] Using non-minified mode (RomM default)");
180139
for (let i = 0; i < scripts.length; i++) {
181-
console.log(
182-
"[Loader] Loading script",
183-
i + 1,
184-
"of",
185-
scripts.length,
186-
":",
187-
scripts[i]
188-
);
189140
await loadScript(scripts[i]);
190141
}
191142
await loadStyle("emulator.css");
192143
}
193-
console.log("[Loader] ========================================");
194-
console.log("[Loader] All scripts loaded, initializing EmulatorJS");
195-
console.log(
196-
"[Loader] Checking for NetplayEngine:",
197-
typeof window.NetplayEngine
198-
);
199-
console.log(
200-
"[Loader] Checking for EmulatorJSAdapter:",
201-
typeof window.EmulatorJSAdapter
202-
);
203-
console.log("[Loader] ========================================");
204144
const config = {};
205145
config.gameUrl = window.EJS_gameUrl;
206146
config.dataPath = scriptPath;

0 commit comments

Comments
 (0)