mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 15:48:09 -05:00
07912eb05a
* Stubbed a bunch of classes and annotated them for later use. Heavily wip and more of pseudocode right now. * Converted pseudocode into real code! * Created a bunch more classes and added more information to exisiting ones Did not error check, this was pushed just for reference * More classes and implementation details. Still not checked for any errors * Fixed code and decided on a way to handle virtual table stubs * Some additional fixes * More smaller fixes * Added classes to project and made it compile * Fixed function adresses that caused the python script to fail * More classes and virtual function resolves. Builds and compares fine. * Again more classes and virtual function resolves. Builds and compares fine. * No clue, I guess forced update for line endings * Finished up some work, compiles fine. All functions are STUB annotated to not pollute reccmp.py output. * line ending change * rename GetClassName/IsClass Mirroring recent changes from master * further conform to current master * update project * cleanup * project only updates when you close msdev --------- Co-authored-by: Cydra <cydra95@gmail.com> Co-authored-by: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
76 lines
1.4 KiB
C++
76 lines
1.4 KiB
C++
#ifndef ISLEAPP_H
|
|
#define ISLEAPP_H
|
|
|
|
#include <windows.h>
|
|
|
|
#include "mxtypes.h"
|
|
#include "mxvideoparam.h"
|
|
|
|
class IsleApp
|
|
{
|
|
public:
|
|
IsleApp();
|
|
~IsleApp();
|
|
|
|
void Close();
|
|
|
|
BOOL SetupLegoOmni();
|
|
void SetupVideoFlags(BOOL fullScreen, BOOL flipSurfaces, BOOL backBuffers,
|
|
BOOL using8bit, BOOL using16bit, BOOL param_6, BOOL param_7,
|
|
BOOL wideViewAngle, char *deviceId);
|
|
MxResult SetupWindow(HINSTANCE hInstance, LPSTR lpCmdLine);
|
|
|
|
BOOL ReadReg(LPCSTR name, LPSTR outValue, DWORD outSize);
|
|
int ReadRegBool(LPCSTR name, BOOL *out);
|
|
int ReadRegInt(LPCSTR name, int *out);
|
|
|
|
void LoadConfig();
|
|
void Tick(BOOL sleepIfNotNextFrame);
|
|
void SetupCursor(WPARAM wParam);
|
|
|
|
// private:
|
|
// 0
|
|
LPSTR m_hdPath;
|
|
LPSTR m_cdPath;
|
|
LPSTR m_deviceId;
|
|
LPSTR m_savePath;
|
|
|
|
// 10
|
|
BOOL m_fullScreen;
|
|
BOOL m_flipSurfaces;
|
|
BOOL m_backBuffersInVram;
|
|
BOOL m_using8bit;
|
|
|
|
// 20
|
|
BOOL m_using16bit;
|
|
int m_unk24;
|
|
BOOL m_use3dSound;
|
|
BOOL m_useMusic;
|
|
|
|
// 30
|
|
BOOL m_useJoystick;
|
|
int m_joystickIndex;
|
|
BOOL m_wideViewAngle;
|
|
int m_islandQuality;
|
|
|
|
// 40
|
|
int m_islandTexture;
|
|
int m_gameStarted;
|
|
long m_frameDelta;
|
|
|
|
// 4c
|
|
MxVideoParam m_videoParam;
|
|
|
|
// 70
|
|
BOOL m_windowActive;
|
|
HWND m_windowHandle;
|
|
BOOL m_drawCursor;
|
|
HCURSOR m_cursorArrow;
|
|
|
|
// 80
|
|
HCURSOR m_cursorBusy;
|
|
HCURSOR m_cursorNo;
|
|
HCURSOR m_cursorCurrent;
|
|
};
|
|
|
|
#endif // ISLEAPP_H
|