mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 14:00:16 +02:00
To not have this environment variable accidently be enabled on arm64 native Wine games, we need to set it from inside of FEX. Requires the FEX dlls to set them directly rather than launch scripts.
25 lines
577 B
C
25 lines
577 B
C
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
// SPDX-FileCopyrightText: Copyright (C) 2021 Alexandre Julliard
|
|
|
|
#pragma once
|
|
|
|
#include <winternl.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef UINT64 unixlib_handle_t;
|
|
|
|
extern NTSTATUS(WINAPI* __wine_set_unix_env)(const char*, const char*);
|
|
|
|
extern NTSTATUS(WINAPI* __wine_unix_call_dispatcher)(unixlib_handle_t, unsigned int, void*);
|
|
|
|
static inline NTSTATUS __wine_unix_call(unixlib_handle_t handle, unsigned int code, void* args) {
|
|
return __wine_unix_call_dispatcher(handle, code, args);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|