- In cmd, add ConOutResPrintf and ConErrResPrintf functions for printf-ing from a resource string; use it to shorten several instances of LoadString+Con*Printf.

- Also change FilePromptYN and FilePromptYNA to take a resource ID. Remove varargs code which nobody used (and didn't actually work anyway)

svn path=/trunk/; revision=34816
This commit is contained in:
Jeffrey Morlan 2008-07-26 22:49:49 +00:00
parent 33ab9a11a5
commit 198d88a60b
27 changed files with 127 additions and 234 deletions

View file

@ -124,8 +124,7 @@ INT cmd_goto (LPTSTR cmd, LPTSTR param)
}
LoadString(CMD_ModuleHandle, STRING_GOTO_ERROR2, szMsg, RC_STRING_MAX_SIZE);
ConErrPrintf(szMsg, param);
ConErrResPrintf(STRING_GOTO_ERROR2, param);
ExitBatch(NULL);
return 1;
}