New Feature - Local Settings#3248
Merged
1 commit merged intoSep 2, 2024
Merged
Conversation
Member
|
We do not use To get the working directory you can use our VFS layer. Relative paths work here when using if (FileFinder::Root().Exists(config_name)) {
config_file = config_name;
} |
If you have a copy of config.ini saved at the same folder as the player app, it will load the game settings from it, instead of the global folder. ------------------------------------- Update game_config.cpp
4d528f5 to
e1487de
Compare
Contributor
Author
|
nice! working as a charm! I wonder if buttons "Save Local Settings" and "Delete Local Settings" on the config scene are necessary |
Member
|
File deletion is not supported yet (through the VFS layer). This one would be also interesting for deleting save files. Save local settings vs. Save global settings: This is hard to differentiate because there is technically only one config file and the Player doesn't care where it is located. |
Ghabry
approved these changes
Aug 1, 2024
ghost
approved these changes
Sep 2, 2024
sevenc-nanashi
pushed a commit
to sevenc-nanashi/easyrpg-player
that referenced
this pull request
May 31, 2026
New Feature - Local Settings
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you have a copy of config.ini saved at the same folder as the player app, it will load the game settings from it, instead of the global folder.
I usedstd::filesystembecause couldn't figure another way of extracting the apps absolute path.