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
GameListCtrl: Improvements for reading custom game titles #2242
Conversation
// TODO: Create function in volume class to fetch Game ID without the publisher code | ||
else if (rISOFile.GetPlatform() == GameListItem::WII_WAD | ||
&& line.substr(0, rISOFile.GetUniqueID().size() - 2) == (rISOFile.GetUniqueID()).substr(0, rISOFile.GetUniqueID().size() - 2) ) | ||
{ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Edit: Disregard that. All fixed. This should be ready to go, assuming nobody finds any issues with it. |
if (rISOFile.GetPlatform() == GameListItem::WII_WAD) | ||
game_id.erase(game_id.size() - 2); | ||
|
||
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
if (rISOFile.GetPlatform() == GameListItem::WII_WAD) | ||
game_id.erase(game_id.size() - 2); | ||
|
||
if (line.substr(0, line.find("=") - 1) == game_id) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Can you append to the commit message of your second commit the reasons why it's an improvement? |
Should be ready to go now. |
Wad files should probably check for 6 character id first, then for 4 if it's not found. GameTDB not including the publisher id is silly, and we should not enforce that (but supporting it too is okay). |
That would reintroduce the Mario Kart Channel issue that Stevosiak mentioned before. I agree that not supporting 6-character IDs for WADs is a bit odd, though. |
Actually, Dolphin is the odd one out in using 6 digit IDs for WADs. 4 digit IDs are used by GameTDB, Wiibrew.org, USB Loader GX, and many other places. This is because, for WADs, the publisher ID is stored seperately from the game ID, where as for disc based games, they are stored together in the same location. |
Can this be reviewed? I believe it is ready to be merged. |
You still haven't addressed what I posted. |
I did amend the commit with a description |
My bad. Should be fixed now. |
Any other issues preventing this from being merged? |
30f3f30
to
ce2b578
Compare
Updated to fix merge conflicts. |
{ | ||
name = StrToWxStr(line.substr(rISOFile.GetUniqueID().size() + 3)); | ||
name = StrToWxStr(line.substr(equals_index + 2)); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Read game ID based on position of the "=" sign, rather than assuming game IDs are 6 characters in length.
LGTM |
GameListCtrl: Improvements for reading custom game titles
This PR brings 2 improvements.