Skip to content

Commit

Permalink
fix build on non-windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Nov 18, 2023
1 parent 881cd36 commit 14d930d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src-tauri/src/samp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ pub struct SAMPUserData {
}

#[cfg(not(target_os = "windows"))]
pub fn get_gtasa_path() -> Option<String> {
Some("")
pub fn get_gtasa_path() -> String {
"".to_string()
}

#[cfg(not(target_os = "windows"))]
pub fn get_player_name() -> Option<String> {
Some("")
pub fn get_nickname() -> String {
"".to_string()
}

#[cfg(not(target_os = "windows"))]
Expand Down

0 comments on commit 14d930d

Please sign in to comment.