mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 13:04:21 +01:00
avoid using file stat when possible. it's slow.
This commit is contained in:
parent
23d89dd0d1
commit
61459262ca
@ -46,7 +46,7 @@ LoadSRAM (char * filepath, bool silent)
|
||||
|
||||
if (size)
|
||||
{
|
||||
len = LoadFile((char *)Memory.SRAM, filepath, size, silent);
|
||||
len = LoadFile((char *)Memory.SRAM, filepath, 0, 0x20000, silent);
|
||||
|
||||
if (len > 0)
|
||||
{
|
||||
@ -59,7 +59,7 @@ LoadSRAM (char * filepath, bool silent)
|
||||
filepath[pathlen-3] = 'r';
|
||||
filepath[pathlen-2] = 't';
|
||||
filepath[pathlen-1] = 'c';
|
||||
LoadFile((char *)RTCData.reg, filepath, 20, silent);
|
||||
LoadFile((char *)RTCData.reg, filepath, 0, 20, silent);
|
||||
}
|
||||
result = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user