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 some playlists not being included under the Flashpoint Platform Category in LaunchBox #40

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

oblivioncth
Copy link
Owner

No description provided.

Playlists were treated as platforms due to typos. Likely broke AM
taglists, but had no sideffects for LB platforms as modifiedPlaylists()
was being used before playlists were added, and seemingly didn't affect
LB playlists either as the null playlist ID would cause the check
functions to think the bogus playlists had already been handled due to
the platform entries in Parents.xml
Previous max of -1 was a leftover from the previous implementation of
Qx::FreeIndexTracker who's index type was templated, so -1 represented a
reasonable max (likely 32-bit integer limit); however, now that the
tracker uses quint64 for indexing, -1 was interpreted as the maximum
value for 64-bit integers and caused allocaiton of its internal bit-
array to fail due to absurd size requirements.

This was undiscovered due to the previous playlist bugs.
Accidentally was calling release() instead of reserve().
No need to store as a QHash with the playlist name as the key since the
name is not needed. This also avoids the awkwardness that is the
conversion between the original playlist name and the translated name,
specific to LB. Before, playlists with names that differed between their
original and translated names were not being added to the Flashpoint
platform category as the keys in the hash were the pre-translated names,
while the list checked against at the end were the translated names.
@github-actions github-actions bot added the bug Something isn't working label Nov 13, 2023
@oblivioncth oblivioncth merged commit 340d962 into dev Nov 13, 2023
1 of 2 checks passed
@oblivioncth oblivioncth deleted the bugfix/lb_playlist_category branch November 13, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant