mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
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:
1 parent
fc8674b496
commit
7425532e99
60 files changed
+488
-88
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user