mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 18:38:36 +00:00
Preserve physical window aliases across remaps, order console list values, and replay bounded indirect graphics with captured draw state. Coordinate pipeline lifetime, texture refresh and queue teardown. Add synthetic CPU and GPU coverage for the integrated paths. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
11 lines
385 B
C
11 lines
385 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
inline DWORD expected_xmem_section_state() {
|
|
char value[4]{};
|
|
const DWORD length = GetEnvironmentVariableA("LEONIDA_XMEM_SEC_COMMIT", value, sizeof(value));
|
|
const bool wine = GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "wine_get_version") != nullptr;
|
|
return wine && !(length == 1 && value[0] == '0') ? MEM_COMMIT : MEM_RESERVE;
|
|
}
|