Fixed thumbnails during movies.
This commit is contained in:
@@ -1507,4 +1507,7 @@ void SRAMDirCurDir()
|
|||||||
getcwd(SRAMDir,1024);
|
getcwd(SRAMDir,1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void UpChdir()
|
||||||
|
{
|
||||||
|
chdir("..");
|
||||||
|
}
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ EXTSYM vidbufferofsb
|
|||||||
EXTSYM HalfTransB,HalfTransC
|
EXTSYM HalfTransB,HalfTransC
|
||||||
|
|
||||||
EXTSYM cur_zst_size,old_zst_size
|
EXTSYM cur_zst_size,old_zst_size
|
||||||
|
EXTSYM MovieProcessing,mzt_chdir,UpChdir
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM SB_blank
|
EXTSYM SB_blank
|
||||||
@@ -1291,6 +1292,12 @@ GetPicture:
|
|||||||
jne .notskip
|
jne .notskip
|
||||||
ret
|
ret
|
||||||
.notskip
|
.notskip
|
||||||
|
cmp byte[MovieProcessing],0
|
||||||
|
jz .nomovie
|
||||||
|
pushad
|
||||||
|
call mzt_chdir
|
||||||
|
popad
|
||||||
|
.nomovie
|
||||||
mov [PrevPictureVal],cl
|
mov [PrevPictureVal],cl
|
||||||
mov edx,PrevPicture
|
mov edx,PrevPicture
|
||||||
mov ecx,64*56*2
|
mov ecx,64*56*2
|
||||||
@@ -1385,6 +1392,12 @@ GetPicture:
|
|||||||
add esi,288*2
|
add esi,288*2
|
||||||
dec edx
|
dec edx
|
||||||
jnz .ploopa2
|
jnz .ploopa2
|
||||||
|
cmp byte[MovieProcessing],0
|
||||||
|
jz .nomovie2
|
||||||
|
pushad
|
||||||
|
call UpChdir
|
||||||
|
popad
|
||||||
|
.nomovie2
|
||||||
ret
|
ret
|
||||||
|
|
||||||
NEWSYM drawfillboxsc
|
NEWSYM drawfillboxsc
|
||||||
|
|||||||
@@ -897,6 +897,17 @@ Save and load MZT
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void mzt_chdir()
|
||||||
|
{
|
||||||
|
size_t filename_len = strlen(zmv_vars.filename);
|
||||||
|
memcpy(zmv_vars.filename+filename_len-3, "mz", 2);
|
||||||
|
if (!isdigit(zmv_vars.filename[filename_len-1]))
|
||||||
|
{
|
||||||
|
zmv_vars.filename[filename_len-1] = 't';
|
||||||
|
}
|
||||||
|
chdir(zmv_vars.filename);
|
||||||
|
}
|
||||||
|
|
||||||
bool mzt_save(char *statename, bool thumb)
|
bool mzt_save(char *statename, bool thumb)
|
||||||
{
|
{
|
||||||
size_t filename_len = strlen(zmv_vars.filename);
|
size_t filename_len = strlen(zmv_vars.filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user