mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +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) {
|
if (folder) {
|
||||||
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")) {
|
if (folder.startsWith("ui")) {
|
||||||
legacyCompatibleImages.push(key);
|
legacyCompatibleImages.push(key);
|
||||||
folder = folder.replace("ui", "ui/legacy");
|
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…
Reference in New Issue
Block a user