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

Mac version #293

Open
skumor-foreflight opened this issue Aug 11, 2024 · 2 comments
Open

Mac version #293

skumor-foreflight opened this issue Aug 11, 2024 · 2 comments

Comments

@skumor-foreflight
Copy link

Is it feasible to try to compile this for mac? I have tried to use the windows version with crossover/wine but that is based around exe files of the games so I am unable to make that work. If there is some other mac users maybe you can reach out to me and we can try to make it work together ?

@Frodo45127
Copy link
Owner

yes, it should be possible to compile it in mac (I managed to do it in a hackintosh vm a while ago), but there are some code changes needed in order to make it work with mac games:

  • rpfm_lib\src\games\supported_games.rs: In each game there that has a mac version, it needs a "InstallData" section with the data of the mac's version of the game. Like these:
    imagen
    As for what each of those means:
    imagen
  • rpfm_lib\src\games\mod.rs: The install_type function has to be changed in order to dectect the new mac-specific InstallData sections.
  • The build script may need changes in the mac-specific function (not sure).
  • The release/test scripts may need to be expanded to cover mac too.
  • All files have to be checked in case there is a rogue "if cfg!(target="windows")" that needs a macos else.
  • And in my case, I would need a vm that actually works without horrible performance to test the builds, as I don't have a mac.

With just the first two changes any RPFM build through crossover should detect the mac games correctly, though you may need to specify their path manually in the settings. The rest of the stuff is needed for me to provide official mac builds.

@skumor-foreflight
Copy link
Author

@Frodo45127 thank you, I will look into it

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

No branches or pull requests

2 participants