Add a file loader to perform disk caching.

Had to do some tricks to handle gameinfocache threads properly.
This commit is contained in:
Unknown W. Brackets committed 2015-07-02 20:58:58 -07:00
1 parent da827d9ef0
commit 88b23460f1
10 files changed
+702

No files matched your search

+5
View File
@@ -71,6 +71,7 @@
#include "Common/MemArena.h"
#include "Core/Config.h"
#include "Core/Core.h"
#include "Core/FileLoaders/DiskCachingFileLoader.h"
#include "Core/Host.h"
#include "Core/SaveState.h"
#include "Core/Screenshot.h"
@@ -760,6 +761,10 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) {
if (msg == "inputDeviceConnected") {
KeyMap::NotifyPadConnected(value);
}
if (msg == "cacheDir") {
DiskCachingFileLoaderCache::SetCacheDir(value);
}
}
void NativeUpdate(InputState &input) {