Skip to content

Commit ebd07ff

Browse files
authored
Legacy API Migration (#35)
Finally removes all origin APIs
1 parent 476f197 commit ebd07ff

13 files changed

Lines changed: 346 additions & 96 deletions

File tree

maxima-cli/src/main.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use maxima::{
3131
},
3232
clients::JUNO_PC_CLIENT_ID,
3333
cloudsync::CloudSyncLockMode,
34-
launch::{self, LaunchMode},
34+
launch::{self, LaunchMode, LaunchOptions},
3535
library::OwnedTitle,
3636
manifest::{self, MANIFEST_RELATIVE_PATH},
3737
service_layer::{
@@ -829,12 +829,17 @@ async fn start_game(
829829
}
830830
}
831831

832+
let launch_options = LaunchOptions {
833+
path_override: game_path_override,
834+
arguments: game_args,
835+
cloud_saves: true,
836+
};
837+
832838
if login.is_none() {
833839
launch::start_game(
834840
maxima_arc.clone(),
835841
LaunchMode::Online(offer_id.to_owned()),
836-
game_path_override,
837-
game_args,
842+
launch_options,
838843
)
839844
.await?;
840845
} else if let Some(captures) = MANUAL_LOGIN_PATTERN.captures(&login.unwrap()) {
@@ -844,8 +849,7 @@ async fn start_game(
844849
launch::start_game(
845850
maxima_arc.clone(),
846851
LaunchMode::OnlineOffline(offer_id.to_owned(), persona.to_owned(), password.to_owned()),
847-
game_path_override,
848-
game_args,
852+
launch_options,
849853
)
850854
.await?;
851855
}

maxima-lib/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ hex = "0.4.3"
2929
lazy_static = "1.4.0"
3030
reqwest = { version = "0.11.18", features = ["stream", "rustls-tls", "gzip", "json"], default-features = false }
3131
base64 = "0.21.2"
32+
base62 = "2.2.0"
3233
log = "0.4.19"
3334
enable-ansi-support = "0.2.1"
3435
chrono = "0.4.26"

0 commit comments

Comments
 (0)