mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-17 23:20:19 +01:00
7db64ae1c6
fullscrn, pb v1.
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#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;
|
|
};
|