aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 20:47:34 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-10 20:47:34 +0200
commit9d3f82e13a73998f508ba65ef4076fb79982b13c (patch)
tree7b814e6f585caeb16a9f703396580cd87ccdb208
parent294bda0a85eb99d9975ffee3c7896da4f760a73f (diff)
downloadFlightCore-9d3f82e13a73998f508ba65ef4076fb79982b13c.tar.gz
FlightCore-9d3f82e13a73998f508ba65ef4076fb79982b13c.zip
Auto-format
-rw-r--r--src-tauri/src/main.rs6
-rw-r--r--src-ui/src/main.ts18
2 files changed, 14 insertions, 10 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 4244e364..09123040 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -222,5 +222,9 @@ fn launch_northstar(game_install: GameInstall) -> Result<String, String> {
return Ok("Launched game".to_string());
}
- Err(format!("Not yet implemented for {:?} on {}", game_install.install_type, get_host_os()))
+ Err(format!(
+ "Not yet implemented for {:?} on {}",
+ game_install.install_type,
+ get_host_os()
+ ))
}
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 103e5178..98a772ad 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -15,7 +15,7 @@ const button_manual_find_string = "Manually select Titanfall2 install location";
interface GameInstall {
game_path: string;
install_type: string;
- }
+}
// Stores the overall state of the application
var globalState = {
@@ -153,14 +153,14 @@ document.addEventListener("DOMContentLoaded", async function () {
install_type: installTypeHolderEl.textContent
} as GameInstall;
await invoke("launch_northstar", { gameInstall: game_install })
- .then((message) => {
- console.log(message);
- omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`;
- })
- .catch((error) => {
- console.error(error);
- alert(error);
- });
+ .then((message) => {
+ console.log(message);
+ omniButtonEl.textContent = `${button_launched_string} (v${globalState.installed_northstar_version})`;
+ })
+ .catch((error) => {
+ console.error(error);
+ alert(error);
+ });
break;
// Do nothing when clicked during install/update/game-launched