diff options
author | Strangerke | 2013-09-20 07:35:50 +0200 |
---|---|---|
committer | Strangerke | 2013-09-20 07:35:50 +0200 |
commit | f88ca9dc81e81a03c476d0224422a42d7d30e225 (patch) | |
tree | 1144369b613d1a77d5aba2796d95bdd7ff6b6fad /engines/avalanche/avalanche.cpp | |
parent | bb58813eeec71104e770867533e55940d6262de9 (diff) | |
download | scummvm-rg350-f88ca9dc81e81a03c476d0224422a42d7d30e225.tar.gz scummvm-rg350-f88ca9dc81e81a03c476d0224422a42d7d30e225.tar.bz2 scummvm-rg350-f88ca9dc81e81a03c476d0224422a42d7d30e225.zip |
AVALANCHE: Remove misc dead or useless code: useless arguments, stubbed ini file reading, etc
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
-rw-r--r-- | engines/avalanche/avalanche.cpp | 55 |
1 files changed, 6 insertions, 49 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index b7fa2ac48f..7d216fad33 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -519,63 +519,15 @@ Common::Point AvalancheEngine::getMousePos() { return _eventMan->getMousePos(); } -// From Bootstrp: -const char AvalancheEngine::kRuncodes[2][3] = {"et", "Go"}; - -void AvalancheEngine::bFlightOn() { - _storage._skellern = kReset; - // setintvec(0x1c, &b_flight); -} - -void AvalancheEngine::getArguments() { - // This function should mess around with command line arguments, - // but I am not sure if there'll be use of these arguments at all... - warning("STUB: getArguments()"); -} - -void AvalancheEngine::getSlope() { - // Same as get_arguments() - warning("STUB: getSlope()"); -} - -void AvalancheEngine::callMenu() { - warning("STUB: callMenu()"); -} - -void AvalancheEngine::runAvalot() { - bFlightOn(); - - _avalot->run(Common::String(kRuncodes[_firstTime]) + _arguments); - // TODO: Check if parameters are ever used (probably not) and eventually remove them. - // If there's an error initializing avalot, i'll handle it in there, not here - - _firstTime = false; -} - Common::Error AvalancheEngine::run() { Common::ErrorCode err = initialize(); if (err != Common::kNoError) return err; - // From bootstrp: - _firstTime = true; - - getArguments(); - getSlope(); - - _zoomy = true; - // Don't call the menu by default. Might be modified later, if get_slope() gets implemented, - // because zoomy's value is given there. Not sure yet what "zoomy" stands for. - if (!_zoomy) - callMenu(); // Not run when zoomy. - do { - runAvalot(); + _avalot->runAvalot(); // Needed for later implementation!!! Don't remove these comments!!! - - //if (dosexitcode != 77) quit(); // Didn't stop for us. - //switch (_storage._operation) { //case kRunShootemup: // run("seu.avx", kJsb, kBflight, kNormal); @@ -602,6 +554,11 @@ void AvalancheEngine::run(Common::String what, bool withJsb, bool withBflight, E // Probably there'll be no need of this function, as all *.AVX-es will become classes. } +void AvalancheEngine::bFlightOn() { + _storage._skellern = kReset; + // setintvec(0x1c, &b_flight); +} + void AvalancheEngine::bFlightOff() { // setintvec(0x1c, old_1c); } |