Fix logical error

This commit is contained in:
Ethan O'Brien 2024-02-12 13:19:28 -06:00 committed by GitHub
parent 42d0fabcea
commit 507fdcd51d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -723,6 +723,7 @@ class EmulatorJS {
const name = this.config.gameName.replace(invalidCharacters, "").trim();
if (name) return name;
}
if (!this.fileName) return "game";
let parts = this.fileName.split(".");
parts.splice(parts.length-1, 1);
return parts.join(".");