Fixed broken save/restore feature: set() argument type must be Bit64s.
This commit is contained in:
parent
744efe9c22
commit
d154ead26b
@ -657,9 +657,9 @@ Bit64s bx_shadow_bool_c::get64()
|
||||
}
|
||||
}
|
||||
|
||||
void bx_shadow_bool_c::set(bool newval)
|
||||
void bx_shadow_bool_c::set(Bit64s newval)
|
||||
{
|
||||
*(val.pbool) = newval;
|
||||
*(val.pbool) = (newval != 0);
|
||||
if (handler) {
|
||||
// the handler can override the new value and/or perform some side effect
|
||||
(*handler)(this, 1, (Bit64s)newval);
|
||||
|
@ -342,7 +342,7 @@ public:
|
||||
const char *name,
|
||||
bool *ptr_to_real_val);
|
||||
virtual Bit64s get64();
|
||||
virtual void set(bool val);
|
||||
virtual void set(Bit64s val);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user