Dasaav-dsv / libER

ELDEN RING API library with a focus on binary compatibility and safety
Other
40 stars 3 forks source link

Add CS::CSWindowImp class #25

Closed ThomasJClark closed 4 months ago

ThomasJClark commented 4 months ago

Add partial definitions for the CSWindow base, which can be used to get the HWND instance for the game window and change various graphics quality preferences

e.g.:

auto window_ref = CS::CSWindowImp::instance();
if (window_ref.has_reference())
{
    auto &window = window_ref.reference();

    // Disable ray tracing
    window.get_graphics_settings().ray_tracing_quality = CS::CSWindowImp::quality_level::off;

    // Change the window title
    SetWindowTextA(window.get_window_handle(), "Bingus Bongus Ring");
}