aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/labfile.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-07-17 10:36:20 +0300
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commit79ed1e1f05dc1537f666018bc7240a5d96835b5b (patch)
treef89e11d715c89ce3e2e0940091f32af022b06b7f /engines/lab/labfile.cpp
parent884b80f2150c4509912988b19e0106aa15e1008f (diff)
downloadscummvm-rg350-79ed1e1f05dc1537f666018bc7240a5d96835b5b.tar.gz
scummvm-rg350-79ed1e1f05dc1537f666018bc7240a5d96835b5b.tar.bz2
scummvm-rg350-79ed1e1f05dc1537f666018bc7240a5d96835b5b.zip
LAB: Get rid of numtostr(), and simplify most uses of sizeOfFile()
Diffstat (limited to 'engines/lab/labfile.cpp')
-rw-r--r--engines/lab/labfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lab/labfile.cpp b/engines/lab/labfile.cpp
index c2acb203a5..43825f018d 100644
--- a/engines/lab/labfile.cpp
+++ b/engines/lab/labfile.cpp
@@ -203,7 +203,7 @@ bool allocFile(void **Ptr, uint32 Size, const char *fileName) {
/*****************************************************************************/
/* Reads a file into memory. */
/*****************************************************************************/
-byte **openFile(const char *name) {
+byte **openFile(const char *name, uint32 &size) {
byte *buf;
Common::File file;
@@ -215,7 +215,7 @@ byte **openFile(const char *name) {
return NULL;
}
- uint32 size = file.size();
+ size = file.size();
buf = (byte *)malloc(size);