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

Fix the reloading of game cache from settings.xml on Linux #169

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

bitscher
Copy link
Contributor

@bitscher bitscher commented Sep 4, 2022

std::is_same_v<decltype(0LL), int64_t> does not evaluate the same on Linux Clang and MSVC. MSVC returns true but Clang and GCC both returns false resulting in failing to read the game id from the XML file and therefore rebuilding the cache.

Solution: Don't rely on the type of 0LL and 0ULL literals but explicitly provide the type of the field we are trying to read.

Fixes #164

std::is_same_v<decltype(0LL), int64_t> does not evaluate the same on
Linux Clang and MSVC. MSVC returns true but Clang and GCC both returns
false resulting in failing to read the game id from the XML file and
therefore rebuilding the cache.

Solution: Don't rely on the type of 0LL and 0ULL literals but explicitly
provide the type of the field we are trying to read.
@bitscher bitscher changed the title Fix the reloading of game cache from settings.xml Fix the reloading of game cache from settings.xml on Linux Sep 4, 2022
@Exzap Exzap merged commit f2ec0b4 into cemu-project:main Sep 5, 2022
@bitscher bitscher deleted the fix_favorite_reload branch October 23, 2022 18:08
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.

[GUI] Favorite game list is not saved and restored across restarts.
2 participants