Move non-Android specific stuff from android/jni to /UI.

Move source_assets one level up, too.
Also, start prototyping GameInfoCache, you'll see what it's for soon...
This commit is contained in:
Henrik Rydgard committed 2013-03-30 15:46:26 +01:00
1 parent fc8674b496
commit 7425532e99
60 files changed
+488 -88

No files matched your search

+13
View File
@@ -24,6 +24,19 @@ extern "C"
#include <cstdio>
#include <cstring>
BlockDevice *constructBlockDevice(const char *filename) {
// Check for CISO
FILE *f = fopen(filename, "rb");
char buffer[4];
auto size = fread(buffer, 1, 4, f); //size_t
fclose(f);
if (!memcmp(buffer, "CISO", 4) && size == 4)
return new CISOFileBlockDevice(filename);
else
return new FileBlockDevice(filename);
}
FileBlockDevice::FileBlockDevice(std::string _filename)
: filename(_filename)
{