This commit is contained in:
2024-09-25 02:19:37 +08:00
parent a2bfc78e8d
commit 47d35aa3a2
95 changed files with 1208 additions and 288 deletions

View File

@@ -5,24 +5,52 @@
#include <gh_global.h>
struct R3Config {
std::string gameDataDir;
std::string gfxAdapter;
std::string gfxIdentifier;
std::string gfxGliMode;
// The root directory of the game, containing the executable
std::string gameRootDir;
// Language code of the game "English", etc.
std::string language;
// The adapter to use
int gfxAdapter{};
// The UUID of the device to use
std::string gfxIdentifier;
// Game default is "1 - 640 x 480 x 16"
// first digit 1 is fullscreen, 0 is windowed
// second digit is width
// third digit is height
// fourth digit is bpp
std::string gfxGliMode;
// Any of:
// Agp8
// Agp4
// Vram8
// Vram4
// Vram+
// Vram
std::string gfxTexturesMem;
bool gfxTexturesCompressed{};
bool gfxTnl{};
bool gfxTrilinear{};
int cameraHorizontalAxis = 2;
int cameraVerticalAxis = 5;
std::string gameDataBinPath;
};
inline R3Config createDefaultConfig() {
R3Config config{};
#ifdef R3_GAME_DATA_DIR
config.gameDataDir = R3_GAME_DATA_DIR;
config.gameRootDir = R3_GAME_DATA_DIR;
#endif
// Windowed 720p
config.gfxGliMode = "0 - 1200 x 720 - 16";
config.gfxAdapter = "D3D";
config.gfxGliMode = "0 - 1200 x 720 x 16";
config.gfxAdapter = 0;
config.gfxIdentifier = "00000000-0000-0000-0000-000000000000";
config.language = s_English_005b684c;
config.gfxTexturesMem = "Vram+";
config.gfxTrilinear = true;
config.gfxTnl = true;
config.gfxTexturesCompressed = false;
config.gameDataBinPath = "Gamedatabin";
return config;
}