Detect D3D9 CreateDevice / CreateDeviceEx failures (#388)

## Link to GitHub Issue, if one exists
#345 

## Description of change
Show a block of warning text if the game crashes after CreateDevice(Ex)
fails.

## Testing
Tested by injecting invalid resolution into spicecfg.
This commit is contained in:
bicarus-dev
2025-09-30 22:13:02 -07:00
committed by GitHub
parent b487cf2bcf
commit d3fa27ae4a
3 changed files with 34 additions and 1 deletions
+5
View File
@@ -1,16 +1,21 @@
#pragma once
#include <string>
#include <cstdint>
namespace launcher::signal {
// settings
extern bool DISABLE;
extern bool USE_VEH_WORKAROUND;
// error cases
extern bool SUPERSTEP_SOUND_ERROR;
extern bool AVS_DIR_CREATION_FAILURE;
extern std::string AVS_XML_PATH;
extern std::string AVS_SRC_PATH;
extern bool D3D9_CREATE_DEVICE_FAILED;
extern uint32_t D3D9_CREATE_DEVICE_FAILED_HRESULT;
//void print_stacktrace();
void attach();