From b55efb9dfb257ba695318e7d5ef6727f32e235e3 Mon Sep 17 00:00:00 2001 From: grj1234 <38074422+grj1234@users.noreply.github.com> Date: Thu, 14 Oct 2021 21:58:55 +0900 Subject: [PATCH] Update ogg_vorbis.c Add .ogg_ extension as rpgmvo format [RPG Maker MZ (PC)] --- src/meta/ogg_vorbis.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/meta/ogg_vorbis.c b/src/meta/ogg_vorbis.c index fea8a905..ac01357e 100644 --- a/src/meta/ogg_vorbis.c +++ b/src/meta/ogg_vorbis.c @@ -171,7 +171,8 @@ static VGMSTREAM* _init_vgmstream_ogg_vorbis(STREAMFILE* sf) { is_sngw = 1; } else if (check_extensions(sf,"isd")) { /* .isd: Inti Creates PC games */ is_isd = 1; - } else if (check_extensions(sf,"rpgmvo")) { /* .rpgmvo: RPG Maker MV games (PC) */ + } else if (check_extensions(sf,"rpgmvo,ogg_")) { + /* .rpgmvo: RPG Maker MV games (PC), .ogg_: RPG Maker MZ games (PC) */ is_rpgmvo = 1; } else if (check_extensions(sf,"eno")) { /* .eno: Metronomicon (PC) */ is_eno = 1; @@ -353,7 +354,7 @@ static VGMSTREAM* _init_vgmstream_ogg_vorbis(STREAMFILE* sf) { } } - if (is_rpgmvo) { /* [RPG Maker MV (PC)] */ + if (is_rpgmvo) { /* [RPG Maker MV (PC), RPG Maker MZ (PC)] */ if (read_32bitBE(0x00,sf) != 0x5250474D && /* "RPGM" */ read_32bitBE(0x00,sf) != 0x56000000) { /* "V\0\0\0" */ goto fail;