Skip to content

Commit

Permalink
Fix log methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth committed Sep 5, 2024
1 parent 1002d37 commit ff1cb73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/asr-capi/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[cfg(target_pointer_width = "64")]
use {
livesplit_auto_splitting::{time, wasi_path, Timer, TimerState},
livesplit_auto_splitting::{time, wasi_path, LogLevel, Timer, TimerState},
std::{cell::RefCell, ffi::CStr, fmt, path::Path},
};

Expand Down Expand Up @@ -110,7 +110,11 @@ impl Timer for CTimer {

fn set_variable(&mut self, _: &str, _: &str) {}

fn log(&mut self, message: fmt::Arguments<'_>) {
fn log_auto_splitter(&mut self, message: fmt::Arguments<'_>) {
log(self.log, message);
}

fn log_runtime(&mut self, message: fmt::Arguments<'_>, _: LogLevel) {
log(self.log, message);
}
}
Expand Down

0 comments on commit ff1cb73

Please sign in to comment.