From e486e70181340758e8fa61d376c00ed9cf31428f Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Thu, 8 Aug 2024 09:51:14 -0500 Subject: [PATCH] Maintain backwards compatibility with version.json --- data/src/emulator.js | 4 ++-- data/version.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/src/emulator.js b/data/src/emulator.js index 98c4e0f..37f1544 100644 --- a/data/src/emulator.js +++ b/data/src/emulator.js @@ -210,8 +210,8 @@ class EmulatorJS { if (response.ok) { response.text().then(body => { let version = JSON.parse(body); - if (this.versionAsInt(this.ejs_version) < this.versionAsInt(version.current_version)) { - console.log('Using EmulatorJS version ' + this.versionAsInt(this.ejs_version) + ' but the newest version is ' + this.versionAsInt(version.current_version) + '\nopen https://github.com/EmulatorJS/EmulatorJS to update'); + if (this.versionAsInt(this.ejs_version) < this.versionAsInt(version.version)) { + console.log('Using EmulatorJS version ' + this.ejs_version + ' but the newest version is ' + version.current_version + '\nopen https://github.com/EmulatorJS/EmulatorJS to update'); } }) } diff --git a/data/version.json b/data/version.json index 48ef9a5..43863c2 100644 --- a/data/version.json +++ b/data/version.json @@ -1 +1 @@ -{ "current_version": "4.0.12" } +{ "readme": "CURRENT_VERSION IS NO LONGER UPDATED. USE VERION", "current_version": 9999, "version": "4.0.12" }