diff options
author | Colin Snover | 2017-05-13 22:45:20 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-13 22:49:40 -0500 |
commit | b1ace1a01c15f4964cc91df7fead81e362e24424 (patch) | |
tree | ffff2469c6b543d8ccb7f5376cd4601643db53a1 /engines/sci/resource.h | |
parent | f44d8b6da69a1444c76fcbce28a834f2368ddf35 (diff) | |
download | scummvm-rg350-b1ace1a01c15f4964cc91df7fead81e362e24424.tar.gz scummvm-rg350-b1ace1a01c15f4964cc91df7fead81e362e24424.tar.bz2 scummvm-rg350-b1ace1a01c15f4964cc91df7fead81e362e24424.zip |
SCI: Suppress resource warnings when running fallback detection
For the moment, only warn about bad resources when a game is
actually starting, since unknown but valid resources being
detected by the fallback detector currently also trigger the
warning.
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 1a10fb2ccd..3239a16081 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -319,7 +319,7 @@ public: /** * Creates a new SCI resource manager. */ - ResourceManager(); + ResourceManager(const bool detectionMode = false); ~ResourceManager(); @@ -454,6 +454,8 @@ public: ResourceType convertResType(byte type); protected: + bool _detectionMode; + // Maximum number of bytes to allow being allocated for resources // Note: maxMemory will not be interpreted as a hard limit, only as a restriction // for resources which are not explicitly locked. However, a warning will be |