bakkesmodorg / BakkesModInjectorCpp

C++ rewrite of the BakkesModInjector
67 stars 21 forks source link

Added Legendary (Epic Version) support #28

Closed raycekar closed 1 year ago

raycekar commented 1 year ago

Incorporating support for checking if RL is installed in the Legendary location (~/.config/legendary). Legendary contains a installed.json file that contains what epic games are installed and what version. This update checks that location for that installed.json file and pulls the Epic Games RL version from it.

https://github.com/derrod/legendary

raycekar commented 1 year ago

Adding installed.json for reference:

{ "Sugar": { "app_name": "Sugar", "base_urls": [ "https://epicgames-download1.akamaized.net/Builds/Org/o-98larctxyhn55kqjq5xjb9wzjl9hf9/e6bcca5b37d0457ca881aec508205542/default", "https://download.epicgames.com/Builds/Org/o-98larctxyhn55kqjq5xjb9wzjl9hf9/e6bcca5b37d0457ca881aec508205542/default", "https://download2.epicgames.com/Builds/Org/o-98larctxyhn55kqjq5xjb9wzjl9hf9/e6bcca5b37d0457ca881aec508205542/default", "https://download3.epicgames.com/Builds/Org/o-98larctxyhn55kqjq5xjb9wzjl9hf9/e6bcca5b37d0457ca881aec508205542/default", "https://download4.epicgames.com/Builds/Org/o-98larctxyhn55kqjq5xjb9wzjl9hf9/e6bcca5b37d0457ca881aec508205542/default", "https://fastly-download.epicgames.com/Builds/Org/o-98larctxyhn55kqjq5xjb9wzjl9hf9/e6bcca5b37d0457ca881aec508205542/default" ], "can_run_offline": true, "egl_guid": "", "executable": "Binaries/Win64/RocketLeague.exe", "install_path": "D:\\Games\\Epic Games\\rocketleague", "install_size": 25236903171, "install_tags": [], "is_dlc": false, "launch_parameters": "", "manifest_path": null, "needs_verification": false, "platform": "Windows", "prereq_info": null, "requires_ot": false, "save_path": null, "title": "Rocket League\u00ae", "version": "BC2_Update40+407707" } }

Bakkes commented 1 year ago

Thanks! I don't have the legendary launcher so I'll assume the path you've given is correct. I probably won't force an injector update for everyone for this change, but will make this new version available for download shortly.

Dark4Codrutz commented 2 weeks ago

Commenting here to let others know that you can use this with linux too.

If you are using legendary installed on linux but launching bakkersmod under a wine prefix then the home directory specified here refers to the userprofile inside that wine prefix.

All you need is a symlink inside your wine prefix user home directory, basically recreating the ~/.config/legendary path so bakkersmod can load installed.json file from your local linux legendary installation.

further notes: heroic launcher uses its own path for legendary binary and configuration is located at linux home directory under ~/.config/heroic/legendaryConfig/legendary, so adjust symlink target accordingly.