VoxelTek 7a92f53212
Revamp config tool, add tooltips and consolidate options. (#427)
* Add tooltips, remove obsolete directory stuff

In the config tool, the "Media Path" entry was removed, as it doesn't do anything in isle-portable as far as I know.
The "Disk Path" and "CD Path" options were merged into one directory editing thing, where CD Path is specified and Disk Path is then derived from that.
A checkbox to enable or disable full-screen was added.
Tooltips were added to the config app, so now users can more easily tell what a setting in the config tool does.

* Make clang-format happy

* oops that's an extra semicolon I don't need

* Remove obsolete full screen forcing

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

* Update CONFIG/config.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>

---------

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2025-06-26 03:58:06 +02:00

88 lines
2.0 KiB
C++

#if !defined(AFX_CONFIG_H)
#define AFX_CONFIG_H
#include "AboutDlg.h"
#include "compat.h"
#include "decomp.h"
#ifdef MINIWIN
#include "miniwin/d3d.h"
#else
#include <d3d.h>
#endif
#include <string>
class LegoDeviceEnumerate;
struct Direct3DDeviceInfo;
struct MxDriver;
#define currentConfigApp (&g_theApp)
// VTABLE: CONFIG 0x00406040
// SIZE 0x108
class CConfigApp {
public:
CConfigApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CConfigApp)
public:
bool InitInstance();
int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
// bool WriteReg(const char* p_key, const char* p_value) const;
// bool ReadReg(LPCSTR p_key, LPCSTR p_value, DWORD p_size) const;
// bool ReadRegBool(LPCSTR p_key, bool* p_bool) const;
// bool ReadRegInt(LPCSTR p_key, int* p_value) const;
bool IsDeviceInBasicRGBMode() const;
D3DCOLORMODEL GetHardwareDeviceColorModel() const;
bool IsPrimaryDriver() const;
bool ReadRegisterSettings();
bool ValidateSettings();
DWORD GetConditionalDeviceRenderBitDepth() const;
DWORD GetDeviceRenderBitStatus() const;
bool AdjustDisplayBitDepthBasedOnRenderStatus();
void WriteRegisterSettings() const;
void SetIniPath(const std::string& p_path);
const std::string& GetIniPath() const;
//{{AFX_MSG(CConfigApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
// DECLARE_MESSAGE_MAP()
public:
LegoDeviceEnumerate* m_device_enumerator;
MxDriver* m_driver;
Direct3DDeviceInfo* m_device;
int m_display_bit_depth;
bool m_flip_surfaces;
bool m_full_screen;
bool m_3d_video_ram;
bool m_wide_view_angle;
bool m_3d_sound;
bool m_draw_cursor;
bool m_use_joystick;
int m_joystick_index;
int m_model_quality;
int m_texture_quality;
bool m_music;
std::string m_iniPath;
std::string m_base_path;
std::string m_cd_path;
std::string m_save_path;
float m_max_lod;
int m_max_actors;
};
extern CConfigApp g_theApp;
#endif // !defined(AFX_CONFIG_H)