This commit is contained in:
HorizonCode committed 2025-07-07 08:47:25 +02:00
commit 2d1b86b668
78 files changed
+1215 -906

No files matched your search

+11 -1
View File
@@ -63,8 +63,18 @@ pub fn valid_osu_folder(folder: String) -> bool {
return false;
}
#[cfg(not(windows))]
#[tauri::command]
pub fn find_osu_installation() -> Option<String> {
None
}
#[cfg(windows)]
#[tauri::command]
pub fn find_osu_installation() -> Option<String> {
use winreg::RegKey;
use winreg::enums::*;
let hklm_registry_paths = ["SOFTWARE\\Classes\\osu\\DefaultIcon"];
let hkcr_registry_paths = [
@@ -140,7 +150,7 @@ pub fn find_osu_installation() -> Option<String> {
}
}
}
return None;
None
}
#[tauri::command]