aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index a2866cb4..9cbef850 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -86,7 +86,8 @@ fn main() {
verify_game_files_caller,
get_enabled_mods_caller,
set_mod_enabled_status_caller,
- disable_all_but_core_caller
+ disable_all_but_core_caller,
+ is_debug_mode
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
@@ -111,6 +112,12 @@ fn force_panic() {
}
#[tauri::command]
+/// Returns true if built in debug mode
+fn is_debug_mode() -> bool {
+ return cfg!(debug_assertions);
+}
+
+#[tauri::command]
/// Returns the current version number as a string
fn get_version_number() -> String {
let version = env!("CARGO_PKG_VERSION");