- Fix Android compilation issues

- Added a "cachesize" option (not available from the menu, but can be manually edited in players/options.txt, for example cachesize=200 means 200MB of cache). The hardcoded cache on windows/linux is 20MB, which is not enough for Hi Res cards (60 is better, 200 is great)
This commit is contained in:
wagic.the.homebrew
2011-10-02 09:05:39 +00:00
parent 9e572ee416
commit 3decbe7f1d
5 changed files with 16 additions and 12 deletions
+5 -2
View File
@@ -96,8 +96,6 @@ void GameApp::Create()
//_CrtSetBreakAlloc(368);
LOG("starting Game");
WResourceManager::Instance()->ResetCacheLimits();
string systemFolder = "Res/";
string foldersRoot = "";
@@ -149,6 +147,11 @@ void GameApp::Create()
LOG("options.reloadProfile()");
options.reloadProfile();
//Setup Cache before calling any gfx/sfx functions
WResourceManager::Instance()->ResetCacheLimits();
LOG("Checking for music files");
//Test for Music files presence
JFileSystem * jfs = JFileSystem::GetInstance();