mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Add Ubisoft connect (Linux Proton) support (#346)
* Added Ubisoft connect (Linux Proton) support * Update src/platforms/uplay/platform.rs Co-authored-by: Philip Kristoffersen <philipkristoffersen@gmail.com> * Update src/platforms/uplay/platform.rs Co-authored-by: Philip Kristoffersen <philipkristoffersen@gmail.com> * Fixed needing "find_subsequence". * Update platform.rs * Update platform.rs * Fix trying to use 'None' as a function. --------- Co-authored-by: Ofacy <git@ofacy.com> Co-authored-by: Philip Kristoffersen <philipkristoffersen@gmail.com>
This commit is contained in:
co-authored by
Philip Kristoffersen
Ofacy
parent
7df543f586
commit
c092ffba88
@@ -8,11 +8,18 @@ pub(crate) struct UplayGame {
|
||||
pub(crate) icon: String,
|
||||
pub(crate) id: String,
|
||||
pub(crate) launcher: PathBuf,
|
||||
pub(crate) launcher_compat_folder: Option<PathBuf>,
|
||||
pub(crate) launch_id: u8,
|
||||
}
|
||||
|
||||
impl From<UplayGame> for ShortcutOwned {
|
||||
fn from(game: UplayGame) -> Self {
|
||||
let launch = format!("\"uplay://launch/{}/0\"", game.id);
|
||||
let launch = match game.launcher_compat_folder{
|
||||
Some(compat_folder) => format!
|
||||
("STEAM_COMPAT_DATA_PATH=\"{}\" %command% \"uplay://launch/{}/{}\"",
|
||||
compat_folder.to_string_lossy(), game.id, game.launch_id),
|
||||
None => format!("\"uplay://launch/{}/{}\"", game.id, game.launch_id)
|
||||
};
|
||||
let start_dir = game
|
||||
.launcher
|
||||
.parent()
|
||||
|
||||
Reference in New Issue
Block a user