diff options
Diffstat (limited to 'scumm/dialogs.h')
-rw-r--r-- | scumm/dialogs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/dialogs.h b/scumm/dialogs.h index bc8111ea8b..f6f925b988 100644 --- a/scumm/dialogs.h +++ b/scumm/dialogs.h @@ -21,26 +21,26 @@ #ifndef SCUMM_DIALOGS_H #define SCUMM_DIALOGS_H +#include "common/str.h" #include "gui/dialog.h" class ListWidget; class Scumm; -#define RES_STRING(id) queryResString(id) -#define CUSTOM_STRING(id) queryCustomString(id) - class ScummDialog : public Dialog { public: ScummDialog(NewGui *gui, Scumm *scumm, int x, int y, int w, int h) : Dialog(gui, x, y, w, h), _scumm(scumm) {} protected: + typedef ScummVM::String String; + Scumm *_scumm; void addResText(int x, int y, int w, int h, int resID); // Query a string from the resources - const char *queryResString(int stringno); + const String queryResString(int stringno); // Query a custom string. This is in a seperate method so that we // can easily localize the messages in the future if we want to. |