Mercurial > otakunoraifu
diff scn2k/scn2k_impl.cc @ 43:01aa5ddf7dc8
A lot of very minor improvements (deleted some unused variables, and other things like that...)
author | thib |
---|---|
date | Tue, 24 Mar 2009 19:45:48 +0000 |
parents | 94fe9153efa5 |
children | 35ce1a30f3f9 |
line wrap: on
line diff
--- a/scn2k/scn2k_impl.cc +++ b/scn2k/scn2k_impl.cc @@ -311,7 +311,7 @@ if (cmd.cmd1 == 0 && cmd.cmd2 == 1 && cm } script = script_start + cmd.args[0].value; if (script < script_start || script >= script_end) { - fprintf(stderr,"scn %d pt %d: Cannot jump to %d; fall back to the top\n",scn_number, cmd.args[0].value); + fprintf(stderr,"scn %d pt %d: Cannot jump to %d; fall back to the top\n", scn_number, scn_point, cmd.args[0].value); script = script_start; } cmd.clear(); @@ -943,7 +943,7 @@ void Scn2k::LoadSys(void) { sprintf(buf, "KEY=%s\n", config.GetParaStr("#REGNAME")); if (strncmp(savedata, buf, strlen(buf)) != 0) { - fprintf(stderr,"Invalid header in save file %s: it must be started with \"%s\"\n",buf); + fprintf(stderr,"Invalid header in save file %s: it must be started with \"%s\"\n", path.c_str(), buf); } else { char* config_str = strstr(savedata, "\nCONFIG="); if (config_str) { @@ -1185,7 +1185,7 @@ void Scn2k::Load(Cmd& cmd) { sprintf(buf, "KEY=%s\n", config.GetParaStr("#REGNAME")); if (strncmp(savedata, buf, strlen(buf)) != 0) { - fprintf(stderr,"Invalid header in save file %s: it must be started with \"%s\"\n",buf); + fprintf(stderr,"Invalid header in save file %s: it must be started with \"%s\"\n", path.c_str(), buf); delete[] savedata; return; } @@ -1250,7 +1250,6 @@ void Scn2k::SaveImpl(string& save) { } void Scn2k::LoadImpl(const char* save) { - char buf[1024]; save_scn = 0; save_point = 0; window_title = "";