From bdeb0df8c79939c6bdff9c65271eb5db51f68543 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Mon, 20 Jan 2025 02:12:48 -0600 Subject: [PATCH] Add oodle mac platform --- oodle_loader/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oodle_loader/src/lib.rs b/oodle_loader/src/lib.rs index 835a618..de027d0 100644 --- a/oodle_loader/src/lib.rs +++ b/oodle_loader/src/lib.rs @@ -104,13 +104,20 @@ struct OodlePlatform { hash: &'static str, } -#[cfg(unix)] +#[cfg(target_os = "linux")] static OODLE_PLATFORM: OodlePlatform = OodlePlatform { path: "linux/lib", name: "liboo2corelinux64.so.9", hash: "ed7e98f70be1254a80644efd3ae442ff61f854a2fe9debb0b978b95289884e9c", }; +#[cfg(target_os = "macos")] +static OODLE_PLATFORM: OodlePlatform = OodlePlatform { + path: "mac/lib", + name: "liboo2coremac64.2.9.10.dylib", + hash: "b09af35f6b84a61e2b6488495c7927e1cef789b969128fa1c845e51a475ec501", +}; + #[cfg(windows)] static OODLE_PLATFORM: OodlePlatform = OodlePlatform { path: "win/redist",