diff options
author | Filippos Karapetis | 2010-06-27 21:18:19 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-27 21:18:19 +0000 |
commit | 4a60ff409050e8f3da6065f2a44d78d31c4f34b9 (patch) | |
tree | 391de4517007053a52451d116d862a3fca23b8e4 /engines/sci/engine/script.h | |
parent | 456265f8fac8c5020e30fa99e0be1c1ff1a02aa8 (diff) | |
download | scummvm-rg350-4a60ff409050e8f3da6065f2a44d78d31c4f34b9.tar.gz scummvm-rg350-4a60ff409050e8f3da6065f2a44d78d31c4f34b9.tar.bz2 scummvm-rg350-4a60ff409050e8f3da6065f2a44d78d31c4f34b9.zip |
Made the script initialization/uninitialization methods part of the segment manager
svn-id: r50402
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r-- | engines/sci/engine/script.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index cc3c0263e8..5396a7432e 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -250,30 +250,6 @@ public: byte *findBlock(int type); }; -/** - * Makes sure that a script and its superclasses get loaded to the heap. - * If the script already has been loaded, only the number of lockers is - * increased. All scripts containing superclasses of this script are loaded - * recursively as well, unless 'recursive' is set to zero. The - * complementary function is "script_uninstantiate()" below. - * @param[in] resMan The resource manager - * @param[in] segMan The segment manager - * @param[in] script_nr The script number to load - * @return The script's segment ID or 0 if out of heap - */ -int script_instantiate(ResourceManager *resMan, SegManager *segMan, int script_nr); - -/** - * Decreases the numer of lockers of a script and unloads it if that number - * reaches zero. - * This function will recursively unload scripts containing its - * superclasses, if those aren't locked by other scripts as well. - * @param[in] segMan The segment manager - * @param[in] version The SCI version to use - * @param[in] script_nr The script number that is requestet to be unloaded - */ -void script_uninstantiate(SegManager *segMan, int script_nr); - } // End of namespace Sci #endif // SCI_ENGINE_SCRIPT_H |