diff options
author | richiesams | 2013-06-27 13:40:24 -0500 |
---|---|---|
committer | richiesams | 2013-08-04 13:31:48 -0500 |
commit | 3283176f6d000cbb66208a0b5d4b3337004461fd (patch) | |
tree | a78006afc963ba73332ea7416826767db437b27b /engines | |
parent | 7803c9fddf5fecd7d9adb6741f08e37fb92c0224 (diff) | |
download | scummvm-rg350-3283176f6d000cbb66208a0b5d4b3337004461fd.tar.gz scummvm-rg350-3283176f6d000cbb66208a0b5d4b3337004461fd.tar.bz2 scummvm-rg350-3283176f6d000cbb66208a0b5d4b3337004461fd.zip |
ZVISION: Move initialization code from run() and into its own method
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/zvision.cpp | 8 | ||||
-rw-r--r-- | engines/zvision/zvision.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 2cc0b47113..452ed00daf 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -73,7 +73,7 @@ ZVision::~ZVision() { DebugMan.clearAllDebugChannels();
}
-Common::Error ZVision::run() {
+void ZVision::initialize() {
// Find zfs archive files
Common::ArchiveMemberList list;
SearchMan.listMatchingMembers(list, "*.zfs");
@@ -92,6 +92,12 @@ Common::Error ZVision::run() { // Create debugger console. It requires GFX to be initialized
_console = new Console(this);
+}
+
+Common::Error ZVision::run() {
+ initialize();
+
+ tests();
// Main loop
uint32 currentTime = _system->getMillis();
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h index b4664d0e29..c5ddb8ab4a 100644 --- a/engines/zvision/zvision.h +++ b/engines/zvision/zvision.h @@ -67,6 +67,8 @@ public: virtual Common::Error run();
private:
+ void initialize();
+
void processEvents();
void onMouseDown(const Common::Point &pos); void onMouseMove(const Common::Point &pos); |