mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 18:00:17 +02:00
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.
20 lines
469 B
C++
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
|