mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
GLK: ADVSYS: Initialization fixes
This commit is contained in:
parent
8759a9e851
commit
4f7c9899f2
@ -27,7 +27,7 @@ namespace AdvSys {
|
||||
|
||||
bool GlkInterface::initialize() {
|
||||
_window = glk_window_open(0, 0, 0, wintype_TextBuffer, 1);
|
||||
return !_window;
|
||||
return _window != nullptr;
|
||||
}
|
||||
|
||||
void GlkInterface::print(const Common::String &msg) {
|
||||
|
@ -104,8 +104,7 @@ ExecutionResult VM::execute(int offset) {
|
||||
|
||||
void VM::executeOpcode() {
|
||||
// Get next opcode
|
||||
uint opcode = getCodeByte(_pc);
|
||||
++_pc;
|
||||
uint opcode = readCodeByte();
|
||||
|
||||
if (opcode >= OP_BRT && opcode <= OP_VOWEL) {
|
||||
(this->*_METHODS[(int)opcode - 1])();
|
||||
|
@ -165,7 +165,7 @@ public:
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
FunctionPointer(FixedStack &s) : _stack(s), _index(-1) {}
|
||||
FunctionPointer(FixedStack &s) : _stack(s), _index(0) {}
|
||||
|
||||
/**
|
||||
* Array indexing
|
||||
|
Loading…
Reference in New Issue
Block a user