Added functions to ActorUtil for converting the extension to a file type and changed various places that had lists of extensions to use ActorUtil instead of duplicating the list of extensions. Added webm and wmv to list of video types.
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
#include "GameLoop.h"
|
||||
#include "SpecialFiles.h"
|
||||
#include "Profile.h"
|
||||
#include "ActorUtil.h"
|
||||
|
||||
#if defined(WIN32)
|
||||
#include <windows.h>
|
||||
@@ -951,6 +952,10 @@ int main(int argc, char* argv[])
|
||||
|
||||
LUA = new LuaManager;
|
||||
|
||||
// Initialize the file extension type lists so everything can ask ActorUtil
|
||||
// what the type of a file is.
|
||||
ActorUtil::InitFileTypeLists();
|
||||
|
||||
// Almost everything uses this to read and write files. Load this early.
|
||||
FILEMAN = new RageFileManager( argv[0] );
|
||||
FILEMAN->MountInitialFilesystems();
|
||||
|
||||
Reference in New Issue
Block a user