[Scummvm-cvs-logs] scummvm master -> ff132ee2d45f3a73a8fc5716686598e61fdf07e1
dreammaster
dreammaster at scummvm.org
Fri Apr 26 02:57:39 CEST 2013
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a39680ec21 CREATE_PROJECT: Add scummvm core project to list of coroutine projects to fix MSVC 10 compilation
5d48d85219 HOPKINS: Fix Return to Launcher
ff132ee2d4 Merge branch 'master' of https://github.com/scummvm/scummvm
Commit: a39680ec21f0cb0b76f416430af2750500c161c4
https://github.com/scummvm/scummvm/commit/a39680ec21f0cb0b76f416430af2750500c161c4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2013-04-25T04:57:14-07:00
Commit Message:
CREATE_PROJECT: Add scummvm core project to list of coroutine projects to fix MSVC 10 compilation
Changed paths:
devtools/create_project/config.h
diff --git a/devtools/create_project/config.h b/devtools/create_project/config.h
index de4703a..1a66edf 100644
--- a/devtools/create_project/config.h
+++ b/devtools/create_project/config.h
@@ -29,7 +29,7 @@
#define REVISION_DEFINE "SCUMMVM_INTERNAL_REVISION"
#define ENABLE_LANGUAGE_EXTENSIONS "" // Comma separated list of projects that need language extensions
-#define DISABLE_EDIT_AND_CONTINUE "tinsel,tony" // Comma separated list of projects that need Edit&Continue to be disabled for co-routine support (the main project is automatically added)
+#define DISABLE_EDIT_AND_CONTINUE "tinsel,tony,scummvm" // Comma separated list of projects that need Edit&Continue to be disabled for co-routine support (the main project is automatically added)
//#define ADDITIONAL_LIBRARY "" // Add a single library to the list of externally linked libraries
#define NEEDS_RTTI 0 // Enable RTTI globally
Commit: 5d48d8521939d4a62151e1dd1d996a6385ffaaae
https://github.com/scummvm/scummvm/commit/5d48d8521939d4a62151e1dd1d996a6385ffaaae
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2013-04-25T17:50:08-07:00
Commit Message:
HOPKINS: Fix Return to Launcher
Changed paths:
engines/hopkins/events.cpp
engines/hopkins/hopkins.cpp
engines/hopkins/hopkins.h
engines/hopkins/menu.cpp
diff --git a/engines/hopkins/events.cpp b/engines/hopkins/events.cpp
index 58389ef..51c66c4 100644
--- a/engines/hopkins/events.cpp
+++ b/engines/hopkins/events.cpp
@@ -237,7 +237,7 @@ void EventsManager::checkForNextFrameCounter() {
void EventsManager::delay(int totalMilli) {
uint32 delayEnd = g_system->getMillis() + totalMilli;
- while (!g_system->getEventManager()->shouldQuit() && g_system->getMillis() < delayEnd) {
+ while (!_vm->shouldQuit() && g_system->getMillis() < delayEnd) {
g_system->delayMillis(10);
}
}
diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp
index bf9509c..aece768 100644
--- a/engines/hopkins/hopkins.cpp
+++ b/engines/hopkins/hopkins.cpp
@@ -1534,10 +1534,6 @@ bool HopkinsEngine::runFull() {
return true;
}
-bool HopkinsEngine::shouldQuit() const {
- return g_system->getEventManager()->shouldQuit();
-}
-
int HopkinsEngine::getRandomNumber(int maxNumber) {
return _randomSource.getRandomNumber(maxNumber);
}
@@ -1889,7 +1885,10 @@ void HopkinsEngine::bombExplosion() {
}
void HopkinsEngine::restoreSystem() {
- quitGame();
+ // If the game isn't alerady trying to quit, flag that quitting is needed
+ if (!shouldQuit())
+ quitGame();
+
_events->refreshEvents();
}
diff --git a/engines/hopkins/hopkins.h b/engines/hopkins/hopkins.h
index b5de387..7af7f96 100644
--- a/engines/hopkins/hopkins.h
+++ b/engines/hopkins/hopkins.h
@@ -167,7 +167,6 @@ public:
Common::Platform getPlatform() const;
uint16 getVersion() const;
bool getIsDemo() const;
- bool shouldQuit() const;
int getRandomNumber(int maxNumber);
Common::String generateSaveName(int slotNumber);
diff --git a/engines/hopkins/menu.cpp b/engines/hopkins/menu.cpp
index 01aa84e..455f4ad 100644
--- a/engines/hopkins/menu.cpp
+++ b/engines/hopkins/menu.cpp
@@ -50,11 +50,11 @@ int MenuManager::menu() {
signed int result;
int frameIndex[] = { 0, 0, 0, 0, 0 };
- if (g_system->getEventManager()->shouldQuit())
+ if (_vm->shouldQuit())
return -1;
result = 0;
- while (!g_system->getEventManager()->shouldQuit()) {
+ while (!_vm->shouldQuit()) {
_vm->_objectsMan->_forestFl = false;
_vm->_events->_breakoutFl = false;
_vm->_globals->_disableInventFl = true;
@@ -97,7 +97,7 @@ int MenuManager::menu() {
// Loop to make menu selection
bool selectionMade = false;
do {
- if (g_system->getEventManager()->shouldQuit())
+ if (_vm->shouldQuit())
return -1;
menuIndex = MENU_NONE;
Commit: ff132ee2d45f3a73a8fc5716686598e61fdf07e1
https://github.com/scummvm/scummvm/commit/ff132ee2d45f3a73a8fc5716686598e61fdf07e1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2013-04-25T17:54:52-07:00
Commit Message:
Merge branch 'master' of https://github.com/scummvm/scummvm
Changed paths:
engines/hopkins/dialogs.cpp
engines/sci/detection_tables.h
engines/sci/parser/grammar.cpp
engines/toon/anim.cpp
More information about the Scummvm-git-logs
mailing list