Skip to content

Conversation

@Deterous
Copy link
Member

  • Do not assume S_J_ and S_P_ serials are Japanese
  • Fix typo: PABX -> PBPX
  • PCXC are Japanese
  • PUBX are USA

- Do not assume S_J_ and S_P_ serials are Japanese
- Fix typo: PABX -> PBPX
- PCXC are Japanese
- PUBX are USA
@Deterous
Copy link
Member Author

I've also just realised there are no PS2 S_J_ serials anyway, so that line is irrelevant.

@mnadareski
Copy link
Collaborator

Please note that this is used by both PS1 and PS2. Don't remove things or change existing cases unnecessarily.

@Deterous
Copy link
Member Author

Deterous commented Aug 30, 2023

I hope MPF does squash-merging.. sorry, not used to C#

Comment on lines +1856 to +1876
switch (serial[3])
{
case 'S':
// Check first two digits of S_PS serial
switch (serial.Substring(4, 2))
{
case "46": return Region.SouthKorea;
case "56": return Region.SouthKorea;
case "51": return Region.Asia;
case "55": return Region.Asia;
default: return Region.Japan;
}
case 'M':
// Check first three digits of S_PM serial
switch (serial.Substring(4, 3))
{
case "645": return Region.SouthKorea;
case "675": return Region.SouthKorea;
case "885": return Region.SouthKorea;
default: return Region.Japan; // Remaining S_PM serials may be Japan or Asia
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels really difficult to keep up to date, I'll be honest. I understand that it's far more accurate, though.

Copy link
Collaborator

@mnadareski mnadareski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good with the changes in terms of preserving old functionality and refining errant things.

@mnadareski mnadareski merged commit 5126d18 into SabreTools:master Aug 31, 2023
@Deterous Deterous deleted the patch-1 branch September 1, 2023 01:15
mnadareski pushed a commit that referenced this pull request Sep 5, 2023
Serial numbers begin at serial[5]
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.

3 participants