mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Fix logical error
This commit is contained in:
parent
42d0fabcea
commit
507fdcd51d
1 changed files with 1 additions and 0 deletions
|
@ -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(".");
|
||||
|
|
Loading…
Reference in a new issue