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/credits.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/credits.cpp')
-rw-r--r-- | queen/credits.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queen/credits.cpp b/queen/credits.cpp index 95b6cccd4f..48bf951a68 100644 --- a/queen/credits.cpp +++ b/queen/credits.cpp @@ -30,9 +30,9 @@ namespace Queen { Credits::Credits(QueenEngine *vm, const char* filename) : _vm(vm), _running(true), _count(0), _pause(0), _justify(0), _fontSize(0), _color(0), _zone(0) { - _credits = new LineReader( - (char *)_vm->resource()->loadFile(filename), - _vm->resource()->fileSize(filename)); + uint32 size; + char *buf = (char *)_vm->resource()->loadFile(filename, 0, &size); + _credits = new LineReader(buf, size); } Credits::~Credits() { |