Skip to content

Commit

Permalink
made play depend on the exalta core build type
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed Aug 19, 2022
1 parent f47af65 commit a1640ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/play.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl ExaltaLauncher {
let game_folder_path = Path::new(&self.config.game_folder_path).to_path_buf();
self.runtime.spawn(async move {
println!("Download Started!");
let game_path = game_folder_path.join("Production/");
let game_path = game_folder_path.join(format!("{}/", exalta_core::BUILD_TYPE.read().await));
let platform = "rotmg-exalt-win-64";
let build_hash = exalta_core::misc::init(None, None).await?.build_hash;
let checksums = exalta_core::download::request_checksums(&build_hash, platform).await?;
Expand All @@ -126,7 +126,7 @@ impl ExaltaLauncher {
fn load(&self) -> Result<(), Box<dyn std::error::Error>> {
if let Some(account) = &self.account {
let execpath =
Path::new(&self.config.game_folder_path).join("Production/RotMG Exalt.exe");
Path::new(&self.config.game_folder_path).join(format!("{}/RotMG Exalt.exe", exalta_core::BUILD_TYPE.blocking_read()));
let args = if let Some(steam_creds) = &self.steam_credentials {
serde_json::to_string(&LaunchArgs {
platform: "Steam".to_string(),
Expand Down

0 comments on commit a1640ab

Please sign in to comment.