mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 17:29:39 +00:00
WINTERMUTE: Change ScriptValue to use int32.
This commit is contained in:
parent
51e17d9f86
commit
d8eff7be22
@ -73,7 +73,7 @@ ScValue::ScValue(BaseGame *inGame, bool val) : BaseClass(inGame) {
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
ScValue::ScValue(BaseGame *inGame, int val) : BaseClass(inGame) {
|
||||
ScValue::ScValue(BaseGame *inGame, int32 val) : BaseClass(inGame) {
|
||||
_type = VAL_INT;
|
||||
_valInt = val;
|
||||
|
||||
@ -951,7 +951,7 @@ int ScValue::compareStrict(ScValue *val1, ScValue *val2) {
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool ScValue::setProperty(const char *propName, int value) {
|
||||
bool ScValue::setProperty(const char *propName, int32 value) {
|
||||
ScValue *val = new ScValue(_gameRef, value);
|
||||
bool ret = DID_SUCCEED(setProp(propName, val));
|
||||
delete val;
|
||||
|
@ -94,14 +94,14 @@ public:
|
||||
TValType _type;
|
||||
ScValue(BaseGame *inGame);
|
||||
ScValue(BaseGame *inGame, bool Val);
|
||||
ScValue(BaseGame *inGame, int Val);
|
||||
ScValue(BaseGame *inGame, int32 Val);
|
||||
ScValue(BaseGame *inGame, double Val);
|
||||
ScValue(BaseGame *inGame, const char *Val);
|
||||
virtual ~ScValue();
|
||||
Common::HashMap<Common::String, ScValue *> _valObject;
|
||||
Common::HashMap<Common::String, ScValue *>::iterator _valIter;
|
||||
|
||||
bool setProperty(const char *propName, int value);
|
||||
bool setProperty(const char *propName, int32 value);
|
||||
bool setProperty(const char *propName, const char *value);
|
||||
bool setProperty(const char *propName, double value);
|
||||
bool setProperty(const char *propName, bool value);
|
||||
|
Loading…
Reference in New Issue
Block a user