mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 05:07:11 +00:00
Removes useless '/' make it doubles in somes cases (#1482)
This commit is contained in:
parent
5512be8f31
commit
bf06ce6340
@ -47,11 +47,11 @@ export class SceneBase extends Phaser.Scene {
|
||||
if (folder) {
|
||||
folder += "/";
|
||||
}
|
||||
this.load.atlas(key, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}/${filenameRoot}.json`));
|
||||
this.load.atlas(key, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}${filenameRoot}.json`));
|
||||
if (folder.startsWith("ui")) {
|
||||
legacyCompatibleImages.push(key);
|
||||
folder = folder.replace("ui", "ui/legacy");
|
||||
this.load.atlas(`${key}_legacy`, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}/${filenameRoot}.json`));
|
||||
this.load.atlas(`${key}_legacy`, this.getCachedUrl(`images/${folder}${filenameRoot}.png`), this.getCachedUrl(`images/${folder}${filenameRoot}.json`));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user