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

Adapting Windows games to run native Linux #317

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

makson96
Copy link
Collaborator

At this point it is proof of concept, that requires further development.

It works like this:
In constants.py beside "IGNORE_GAME_IDS" there is also "ADAPTED_GAMES", which is the list of games that are adapted to nativly run on Linux. For each game, list contains info about its name, id and require. In case of Theme Hospital, the requirement is dosbox. If requirement is met, the game is listed with other native titles (no wine icon, etc.):
innoextract1a
When "download" button is pressed, game is normally downloaded:
innoextract2a
then innoextract (downloaded from web) is used to extract game data.
During installation, there is additional step "additional_configuration()", which will run custom script for each adapted game. Script will result in creating "minigalaxy-start.sh" which will be universal name for scripts to launch adapted games.
When you press "play" this script will run:
innoextract4b

So what now?

  • Switching between extracting Windows games by wine and innoextract requires improvements.
  • Choosing between Linux, Windows and Adapted game version needs to be added to "Properties".
  • Add unit tests.
  • Add more games to this mechanic.

This is still early stage, so I am curious about your opinion. At this point it will be still easy to change some stuffs.

@makson96
Copy link
Collaborator Author

I have added ability to choose game platform from Properties:
platform
Linux (native) is blocked because this game doesn't provide official support for Linux.
Windows (wine) is blocked because I don't have wine installed.

@sharkwouter sharkwouter modified the milestone: 1.2.0 Nov 8, 2021
@Kzimir
Copy link
Contributor

Kzimir commented Dec 8, 2021

Hi Makson, how are you ?

It is possible to update this commit ?
I'm interested to try the installation of Windows version of a game when a Linux version is available.

Thanks,

@yoshimo
Copy link

yoshimo commented Dec 9, 2021

In the case of Twopoint Hospital and an increasing number of other games we have the option to run a third party open source engine instead like https://github.com/corsixth/corsixth.

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.

None yet

4 participants