From 468d843b2eaf0f9f3de00177a79420313c9fc3ed Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Fri, 23 Sep 2022 22:45:06 +0200 Subject: Rename function --- src-tauri/src/lib.rs | 2 +- src-tauri/src/platform_specific/windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index ed438ab9..d0bc9be2 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -63,7 +63,7 @@ pub fn find_game_install_location() -> Result { // (On Windows only) try parsing Windows registry for Origin install path #[cfg(target_os = "windows")] - match windows::windows_origin_install_location_detection() { + match windows::origin_install_location_detection() { Ok(game_path) => { let game_install = GameInstall { game_path: game_path, diff --git a/src-tauri/src/platform_specific/windows.rs b/src-tauri/src/platform_specific/windows.rs index b7641888..7627fe4f 100644 --- a/src-tauri/src/platform_specific/windows.rs +++ b/src-tauri/src/platform_specific/windows.rs @@ -8,7 +8,7 @@ use anyhow::{anyhow, Result}; use crate::check_is_valid_game_path; /// Runs a powershell command and parses output to get Titanfall2 install location on Origin -pub fn windows_origin_install_location_detection() -> Result { +pub fn origin_install_location_detection() -> Result { dbg!(); // Run PowerShell command to get Titanfall2 Origin install path -- cgit v1.2.3