aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/loader_preagi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/loader_preagi.cpp')
-rw-r--r--engines/agi/loader_preagi.cpp80
1 files changed, 0 insertions, 80 deletions
diff --git a/engines/agi/loader_preagi.cpp b/engines/agi/loader_preagi.cpp
index 135472bca3..4e0b3e06a7 100644
--- a/engines/agi/loader_preagi.cpp
+++ b/engines/agi/loader_preagi.cpp
@@ -211,86 +211,6 @@ int AgiLoader_preagi::loadResource(int t, int n) {
return ec;
}
-/*
- * Loads a resource into memory, a raw resource is loaded in
- * with above routine, then further decoded here.
- */
-int AgiLoader_preagi::loadResource(int t, const char* n) {
- int ec = errOK;
- uint8 *data = NULL;
- Common::File infile;
-
- switch (t) {
- case rPICTURE:
- /* if picture is currently NOT loaded *OR* cacheing is off,
- * unload the resource (caching==off) and reload it
- */
- if (~_vm->_game.dirPic[0].flags & RES_LOADED)
- unloadResource(rPICTURE, 0);
-
- data = new uint8[4096];
-
- if (!infile.open(n))
- return errBadResource;
- infile.read(data, infile.size());
-
- if (data != NULL) {
- _vm->_game.pictures[0].rdata = data;
- _vm->_game.dirPic[0].len = infile.size();
- _vm->_game.dirPic[0].flags |= RES_LOADED;
- } else {
- ec = errBadResource;
- }
-
- infile.close();
- break;
- case rSOUND:
- break;
- case rVIEW:
- break;
- default:
- ec = errBadResource;
- break;
- }
-
- return ec;
-}
-
-/*
- * Loads a resource into memory, a raw resource is loaded in
- * with above routine, then further decoded here.
- */
-int AgiLoader_preagi::loadResource(int t, byte* n) {
- int ec = errOK;
-
- switch (t) {
- case rPICTURE:
- /* if picture is currently NOT loaded *OR* cacheing is off,
- * unload the resource (caching==off) and reload it
- */
- if (~_vm->_game.dirPic[0].flags & RES_LOADED)
- unloadResource(rPICTURE, 0);
-
- if (n != NULL) {
- _vm->_game.pictures[0].rdata = n;
- _vm->_game.dirPic[0].len = 4096; //FIXME: set up real resource length
- _vm->_game.dirPic[0].flags |= RES_LOADED;
- } else {
- ec = errBadResource;
- }
- break;
- case rSOUND:
- break;
- case rVIEW:
- break;
- default:
- ec = errBadResource;
- break;
- }
-
- return ec;
-}
-
int AgiLoader_preagi::loadObjects(const char *fname) {
return 0;
//return _vm->loadObjects(fname);