mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
JANITORIAL: Whitespace fixes
This commit is contained in:
+3
-3
@@ -119,8 +119,8 @@ Common::Error HDBGame::run() {
|
||||
Graphics::PixelFormat format(2, 5, 6, 5, 0, 11, 5, 0, 0);
|
||||
initGraphics(640, 480, &format);
|
||||
_console = new Console();
|
||||
|
||||
|
||||
|
||||
|
||||
Common::SeekableReadStream *titleStream = fileMan->findFirstData("monkeylogoscreen", TYPE_PIC);
|
||||
if (titleStream == NULL) {
|
||||
debug("The TitleScreen MPC entry can't be found.");
|
||||
@@ -147,7 +147,7 @@ Common::Error HDBGame::run() {
|
||||
}
|
||||
|
||||
lua->initScript(luaStream, luaLength);
|
||||
|
||||
|
||||
while (!shouldQuit()) {
|
||||
|
||||
Common::Event event;
|
||||
|
||||
@@ -625,17 +625,17 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, int32 length) {
|
||||
error("LuaScript::initScript: 'global code' failed to execute");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Load script and execute it
|
||||
|
||||
if (!executeMPC(stream, "level code", length)) {
|
||||
error("LuaScript::initScript: 'level code' failed to execute");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
lua_getglobal(_state, "level_init");
|
||||
lua_pcall(_state, 0, 0, 0);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -656,7 +656,7 @@ bool LuaScript::executeMPC(Common::SeekableReadStream *stream, const char *name,
|
||||
|
||||
if (!executeChunk(chunk, length, name)) {
|
||||
delete[] chunk;
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -667,7 +667,7 @@ bool LuaScript::executeMPC(Common::SeekableReadStream *stream, const char *name,
|
||||
|
||||
#if 0
|
||||
bool LuaScript::executeFile(const Common::String &filename) {
|
||||
|
||||
|
||||
if (!_systemInit) {
|
||||
return false;
|
||||
}
|
||||
@@ -756,7 +756,7 @@ bool LuaScript::executeChunk(const char *chunk, uint chunkSize, const Common::St
|
||||
if (lua_pcall(_state, 0, 0, 0)) {
|
||||
error("An error occured while executing \"%s\": %s.", chunkName.c_str(), lua_tostring(_state, -1));
|
||||
lua_pop(_state, -1);
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ private:
|
||||
bool registerExtensions();
|
||||
bool executeChunk(const char *chunk, uint chunkSize, const Common::String &chunkName) const;
|
||||
void sanitizeScript(char *chunk);
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user