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

Set projects' working directories to use the current path. #254

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

stevewgr
Copy link
Member

Description

This pull request updates projects' to set the working directory to the current path, enhancing portability and consistency in asset loading.

  • Configures projects to load assets relative to the current path, making applications more portable.
  • Replaces GetCurrentDirectory (WinAPI) with std::filesystem::current_path in several instances to simplify code and leverage standard library functionality.

@stevewgr stevewgr self-assigned this Nov 11, 2024
Copy link
Contributor

@UTengine UTengine left a comment

Choose a reason for hiding this comment

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

Ok

This change ensures assets load relative to the current path, improving
application portability.

Additionally, simplified some uses of `GetCurrentDirectory` WinAPI by
replacing it with `std::filesystem::current_path`.
@stevewgr
Copy link
Member Author

@stevewgr stevewgr merged commit 73b1d1a into master Nov 12, 2024
1 check passed
@stevewgr stevewgr deleted the fix-workdir branch November 12, 2024 02:24
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.

4 participants