diff options
author | Paul Gilbert | 2016-05-08 20:57:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:38:53 -0400 |
commit | 9ce6391a94db959f3dde54ed3d0153e000aa3d5a (patch) | |
tree | 60cba99e447b562502d4b66815c94fa6bc44b7e6 /engines/titanic/true_talk/st_vocab.cpp | |
parent | 71179e376363c1c59b9c7819bfbe89196c7bbc23 (diff) | |
download | scummvm-rg350-9ce6391a94db959f3dde54ed3d0153e000aa3d5a.tar.gz scummvm-rg350-9ce6391a94db959f3dde54ed3d0153e000aa3d5a.tar.bz2 scummvm-rg350-9ce6391a94db959f3dde54ed3d0153e000aa3d5a.zip |
TITANIC: Beginnings of TTWord hierarchy
Diffstat (limited to 'engines/titanic/true_talk/st_vocab.cpp')
-rw-r--r-- | engines/titanic/true_talk/st_vocab.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/engines/titanic/true_talk/st_vocab.cpp b/engines/titanic/true_talk/st_vocab.cpp index ed41a4a61b..b725101214 100644 --- a/engines/titanic/true_talk/st_vocab.cpp +++ b/engines/titanic/true_talk/st_vocab.cpp @@ -20,18 +20,32 @@ * */ +#include "common/file.h" #include "titanic/true_talk/st_vocab.h" +#include "titanic/titanic.h" namespace Titanic { -STVocab::STVocab(int val): _field0(0), _field4(0), _field8(0), +STVocab::STVocab(int val): _field0(0), _field4(0), _vocab(nullptr), _fieldC(0), _field10(0), _field18(val) { _field14 = load("STvocab.txt"); } int STVocab::load(const CString &name) { - // TODO - return 0; + SimpleFile *file = g_vm->_fileReader._owner->openResource(name); + int result = 0; + + while (!file->eos()) { + int mode = file->readNumber(); + + switch (mode) { + case 0: + break; + } + } + + delete file; + return result; } } // End of namespace Titanic |