mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-10 18:21:14 +00:00
Some checks failed
CI / clang-format (push) Has been cancelled
CI / ${{ matrix.name }} (false, --toolchain /usr/local/vitasdk/share/vita.toolchain.cmake, false, false, Ninja, Vita, ubuntu-latest, true, true) (push) Has been cancelled
CI / ${{ matrix.name }} (false, -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0.26100.0, false, false, Visual Studio 17 2022, true, Xbox One, windows-latest, amd64, false, true) (push) Has been cancelled
CI / ${{ matrix.name }} (false, -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/3DS.cmake, false, devkitpro/devkitarm:latest, false, Ninja, true, Nintendo 3DS, ubuntu-latest, true) (push) Has been cancelled
CI / ${{ matrix.name }} (false, -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Switch.cmake, false, devkitpro/devkita64:latest, false, Ninja, Nintendo Switch, true, ubuntu-latest, true) (push) Has been cancelled
CI / ${{ matrix.name }} (false, emcmake, false, false, true, Ninja, Emscripten, ubuntu-latest, true) (push) Has been cancelled
CI / ${{ matrix.name }} (false, false, false, Ninja, true, MSVC (arm64), windows-latest, amd64_arm64, false) (push) Has been cancelled
CI / ${{ matrix.name }} (false, false, true, Ninja, true, MSVC (x86), windows-latest, amd64_x86, false) (push) Has been cancelled
CI / ${{ matrix.name }} (false, true, false, Ninja, true, MSVC (x64), windows-latest, amd64, false) (push) Has been cancelled
CI / ${{ matrix.name }} (false, true, true, false, Ninja, true, MSVC (x64 Debug), windows-latest, amd64, false) (push) Has been cancelled
CI / ${{ matrix.name }} (true, false, -DCMAKE_SYSTEM_NAME=iOS, false, false, Xcode, true, iOS, macos-15, true) (push) Has been cancelled
CI / ${{ matrix.name }} (true, false, false, Ninja, true, mingw-w64-i686, mingw32, msys2 mingw32, windows-latest, msys2 {0}, true) (push) Has been cancelled
CI / ${{ matrix.name }} (true, false, false, false, Ninja, Android, ubuntu-latest, true) (push) Has been cancelled
CI / ${{ matrix.name }} (true, false, true, false, Ninja, macOS, macos-latest, true) (push) Has been cancelled
CI / ${{ matrix.name }} (true, true, false, Ninja, true, mingw-w64-x86_64, mingw64, msys2 mingw64, windows-latest, msys2 {0}, true) (push) Has been cancelled
CI / ${{ matrix.name }} (true, true, true, false, Ninja, true, Linux (Debug), ubuntu-latest, true) (push) Has been cancelled
CI / ${{ matrix.name }} (true, true, true, false, Ninja, true, Linux, ubuntu-latest, true) (push) Has been cancelled
CI / Flatpak (${{ matrix.arch }}) (aarch64, ubuntu-22.04-arm) (push) Has been cancelled
CI / Flatpak (${{ matrix.arch }}) (x86_64, ubuntu-latest) (push) Has been cancelled
CI / C++ (push) Has been cancelled
CI / Release (push) Has been cancelled
Docker / Publish web port (push) Has been cancelled
* implement WASD control option * remove unnecessary getter function
107 lines
2.4 KiB
C++
107 lines
2.4 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:
|
|
int m_aspect_ratio;
|
|
int m_x_res;
|
|
int m_y_res;
|
|
int m_exf_x_res;
|
|
int m_exf_y_res;
|
|
float m_exf_fps;
|
|
float m_frame_delta;
|
|
LegoDeviceEnumerate* m_device_enumerator;
|
|
MxDriver* m_driver;
|
|
Direct3DDeviceInfo* m_device;
|
|
int m_display_bit_depth;
|
|
int m_msaa;
|
|
int m_anisotropy;
|
|
bool m_flip_surfaces;
|
|
bool m_full_screen;
|
|
bool m_exclusive_full_screen;
|
|
int m_transition_type;
|
|
bool m_3d_video_ram;
|
|
bool m_wide_view_angle;
|
|
bool m_3d_sound;
|
|
bool m_draw_cursor;
|
|
bool m_use_joystick;
|
|
bool m_haptic;
|
|
bool m_wasd;
|
|
int m_joystick_index;
|
|
int m_model_quality;
|
|
int m_texture_quality;
|
|
bool m_music;
|
|
bool m_texture_load;
|
|
bool m_custom_assets_enabled;
|
|
std::string m_texture_path;
|
|
std::string m_custom_asset_path;
|
|
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;
|
|
int m_touch_scheme;
|
|
int m_ram_quality_limit;
|
|
};
|
|
|
|
extern CConfigApp g_theApp;
|
|
|
|
#endif // !defined(AFX_CONFIG_H)
|