mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
minor script update
This commit is contained in:
parent
f62e2a7fd1
commit
87ee4c3166
@ -40,7 +40,8 @@ if not exist %isspath%\ISCC.exe (
|
||||
goto error
|
||||
)
|
||||
|
||||
set datestr=
|
||||
set datestr=%1
|
||||
if "%datestr:~0,2%"=="20" if not "%datestr:~7%"=="" if "%datestr:~8%"=="" goto hasdate
|
||||
for /f %%i in ('%isspath%\date.exe +%%Y%%m%%d') do set datestr=%%i
|
||||
|
||||
if "%datestr%"=="" (
|
||||
@ -48,6 +49,7 @@ if "%datestr%"=="" (
|
||||
goto error
|
||||
)
|
||||
|
||||
:hasdate
|
||||
set vwin32zip=
|
||||
set vwin64zip=
|
||||
set varm32zip=
|
||||
|
@ -158,7 +158,7 @@ void LoadMessageFile(const char * fname) {
|
||||
langnote = r+1;
|
||||
*r=':';
|
||||
}
|
||||
} else if (!strncasecmp(linein+1, "MENU:", 5)) {
|
||||
} else if (!strncasecmp(linein+1, "MENU:", 5)&&strlen(linein+6)<LINE_IN_MAXLEN) {
|
||||
*name=0;
|
||||
strcpy(menu_name,linein+6);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user