Fix F3 menu. Latest state now shows up as orange

This commit is contained in:
theoddone33
2001-05-21 19:01:16 +00:00
parent 7470150205
commit 481cef98b4
4 changed files with 13 additions and 3 deletions

View File

@@ -549,8 +549,8 @@ NEWSYM Get_File_Date
pushad
call ZFileGetFTime
popad
mov dx,[ZFDate]
mov cx,[ZFTime]
mov edx,[ZFDate]
mov ecx,[ZFTime]
ret
RefreshKeybBuffer:

View File

@@ -242,8 +242,14 @@ DWORD ZFileDelete()
DWORD ZFileGetFTime()
{
ZFDate=0;
struct stat filestat;
ZFTime=0;
if (stat (ZFFTimeFName, &filestat)<0)
{
ZFDate=0;
} else {
ZFDate=filestat.st_mtime;
}
return(0);
}

View File

@@ -1255,8 +1255,10 @@ DetermineNew:
mov bx,ax
mov edx,fnamest+1
call Get_File_Date
%ifndef __LINUX__
shl edx,16
mov dx,cx
%endif
push edx
call Close_File
pop edx

View File

@@ -1208,8 +1208,10 @@ DetermineNew:
mov bx,ax
mov edx,fnamest+1
call Get_File_Date
%ifndef __LINUX__
shl edx,16
mov dx,cx
%endif
push edx
call Close_File
pop edx