jedi: default nvram for precalibrated joy

This commit is contained in:
dinkc64 2019-06-23 20:14:52 -04:00
parent 3600140fe8
commit 647b681788
1 changed files with 8 additions and 0 deletions

View File

@ -366,6 +366,12 @@ static INT32 MemIndex()
return 0;
}
static void nvram_defaults()
{
memset(DrvNVRAM, 0, 0x100);
memcpy(DrvNVRAM + 0x58, "\xfd\x01\xfd\x05\x02\x00\xfc", 7);
}
static INT32 DrvInit()
{
AllMem = NULL;
@ -436,6 +442,8 @@ static INT32 DrvInit()
GenericTilesInit();
nvram_defaults();
DrvDoReset(1);
return 0;