mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
Removing the now useless cuckoo function and shrink the call stack entries accordingly
svn-id: r41758
This commit is contained in:
parent
b6a26911a3
commit
648139dda7
@ -366,19 +366,10 @@ bool Script::isFinished() const {
|
||||
return _finished;
|
||||
}
|
||||
|
||||
void Script::cuckoo(byte *totData, uint32 totSize) {
|
||||
_finished = false;
|
||||
_totData = totData;
|
||||
_totPtr = _totData;
|
||||
_totSize = totSize;
|
||||
}
|
||||
|
||||
void Script::push() {
|
||||
CallEntry currentCall;
|
||||
|
||||
currentCall.totData = _totData;
|
||||
currentCall.totPtr = _totPtr;
|
||||
currentCall.totSize = _totSize;
|
||||
currentCall.finished = _finished;
|
||||
|
||||
_callStack.push(currentCall);
|
||||
@ -390,9 +381,7 @@ void Script::pop(bool ret) {
|
||||
CallEntry lastCall = _callStack.pop();
|
||||
|
||||
if (ret) {
|
||||
_totData = lastCall.totData;
|
||||
_totPtr = lastCall.totPtr;
|
||||
_totSize = lastCall.totSize;
|
||||
_finished = lastCall.finished;
|
||||
}
|
||||
}
|
||||
|
@ -88,8 +88,6 @@ public:
|
||||
void setFinished(bool finished);
|
||||
bool isFinished() const;
|
||||
|
||||
void cuckoo(byte *totData, uint32 totSize);
|
||||
|
||||
void push();
|
||||
void pop(bool ret = true);
|
||||
void call(uint32 offset);
|
||||
@ -106,9 +104,7 @@ public:
|
||||
|
||||
private:
|
||||
struct CallEntry {
|
||||
byte *totData;
|
||||
byte *totPtr;
|
||||
uint32 totSize;
|
||||
bool finished;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user