mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
b7ccfed853
* fix: broken logging under Wine * feat: `IsExported` added to `Module`
14 lines
314 B
C++
14 lines
314 B
C++
#include "core/memory/ModuleMgr.hpp"
|
|
#include "Joaat.hpp"
|
|
|
|
#include <optional>
|
|
|
|
namespace YimMenu {
|
|
inline std::optional<bool> InWine()
|
|
{
|
|
auto module = ModuleMgr.Get("ntdll.dll"_J);
|
|
if (!module)
|
|
return std::nullopt;
|
|
return module->IsExported("wine_get_version");
|
|
}
|
|
} |