mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-24 00:51:14 +01:00
xenon: use fat size from simple fat driver instead of hardcoded 4MB
This commit is contained in:
parent
21e52eab5a
commit
c80cbc1c5f
@ -44,6 +44,8 @@ extern "C" {
|
||||
|
||||
#include <input/input.h>
|
||||
|
||||
int fat_file_size;
|
||||
|
||||
};
|
||||
|
||||
void
|
||||
@ -263,14 +265,14 @@ int main(void)
|
||||
else
|
||||
{
|
||||
printf(" * fat open okay, loading file...\n");
|
||||
int r = fat_read(Memory.ROM, 4*1024*1024);
|
||||
int r = fat_read(Memory.ROM, fat_file_size);
|
||||
goto ok;
|
||||
}
|
||||
printf("fat read failed.\n");
|
||||
while (1);
|
||||
}
|
||||
ok:
|
||||
SNESROMSize = 1024*1024*4;
|
||||
SNESROMSize = fat_file_size;
|
||||
// memcpy(Memory.ROM, smc, SNESROMSize = sizeof(smc));
|
||||
|
||||
Memory.LoadROM ("BLANK.SMC");
|
||||
|
Loading…
x
Reference in New Issue
Block a user