Made (some) messages about invalid cheat codes more descriptive

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@507 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
xkiv 2008-05-08 23:27:20 +00:00
parent d2bd65709b
commit 91f5561411
1 changed files with 4 additions and 4 deletions

View File

@ -1470,12 +1470,12 @@ bool cheatsVerifyCheatCode(const char *code, const char *desc)
{
size_t len = strlen(code);
if(len != 11 && len != 13 && len != 17) {
systemMessage(MSG_INVALID_CHEAT_CODE, N_("Invalid cheat code '%s'"), code);
systemMessage(MSG_INVALID_CHEAT_CODE, N_("Invalid cheat code '%s': wrong length"), code);
return false;
}
if(code[8] != ':') {
systemMessage(MSG_INVALID_CHEAT_CODE, N_("Invalid cheat code '%s'"), code);
systemMessage(MSG_INVALID_CHEAT_CODE, N_("Invalid cheat code '%s': no colon"), code);
return false;
}
@ -1484,7 +1484,7 @@ bool cheatsVerifyCheatCode(const char *code, const char *desc)
if(!CHEAT_IS_HEX(code[i])) {
// wrong cheat
systemMessage(MSG_INVALID_CHEAT_CODE,
N_("Invalid cheat code '%s'"), code);
N_("Invalid cheat code '%s': first part is not hex"), code);
return false;
}
}
@ -1492,7 +1492,7 @@ bool cheatsVerifyCheatCode(const char *code, const char *desc)
if(!CHEAT_IS_HEX(code[i])) {
// wrong cheat
systemMessage(MSG_INVALID_CHEAT_CODE,
N_("Invalid cheat code '%s'"), code);
N_("Invalid cheat code '%s' second part is not hex"), code);
return false;
}
}