SPC filenames are no longer truncated if there is a dot in the filename.

This commit is contained in:
jbo_85
2005-10-16 12:12:58 +00:00
parent 86ea624ab9
commit 5d9d437117

View File

@@ -843,7 +843,7 @@ NEWSYM savespcdata
mov al,[spcS] mov al,[spcS]
mov [ssdatst+43],al mov [ssdatst+43],al
add dword[spcPCRam],SPCRAM add dword[spcPCRam],SPCRAM
.savestuff ;.savestuff
ChangeDir SPCPath ChangeDir SPCPath
pushad pushad
call PrepareSaveState call PrepareSaveState
@@ -856,7 +856,7 @@ NEWSYM savespcdata
mov [edi],al mov [edi],al
inc esi inc esi
inc edi inc edi
cmp al,'.' cmp byte[esi+3],0 ;Check for end of filename
jne .next jne .next
; Save stuff ; Save stuff
mov dword[edi],'spc ' mov dword[edi],'spc '
@@ -1400,15 +1400,9 @@ NEWSYM GetFreeFile
mov esi,fnames+1 mov esi,fnames+1
mov ebx,.imagefname mov ebx,.imagefname
.end1 .end1
mov al,[esi]
inc esi inc esi
cmp al,0 cmp byte[esi+4],0 ;Check for end of filename
jne .end1 jne .end1
.end2
dec esi
mov al,[esi]
cmp al,'.'
jne .end2
mov edx,fnames+1 mov edx,fnames+1
.next .next
mov al,[edx] mov al,[edx]