diff options
author | Jussi Pitkanen | 2011-06-16 18:46:06 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2011-08-13 23:27:08 +0100 |
commit | d02251fa4df9dc9e575a8f7e6705f5ef8384a2fd (patch) | |
tree | f571bce8c83a24f9e74f44e1bac2f78ece3ca75e /engines/agi | |
parent | 368a3722a3cae2326efaf124608605058b274cd5 (diff) | |
download | scummvm-rg350-d02251fa4df9dc9e575a8f7e6705f5ef8384a2fd.tar.gz scummvm-rg350-d02251fa4df9dc9e575a8f7e6705f5ef8384a2fd.tar.bz2 scummvm-rg350-d02251fa4df9dc9e575a8f7e6705f5ef8384a2fd.zip |
AGI: Formatting (+ a few debug prints)
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/detection_tables.h | 16 | ||||
-rw-r--r-- | engines/agi/words.cpp | 6 |
2 files changed, 13 insertions, 9 deletions
diff --git a/engines/agi/detection_tables.h b/engines/agi/detection_tables.h index be9bc1e185..100719cd26 100644 --- a/engines/agi/detection_tables.h +++ b/engines/agi/detection_tables.h @@ -37,7 +37,7 @@ using Common::GUIO_NONE; gid, \ interp, \ features, \ - ver, \ + ver \ } #define GAME_LVFPNF(id,name,fname,md5,size,lang,ver,features,gid,platform,interp) { \ @@ -53,7 +53,7 @@ using Common::GUIO_NONE; gid, \ interp, \ features, \ - ver, \ + ver \ } #define GAME(id,extra,md5,ver,gid) GAME_LVFPN(id,extra,"logdir",md5,-1,Common::EN_ANY,ver,0,gid,Common::kPlatformPC,GType_V2) @@ -196,7 +196,7 @@ static const AGIGameDescription gameDescriptions[] = { GID_GOLDRUSH, GType_V3, GF_MACGOLDRUSH, - 0x3149, + 0x3149 }, @@ -514,7 +514,7 @@ static const AGIGameDescription gameDescriptions[] = { GID_SQ2, GType_V2, 0, - 0x2936, + 0x2936 }, @@ -659,7 +659,7 @@ static const AGIGameDescription gameDescriptions[] = { GID_FANMADE, GType_V2, GF_AGDS, - 0x2440, + 0x2440 }, { @@ -676,7 +676,7 @@ static const AGIGameDescription gameDescriptions[] = { GID_GETOUTTASQ, GType_V2, 0, - 0x2440, + 0x2440 }, FANMADE_F("Half-Death - Terror At White-Mesa", "b62c05d0ace878261392073f57ae788c", GF_AGIMOUSE), @@ -831,7 +831,7 @@ static const AGIGameDescription gameDescriptions[] = { GID_FANMADE, GType_V3, GF_FANMADE, - 0x3149, + 0x3149 }, FANMADE_SVP("V - The Graphical Adventure", "1646eaade74f137a9041eb427a389969", 768, 0x2440, Common::kPlatformCoCo3), @@ -859,7 +859,7 @@ static AGIGameDescription g_fallbackDesc = { GID_FANMADE, GType_V2, GF_FANMADE, - 0x2917, + 0x2917 }; /** diff --git a/engines/agi/words.cpp b/engines/agi/words.cpp index 8b53e9d3a3..ec6928f8ed 100644 --- a/engines/agi/words.cpp +++ b/engines/agi/words.cpp @@ -39,6 +39,8 @@ static char *myStrndup(const char *src, int n) { int AgiEngine::loadWords_v1(Common::File &f) { char str[64]; int k; + + debug(0, "Loading dictionary"); // Loop through alphabet, as words in the dictionary file are sorted by // first character @@ -57,6 +59,7 @@ int AgiEngine::loadWords_v1(Common::File &f) { w->word = myStrndup(str, k + 1); w->id = f.readUint16LE(); _game.words[str[0] - 'a'].push_back(w); + debug(3, "'%s' (%d)", w->word, w->id); } } while((uint8)str[0] != 0xFF); @@ -77,7 +80,8 @@ int AgiEngine::loadWords(const char *fname) { for (int i = 0; i < 26; i++) { fp.seek(i * 2, SEEK_SET); int offset = fp.readUint16BE(); - if (offset == 0) continue; + if (offset == 0) + continue; fp.seek(offset, SEEK_SET); int k = fp.readByte(); while (!fp.eos() && !fp.err()) { |