diff options
author | Filippos Karapetis | 2009-02-18 11:14:05 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-18 11:14:05 +0000 |
commit | 1b81383dcbacc33c3bc3b1060657f3cfa736bb90 (patch) | |
tree | 39c5139fdbdd75a0fbcc0a2f85058c25f7a0bd10 /engines/sci/tools/classes.cpp | |
parent | 1db017a6c22137ba26276a75a3901a0f99ccedca (diff) | |
download | scummvm-rg350-1b81383dcbacc33c3bc3b1060657f3cfa736bb90.tar.gz scummvm-rg350-1b81383dcbacc33c3bc3b1060657f3cfa736bb90.tar.bz2 scummvm-rg350-1b81383dcbacc33c3bc3b1060657f3cfa736bb90.zip |
Removed files which are not part of the SCI engine (will be moved to /tools, together with the others)
svn-id: r38468
Diffstat (limited to 'engines/sci/tools/classes.cpp')
-rw-r--r-- | engines/sci/tools/classes.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/engines/sci/tools/classes.cpp b/engines/sci/tools/classes.cpp deleted file mode 100644 index 2fbe873e24..0000000000 --- a/engines/sci/tools/classes.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -#include <engine.h> -#include <vocabulary.h> - -int main(int argc, char** argv) { - int res; - int sizes[1000]; - int altsizes[1000]; - int count, *classes; - loadResources(SCI_VERSION_AUTODETECT, 1); - - for (res = 0; res < 1000; res++) { - resource_t* r; - int i = 0; - - sizes[res] = -1; - - if ((r = findResource(sci_script, res)) == 0) continue; - sizes[res] = 0; - altsizes[res] = 0; - i += 2; - i = getInt16(r->data + i); - - while (i < r->length - 2) { - switch (getInt16(r->data + i)) { - case 1: - case 6: - sizes[res]++; - break; - default: - altsizes[res]++; - } - i += getInt16(r->data + i + 2); - } - fflush(stdout); - } - - for (res = 0; res < 1000; res++) if (sizes[res] != -1) printf("%03d %d\n", res, sizes[res]); - printf("\n"); - - classes = vocabulary_get_classes(&count); - for (res = 0; res < count; res++) { - printf("%03d %d (%d)\n", classes[res], - sizes[classes[res]]--, altsizes[classes[res]]); - } - - freeResources(); - return 0; -} |