Files
FEX-Emu--FEX/Source/Windows/Common/FEXUnixLib.h
T
Ryan Houdek c09225f868 Windows: Load unixlib if possible
Currently does nothing other than load it (as the library also doesn't
do anything yet). Ensured it was working by temporarily creating a test
entrypoint and doing `Call` on to it.

Next step after this is to reimplement some of the nasty hacks FEX is
doing inside the unixlib code itself.
2026-06-26 20:50:24 -07:00

20 lines
469 B
C++

// SPDX-License-Identifier: MIT
#pragma once
#include <cstdint>
#include "wine/unixlib.h"
namespace FEX::Windows::UnixLib {
extern decltype(__wine_unix_call_dispatcher) UnixCallDispatcher;
extern unixlib_handle_t UnixLibHandle;
inline NTSTATUS Call(uint32_t code, void* args) {
if (!UnixCallDispatcher) {
return STATUS_NOT_SUPPORTED;
}
return UnixCallDispatcher(UnixLibHandle, code, args);
}
bool Init(HMODULE NtDll);
} // namespace FEX::Windows::UnixLib