Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Epic Games support #377

Closed
wants to merge 7 commits into from
Closed

Conversation

dotevo
Copy link

@dotevo dotevo commented May 5, 2020

PR for #295. Work still in progress.

  • Check if legendary is installed to enable EpicGames GameSource
  • Legendary download
  • Download: Progress bar
  • Legendary uninstall
  • Pictures: PoC
  • Pictures: caching
  • Game settings
  • Legendary auth
  • Game settings

id = idP;
icon = "";
image = src.legendary_wrapper.get_image(id);
platforms.add(Platform.LINUX);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Platform is wrong. It should be Windows but by default GameHub use Wine for that.

platforms.add(Platform.LINUX);

install_dir = null;
executable_path = "$game_dir/start.sh";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed

info = Tables.Games.INFO.get(s);
info_detailed = Tables.Games.INFO_DETAILED.get(s);
icon = Tables.Games.ICON.get(s);
image = src.legendary_wrapper.get_image(id);//Tables.Games.IMAGE.get(s);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It change image with every reload. It should be possible to change it.

EpicGames epic = (EpicGames)(game.source);

Utils.thread("EpicGamesGame.Installer", () => {
game.status = new Game.Status(Game.State.DOWNLOADING, game, null);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should add progress bar change here. Should I create own Game.State or use existing in Downloader.


public class LegendaryWrapper
{
private Regex regex = /\*\s*([^(]*)\s\(App\sname:\s([a-zA-Z0-9]+),\sversion:\s([^)]*)\)/;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New legendary has csv output. It should be changed.

var input = new DataOutputStream(process.get_stdin_pipe ());
var output = new DataInputStream(process.get_stdout_pipe ());
string? line = null;
input.put_string("y\n");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-y for CLI will skip this question

var input = new DataOutputStream(process.get_stdin_pipe ());
var output = new DataInputStream(process.get_stdout_pipe ());
string? line = null;
input.put_string("y\n");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-y for CLI will skip this question

@dotevo dotevo force-pushed the feature/epicgames branch from af94e50 to 4446b93 Compare June 23, 2020 07:11
Implemented some other features in the client
@dotevo
Copy link
Author

dotevo commented Apr 22, 2021

This one is actively developed:
#538

@dotevo dotevo closed this Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants