aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-23 22:45:06 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-23 22:45:06 +0200
commit468d843b2eaf0f9f3de00177a79420313c9fc3ed (patch)
tree2901a2ffd94c2b87873597885c2aa24ea0fdfb0f /src-tauri
parent712c3fa816cc691f53de165c7a64d5e626da328c (diff)
downloadFlightCore-468d843b2eaf0f9f3de00177a79420313c9fc3ed.tar.gz
FlightCore-468d843b2eaf0f9f3de00177a79420313c9fc3ed.zip
Rename function
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/lib.rs2
-rw-r--r--src-tauri/src/platform_specific/windows.rs2
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<GameInstall, anyhow::Error> {
// (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<String, anyhow::Error> {
+pub fn origin_install_location_detection() -> Result<String, anyhow::Error> {
dbg!();
// Run PowerShell command to get Titanfall2 Origin install path