aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/resources.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-02-25 23:10:51 -0500
committerPaul Gilbert2014-02-25 23:10:51 -0500
commitc49d7196fcabf18d9e97711f67b864808ca7848a (patch)
treec9511f8c6e81428c51bfaff04c54434cad0f5501 /engines/mads/resources.cpp
parent9eaab29afedf9eceee50f882b64cb39a14e616a2 (diff)
downloadscummvm-rg350-c49d7196fcabf18d9e97711f67b864808ca7848a.tar.gz
scummvm-rg350-c49d7196fcabf18d9e97711f67b864808ca7848a.tar.bz2
scummvm-rg350-c49d7196fcabf18d9e97711f67b864808ca7848a.zip
MADS: In progress implementation of loadScene
Diffstat (limited to 'engines/mads/resources.cpp')
-rw-r--r--engines/mads/resources.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/mads/resources.cpp b/engines/mads/resources.cpp
index 9f856eeefc..f24f7d2fc7 100644
--- a/engines/mads/resources.cpp
+++ b/engines/mads/resources.cpp
@@ -303,6 +303,19 @@ Common::String Resources::formatName(RESPREFIX resType, int id, const Common::St
return result;
}
+Common::String Resources::formatResource(const Common::String &resName,
+ const Common::String &hagFilename) {
+ int v1 = 0, v2 = 0;
+
+ if (resName.hasPrefix("*")) {
+ // Resource file specified
+ error("TODO: formatResource");
+ } else {
+ // File outside of hag file
+ return resName;
+ }
+}
+
/*------------------------------------------------------------------------*/
void File::openFile(const Common::String &filename) {