bug fixes, code cleanup
svn-id: r3446
This commit is contained in:
parent
f9daf35824
commit
056dd5b15d
17 changed files with 1178 additions and 1110 deletions
10
windows.cpp
10
windows.cpp
|
@ -17,6 +17,9 @@
|
|||
*
|
||||
* Change Log:
|
||||
* $Log$
|
||||
* Revision 1.8 2001/10/26 17:34:50 strigeus
|
||||
* bug fixes, code cleanup
|
||||
*
|
||||
* Revision 1.7 2001/10/23 19:51:50 strigeus
|
||||
* recompile not needed when switching games
|
||||
* debugger skeleton implemented
|
||||
|
@ -133,6 +136,7 @@ void Error(const char *msg) {
|
|||
|
||||
int sel;
|
||||
Scumm scumm;
|
||||
ScummDebugger debugger;
|
||||
WndMan wm[1];
|
||||
byte veryFastMode;
|
||||
|
||||
|
@ -148,6 +152,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
|
|||
case WM_CLOSE:
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
|
||||
case WM_CHAR:
|
||||
wm->_scumm->_keyPressed = wParam;
|
||||
break;
|
||||
|
@ -159,6 +164,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
|
|||
wm->_scumm->_saveLoadFlag = 1;
|
||||
else if (GetAsyncKeyState(VK_CONTROL)<0)
|
||||
wm->_scumm->_saveLoadFlag = 2;
|
||||
wm->_scumm->_saveLoadCompatible = false;
|
||||
}
|
||||
|
||||
if (wParam=='F') {
|
||||
|
@ -169,6 +175,10 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
|
|||
veryFastMode ^= 1;
|
||||
}
|
||||
|
||||
if (wParam=='D') {
|
||||
debugger.attach(wm->_scumm);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case WM_MOUSEMOVE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue