diff options
author | Gregory Montoir | 2004-08-06 17:01:58 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-08-06 17:01:58 +0000 |
commit | 8b0e9502ec706cc82b05c216801ac0fd0a46d7fd (patch) | |
tree | 201a203c69f6285e8e91d4e00f3790721d5986ee /queen/logic.cpp | |
parent | a7b610b25b5035962e5ee27610e49c1a5d2e5172 (diff) | |
download | scummvm-rg350-8b0e9502ec706cc82b05c216801ac0fd0a46d7fd.tar.gz scummvm-rg350-8b0e9502ec706cc82b05c216801ac0fd0a46d7fd.tar.bz2 scummvm-rg350-8b0e9502ec706cc82b05c216801ac0fd0a46d7fd.zip |
cleanup and simplify Resource class a bit more
svn-id: r14488
Diffstat (limited to 'queen/logic.cpp')
-rw-r--r-- | queen/logic.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index 9fc480d5f2..9fbee28824 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -181,10 +181,9 @@ void Logic::initialise() { delete[] jas; - - _queen2jas = new LineReader( - (char *)_vm->resource()->loadFile("QUEEN2.JAS"), - _vm->resource()->fileSize("QUEEN2.JAS")); + uint32 size; + char *buf = (char *)_vm->resource()->loadFile("QUEEN2.JAS", 0, &size); + _queen2jas = new LineReader(buf, size); _objDescription = new char*[_numDescriptions + 1]; _objDescription[0] = 0; |