Replace .ogg with .m4a for iOS support
This commit is contained in:
1 parent
da6d4bba2e
commit
7a2e00758e
2554 files changed
+220
-220
No files matched your search
@@ -1073,7 +1073,7 @@ export async function populateAnims() {
|
||||
case 0:
|
||||
if (resourceName && resourceName.indexOf('.') === -1) {
|
||||
let ext: string;
|
||||
[ 'wav', 'mp3', 'ogg' ].every(e => {
|
||||
[ 'wav', 'mp3', 'm4a' ].every(e => {
|
||||
if (seNames.indexOf(`${resourceName}.${e}`) > -1) {
|
||||
ext = e;
|
||||
return false;
|
||||
|
||||
@@ -306,7 +306,7 @@ export abstract class PokemonSpeciesForm {
|
||||
loadAssets(scene: BattleScene, female: boolean, formIndex?: integer, shiny?: boolean, startLoad?: boolean): Promise<void> {
|
||||
return new Promise(resolve => {
|
||||
const spriteKey = this.getSpriteKey(female, formIndex, shiny);
|
||||
scene.load.audio(this.getCryKey(formIndex), `audio/cry/${this.getCryKey(formIndex)}.ogg`);
|
||||
scene.load.audio(this.getCryKey(formIndex), `audio/cry/${this.getCryKey(formIndex)}.m4a`);
|
||||
scene.loadPokemonAtlas(spriteKey, this.getSpriteAtlasPath(female, formIndex, shiny));
|
||||
scene.load.once(Phaser.Loader.Events.COMPLETE, () => {
|
||||
const originalWarn = console.warn;
|
||||
|
||||
Reference in new issue
Block a user