Skip to content

New 'inline' mode in when detecting regions from filename corrected to 'snap' detections to front of priorities#253

Open
mattfeeder18 wants to merge 3 commits into
Gemba:masterfrom
mattfeeder18:master
Open

New 'inline' mode in when detecting regions from filename corrected to 'snap' detections to front of priorities#253
mattfeeder18 wants to merge 3 commits into
Gemba:masterfrom
mattfeeder18:master

Conversation

@mattfeeder18
Copy link
Copy Markdown

New 'inline' mode in when detecting regions from filename corrected to 'snap' detections to front of priorities - old logic wasn't quite what I needed so I can made the edits necessary and adjusted the documentation to support this.

Example (for 'inline'):
If regionPrios = {"eu", "us", "jp"},
and we have "Game A (USA, Europe, Brazil)",
then this edited function would generate the 3 following lists:
detectedAndPrioritized = {"eu", "us"},
addRegionPrios = {"br"},
remainingConfigPrios = {"jp"},
and then stitch them together like this to form the order to check:
{"eu", "us", "br", "jp"}

This keeps the regionPrios in order, but shift any detections to the front and inserts detection not in regionPrios accordingly.

Again, apologies I didn't pick this up before the previous branch was committed to main.

… mode

This change would go through the regionPrios list, snap any in there that are also detected in the filename to the front, and keep them in the order they were in regionPrios. Any detected filenames that are not in regionPrios get added before the remaining regionsPrios.

Example:
If regionPrios = {"eu", "us", "jp"},
and we have "Game A (USA, Europe, Brazil)",
then this edited function would generate the 3 following lists:
detectedAndPrioritized = {"eu", "us"},
addRegionPrios = {"br"},
remainingConfigPrios = {"jp"},
and then stitch them together like this to form the order to check:
{"eu", "us", "br", "jp"}
Clarified region priority behaviour for intended 'inline' behaviour so that 'inline' and 'first' both pull detected regions to the front, but 'first' preserves the filename order and 'inline' preserves the regionPrios order.
Clarified the behaviour of region prioritisation and filename detection.
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.

1 participant