FileSystem: RGSS2 means ogg vorbis support is always available

This commit is contained in:
Jonas Kulla 2014-08-29 03:33:46 +02:00
parent 2ba9f6589b
commit 3da785b293
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include "font.h"
#include "util.h"
#include "exception.h"
#include "sharedstate.h"
#include "boost-hash.h"
#include "debugwriter.h"
@ -336,6 +337,9 @@ FileSystem::FileSystem(const char *argv0,
}
}
if (rgssVer >= 2 && !contains(p->extensions[Audio], std::string("ogg")))
p->extensions[Audio].push_back("ogg");
#if MIDI
p->extensions[Audio].push_back("mid");
p->extensions[Audio].push_back("midi");