Internal editor: minimal compilation fixes

This commit is contained in:
Louis Gombert
2024-05-23 08:06:24 +02:00
parent 0fa8705291
commit 87f19acc2f
45 changed files with 370 additions and 235 deletions

View File

@@ -344,7 +344,7 @@ void CScriptLevelInterface::OnCompile()
if(MessageBox(buffer,"Congratulations",MB_YESNO)==IDYES){
ddio_MakePath(buffer,LocalScriptDir,filename,NULL);
if(!cfexist(buffer)){
sprintf(buffer,"I can't seem to find %s in your data\\scripts directory...Sorry,\nbut I can't automatically add it for you.\nYou'll have to manually add %s into the manage system.",filename);
sprintf(buffer,"I can't seem to find %s in your data\\scripts directory...Sorry,\nbut I can't automatically add it for you.\nYou'll have to manually add %s into the manage system.",filename, filename);
MessageBox(buffer,"Uh Oh!",MB_OK);
}else{
if(AddNewGameFile(buffer,"scripts")){
@@ -416,7 +416,7 @@ void CScriptLevelInterface::OnEditscript()
strcpy(buffer,"The specified path was not found.");
break;
case ERROR_BAD_FORMAT:
strcpy(buffer,"The .exe file is invalid (non-Win32® .exe or error in .exe image).");
strcpy(buffer,"The .exe file is invalid (non-Win32<EFBFBD> .exe or error in .exe image).");
break;
case SE_ERR_ACCESSDENIED:
strcpy(buffer,"The operating system denied access to the specified file.");