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