*** empty log message ***

This commit is contained in:
Aaron Robinson 2003-03-09 09:17:07 +00:00
parent da20cd9ec2
commit dc5a169bde
4 changed files with 477 additions and 389 deletions

View File

@ -42,57 +42,96 @@
class WndMain : public Wnd
{
public:
WndMain(HINSTANCE x_hInstance);
~WndMain();
// ******************************************************************
// * window message procedure
// ******************************************************************
LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void SaveXbe(const char *x_filename);
void SaveXbeAs();
// ******************************************************************
// * Xbe operations
// ******************************************************************
void OpenXbe(const char *x_filename);
void CloseXbe();
void SaveXbe(const char *x_filename);
void SaveXbeAs();
bool ConvertToExe(const char *x_filename, bool x_bVerifyIfExists);
// ******************************************************************
// * start emulation (converting to .exe if not done already)
// ******************************************************************
void StartEmulation(bool x_bAutoConvert);
// ******************************************************************
// * accessor
// ******************************************************************
bool isCreated() { return m_bCreated; }
// ******************************************************************
// * suggest appropriate filename based on input
// ******************************************************************
static void SuggestFilename(const char *x_orig_filename, char *x_filename, char x_extension[4]);
private:
// ******************************************************************
// * after an xbe is loaded, some things must be updated
// ******************************************************************
void XbeLoaded();
void XbeLoaded(); // after an xbe is loaded, some stuff needs to update
// ******************************************************************
// * refresh the logo in the main window
// ******************************************************************
void LoadLogo();
void LoadLogo(); // refresh the logo in the main window
// ******************************************************************
// * allocate / deallocate debug consoles
// ******************************************************************
void UpdateDebugConsoles();
void UpdateDebugConsoles(); // allocate / deallocate debug consoles as per configuration
// ******************************************************************
// * drawing information
// ******************************************************************
HDC m_BackDC;
HDC m_LogoDC;
HBITMAP m_OrigBmp;
HBITMAP m_OrigLogo;
HBITMAP m_BackBmp;
HBITMAP m_LogoBmp;
HDC m_back_dc;
HDC m_logo_dc;
// ******************************************************************
// * Xbe/Exe objects
// ******************************************************************
Xbe *m_Xbe;
Exe *m_Exe;
HBITMAP m_orig_bmp;
HBITMAP m_orig_logo;
HBITMAP m_back_bmp;
HBITMAP m_logo_bmp;
Xbe *m_xbe;
Exe *m_exe;
// ******************************************************************
// * changes remembered for internal purposes
// ******************************************************************
bool m_bXbeChanged;
bool m_bExeChanged;
// ******************************************************************
// * cached filenames
// ******************************************************************
char *m_XbeFilename;
char *m_ExeFilename;
bool m_xbe_changed;
bool m_exe_changed;
// ******************************************************************
// * is this window fully initialized?
// ******************************************************************
bool m_bCreated;
enum DebugMode m_CxbxDebug;
enum DebugMode m_KrnlDebug;
// ******************************************************************
// * current debug mode type
// ******************************************************************
DebugMode m_CxbxDebug;
DebugMode m_KrnlDebug;
// ******************************************************************
// * debug output filenames
// ******************************************************************
char *m_CxbxDebugFilename;
char *m_KrnlDebugFilename;
};

View File

@ -5,13 +5,14 @@
#define IDI_CXBX 101
#define IDR_RENDERMENU 102
#define ID_FILE_EXIT 40001
#define ID_VIEW_FULLSCREEN 40002
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40002
#define _APS_NEXT_COMMAND_VALUE 40003
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif

File diff suppressed because it is too large Load Diff

View File

@ -178,14 +178,21 @@ LRESULT WINAPI EmuXMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
switch(LOWORD(wParam))
{
case ID_FILE_EXIT:
{
SendMessage(hWnd, WM_CLOSE, 0, 0);
}
break;
break;
}
}
break;
case WM_KEYDOWN:
switch (wParam)
{
case VK_ESCAPE:
PostMessage(hWnd, WM_CLOSE, 0, 0);
break;
}
break;
case WM_CLOSE:
DestroyWindow(hWnd);
break;