From 4f236253407dbc7a8206f416e97be572f5234197 Mon Sep 17 00:00:00 2001 From: jsemu <> Date: Sat, 4 May 2019 18:02:59 -0400 Subject: [PATCH] fixups --- user_scripts/CoreGlueCode.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/user_scripts/CoreGlueCode.js b/user_scripts/CoreGlueCode.js index e744d8c..8b381ba 100644 --- a/user_scripts/CoreGlueCode.js +++ b/user_scripts/CoreGlueCode.js @@ -175,10 +175,6 @@ var IodineGUI = { } }; window.onload = function () { - if (!games[location.hash.substr(1)]) { - alert("Invalid game request!"); - return; - } //Populate settings: registerDefaultSettings(); //Initialize Iodine: @@ -195,6 +191,10 @@ window.onload = function () { registerGUIEvents(); //Register GUI settings. registerGUISettings(); + if (!games[location.hash.substr(1)]) { + alert("Invalid game request!"); + return; + } //Download the BIOS: downloadBIOS(); } @@ -212,6 +212,7 @@ function downloadROM(gamename) { function registerROM() { clearTempString(); processDownload(this, attachROM); + IodineGUI.Iodine.play(); } function registerIodineHandler() { try {