mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-09-28 01:38:07 +03:00
## Link to GitHub Issue or related Pull Request, if one exists #618 ## Description of change The game expects the main display to be *not* HDMI, and at port 2. Hooking DisplayConfigGetDeviceInfo allows us to boot the game on any monitor. Add basic I/O hook. It gets stuck in `USB I/O Checking...` for a couple minutes but it'll eventually skip and boot to title screen. ## Testing ugh.
25 lines
622 B
C++
25 lines
622 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <cstdint>
|
|
|
|
namespace sysutils {
|
|
void print_smbios();
|
|
void print_gpus();
|
|
void print_os();
|
|
|
|
struct MonitorEntry {
|
|
std::string display_name; // \\.\DISPLAY1
|
|
std::wstring friendly_name; // Dell S2204T; wstring so that it can be converted to utf8 or string
|
|
bool is_primary;
|
|
uint32_t adapter_id_LowPart;
|
|
int32_t adapter_id_HighPart;
|
|
uint32_t id;
|
|
};
|
|
|
|
const std::vector<MonitorEntry> &enumerate_monitors();
|
|
|
|
extern std::string SECOND_MONITOR_OVERRIDE;
|
|
void hook_EnumDisplayDevicesA();
|
|
} |