mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-07 16:50:15 +02:00
winmain v2.
fullscrn, pb v1.
This commit is contained in:
parent
473ed6b9d9
commit
7db64ae1c6
21 changed files with 960 additions and 312 deletions
|
@ -1,16 +1,45 @@
|
|||
#pragma once
|
||||
|
||||
struct __declspec(align(4)) optionsStruct
|
||||
{
|
||||
int Sounds;
|
||||
int Music;
|
||||
int Average;
|
||||
int FullScreen;
|
||||
int PriorityAdj;
|
||||
int Players;
|
||||
int LeftFlipperKey;
|
||||
int RightFlipperKey;
|
||||
int PlungerKey;
|
||||
int LeftTableBumpKey;
|
||||
int RightTableBumpKey;
|
||||
int BottomTableBumpKey;
|
||||
int LeftFlipperKey2;
|
||||
int RightFlipperKey2;
|
||||
int PlungerKey2;
|
||||
int LeftTableBumpKey2;
|
||||
int RightTableBumpKey2;
|
||||
int BottomTableBumpKey2;
|
||||
};
|
||||
|
||||
|
||||
class options
|
||||
{
|
||||
public:
|
||||
static void init(HMENU menuHandle);
|
||||
static void path_init(LPCSTR regPath);
|
||||
static void path_uninit();
|
||||
static int get_int(LPCSTR optPath, LPCSTR lpValueName, int defaultValue);
|
||||
static void set_int(LPCSTR optPath, LPCSTR lpValueName, int data);
|
||||
static void get_string(LPCSTR optPath, LPCSTR lpValueName, LPSTR lpString1, LPCSTR lpString2, int iMaxLength);
|
||||
static void set_string(LPCSTR optPath, LPCSTR lpValueName, LPCSTR value);
|
||||
static HMENU menu_check(UINT uIDCheckItem, int value);
|
||||
|
||||
static optionsStruct Options;
|
||||
private:
|
||||
static LPCSTR OptionsRegPath;
|
||||
static LPSTR OptionsRegPathCur;
|
||||
static LPCSTR path(LPCSTR regPath);
|
||||
static void path_free();
|
||||
static HMENU MenuHandle;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue