diff options
Diffstat (limited to 'zluda_inject/src/main.rs')
-rw-r--r-- | zluda_inject/src/main.rs | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/zluda_inject/src/main.rs b/zluda_inject/src/main.rs index 6e292f2..f8c1921 100644 --- a/zluda_inject/src/main.rs +++ b/zluda_inject/src/main.rs @@ -1,5 +1,15 @@ -#[cfg(target_os = "windows")] -mod bin; - -#[cfg(not(target_os = "windows"))] -fn main() {}
\ No newline at end of file +#[macro_use]
+#[cfg(target_os = "windows")]
+mod win;
+#[cfg(target_os = "windows")]
+mod bin;
+
+use std::error::Error;
+
+#[cfg(target_os = "windows")]
+fn main() -> Result<(), Box<dyn Error>> {
+ bin::main_impl()
+}
+
+#[cfg(not(target_os = "windows"))]
+fn main() {}
|