fix linux and mac builds

macos-click-through
Keith Simmons 4 years ago
parent 546937501b
commit e6b52f8127

@ -100,7 +100,6 @@ fn main() {
// another frame next frame, or if it can safely skip drawing to save battery and cpu power. // another frame next frame, or if it can safely skip drawing to save battery and cpu power.
// Multiple other parts of the app "queue_next_frame" function to ensure animations continue // Multiple other parts of the app "queue_next_frame" function to ensure animations continue
// properly or updates to the graphics are pushed to the screen. // properly or updates to the graphics are pushed to the screen.
println!("This is a test");
if std::env::args().any(|arg| arg == "--version" || arg == "-v") { if std::env::args().any(|arg| arg == "--version" || arg == "-v") {
attach_parent_console(); attach_parent_console();

@ -215,6 +215,7 @@ pub fn register_rightclick_file() -> bool {
} }
pub fn attach_parent_console() { pub fn attach_parent_console() {
#[cfg(target_os = "windows")]
unsafe { unsafe {
AttachConsole(ATTACH_PARENT_PROCESS); AttachConsole(ATTACH_PARENT_PROCESS);
} }

Loading…
Cancel
Save