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.
@emoose This should fix part of #405, as mentioned here: #405 (comment)
Figured it was time we made our own .ini reader to fit our needs instead of fighting the existing one.
This is a bit simplified if compared to the original one, but I only focused on what we are actually using for now.Our extended
CmdIniReader
is now part of this too, so everything feels a bit cleaner.Never tried doing this before, so I figured I should get your input before a potential merge. Everything seems to be working fine, though.
Edit: Was looking for a way to stop using
WritePrivateProfileString
since that is terribly slow, outdated, unsupported, and the only reason we had a separate thread to write settings. Came across simpleini, which can write back the .ini preserving comments and doesn't touch any of the outdatedxxPrivateProfileString
funcs. Seems pretty quick as well, so I removed the thread stuff we were using.Should probably triple-check if everything is saving fine, though ._.