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

Find game files outside of the Executable directory #202

Closed
Lgt2x opened this issue Apr 27, 2024 · 3 comments
Closed

Find game files outside of the Executable directory #202

Lgt2x opened this issue Apr 27, 2024 · 3 comments
Labels
enhancement Something to modernize things

Comments

@Lgt2x
Copy link
Collaborator

Lgt2x commented Apr 27, 2024

Currently, D3 looks for HOG files only in the same directory as the executable. This is not very practical during development, as it requires either copying game files to the build directory, or copying the built executable to the game directory.

We need to provide a way to avoid copying files around to run the game. For this, we could have 2 complementary solutions :

  • Create a CMake option to specify the default directory(ies) where the game should try to find the game files.
  • Provide a new command line option to specify at runtime the location where game files are located. This would override the CMake option.

Any other solutions you would like to see implemented ? Note that this does not replace creating a proper installer for the game, which we will do at some point

@Lgt2x Lgt2x added the enhancement Something to modernize things label Apr 27, 2024
@Lgt2x
Copy link
Collaborator Author

Lgt2x commented Apr 27, 2024

Actually -setdir should already solve part of the problem https://github.com/DescentDevelopers/Descent3/wiki/Running-Descent-3#command-line-options

@bryanperris
Copy link
Contributor

We can also include a cmake way to deploy the build artifacts to your game directory, eg: setting prefix.

@Lgt2x
Copy link
Collaborator Author

Lgt2x commented May 6, 2024

-setdir is satisfying until we get to packaging

@Lgt2x Lgt2x closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something to modernize things
Projects
None yet
Development

No branches or pull requests

2 participants