diff options
Diffstat (limited to 'engines/parallaction/table.cpp')
-rw-r--r-- | engines/parallaction/table.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/engines/parallaction/table.cpp b/engines/parallaction/table.cpp index 7df6120d7b..8d184410bb 100644 --- a/engines/parallaction/table.cpp +++ b/engines/parallaction/table.cpp @@ -28,46 +28,9 @@ namespace Parallaction { -uint16 tableFillBuffers(Common::SeekableReadStream &stream); -// -// FIXME -// this function does the same Job as parseFillBuffers, except that -// it gets input from a SeekableStream instead of a memory buffer -// -uint16 tableFillBuffers(Common::SeekableReadStream &stream) { - for (uint16 i = 0; i < 20; i++) - _tokens[i][0] = '\0'; - char buf[200]; - char *line = NULL; - do { - line = stream.readLine(buf, 200); - if (line == NULL) return 0; - - line = Common::ltrim(line); - } while (strlen(line) == 0 || line[0] == '#'); - - uint16 count = 0; - while (strlen(line) > 0 && count < 20) { - line = parseNextToken(line, _tokens[count], 40, " \t\n"); - if (_tokens[count][0] == '"' && _tokens[count][strlen(_tokens[count]) - 1] != '"') { - - line = parseNextToken(line, _tokens[count+1], 40, "\""); - strcat(_tokens[count], _tokens[count+1] ); - _tokens[count][0] = ' '; - line++; - - } - - line = Common::ltrim(line); - count++; - } - - return count; - -} void Parallaction::initTable(const char *path, char** table) { // printf("initTable(%s)\n", path); |