summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/cRSID/host/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/cRSID/host/file.c')
-rw-r--r--lib/rbcodec/codecs/cRSID/host/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/cRSID/host/file.c b/lib/rbcodec/codecs/cRSID/host/file.c
index c87f37ebb4..817cff6c2b 100644
--- a/lib/rbcodec/codecs/cRSID/host/file.c
+++ b/lib/rbcodec/codecs/cRSID/host/file.c
@@ -39,7 +39,7 @@ cRSID_SIDheader* cRSID_processSIDfile(cRSID_C64instance* C64, unsigned char* fil
39 for (i=1; i < (int)(sizeof(MagicStringPSID)-1); ++i) { if (SIDheader->MagicString[i] != MagicStringPSID[i]) return NULL; } 39 for (i=1; i < (int)(sizeof(MagicStringPSID)-1); ++i) { if (SIDheader->MagicString[i] != MagicStringPSID[i]) return NULL; }
40 C64->RealSIDmode = ( SIDheader->MagicString[0] == 'R' ); 40 C64->RealSIDmode = ( SIDheader->MagicString[0] == 'R' );
41 41
42 if (SIDheader->LoadAddressH==0 && SIDheader->LoadAddressH==0) { //load-address taken from first 2 bytes of the C64 PRG 42 if (SIDheader->LoadAddressH==0 && SIDheader->LoadAddressL==0) { //load-address taken from first 2 bytes of the C64 PRG
43 C64->LoadAddress = (filedata[SIDheader->HeaderSize+1]<<8) + (filedata[SIDheader->HeaderSize+0]); 43 C64->LoadAddress = (filedata[SIDheader->HeaderSize+1]<<8) + (filedata[SIDheader->HeaderSize+0]);
44 SIDdataOffset = SIDheader->HeaderSize+2; 44 SIDdataOffset = SIDheader->HeaderSize+2;
45 } 45 }