file_io: Zip file support
Support for loading files stored inside a zip file. Treats zipped files as folders and allows loading files from inside the zip file. Files are loaded on-demand from the archive. Nested zip-files are currently not supported.
This commit is contained in:
@@ -1299,10 +1299,7 @@ int user_io_file_tx(const char* name, unsigned char index, char opensave, char m
|
||||
|
||||
if (opensave)
|
||||
{
|
||||
strcpy((char*)buf, name);
|
||||
char *p = strrchr((char*)buf, '.');
|
||||
if (!p) p = (char*)buf + strlen(name);
|
||||
strcpy(p, ".sav");
|
||||
FileGenerateSavePath(name, "sav", (char*)buf, sizeof(buf));
|
||||
user_io_file_mount((char*)buf, 0, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user