Files
mandy/runtime/test/xmem_section_state.h
Moriz82 ba626820ec Integrate post-story-load memory, queue and Vulkan runtime changes
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>
2026-11-25 03:44:43 -06:00

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;
}