Skip to main content

Module runtime

Module runtime 

Source
Expand description

What compatdb.so needs to apply a Resolution inside a process.

That is the process’s arch, its image path, command line and environment block as Wine hands them over in UTF-16, the reader of an image’s version resource, and the values the library hands to Wine.

A launcher does not need this module. It builds rules, writes the table into ENV_VAR and, to show what a program would get, uses Table::preview with a VersionInfo it fills in itself.

Enums§

Arch
The architecture of the program a process runs, which is that of its main executable.

Constants§

IMAGE_FILE_MACHINE_ARM64
The COFF Machine value of an ARM64 image.

Functions§

append_cmdline
Append each text to the command line unless it is already present.
append_cmdline_each
append_cmdline, also saying for each text whether it was appended: false for one that was already present, or empty.
basename_of
The basename of a DOS image path (...\Foo\Bar.exe -> Bar.exe), decoded lossily from UTF-16.
default_d3d9
The D3D9 implementation a process loads when no rule names one.
default_dxgi
The DXGI-family implementation a process loads when no rule names one.
effective_d3d9
The D3D9 implementation a process loads: the requested one, or default_d3d9 for the arch when nothing was requested.
effective_dxgi
The DXGI-family implementation a process loads: the requested one, or default_dxgi for the arch when nothing was requested.
env_value
The value of the variable name in a NAME=value\0...\0\0 block, the first entry for it, matched case-insensitively and decoded lossily; None when the block has none.
merge_env
Merge environment entries into a NAME=value\0...\0\0 block.
opengl_hook_value
The value ntdll’s set_compat_opengl takes for opengl: 1 for Mesa’s EGL, 0 for Apple’s OpenGL.
version_info
The standard fields of a VS_VERSIONINFO blob.
wined3d_config
The WINE_D3D_CONFIG value for the renderer wined3d on top of config.
wined3d_renderer_in
The renderer option of a WINE_D3D_CONFIG value, the first one as wined3d reads it, or None when the value has none.