diff options
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index af325a9bd2..810d690243 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -31,6 +31,14 @@ namespace Scumm { class NutRenderer; // V8 Font Renderer struct ArrayHeader; +// This is to help devices with small memory (PDA, smartphones, ...) +// to save abit of memory used by opcode names in the Scumm engine. +#ifndef REDUCE_MEMORY_USAGE +# define _OPCODE(ver, x) { &ver::x, #x } +#else +# define _OPCODE(ver, x) { &ver::x, "" } +#endif + class ScummEngine_v5 : public ScummEngine { protected: typedef void (ScummEngine_v5::*OpcodeProcV5)(); |