Skip to content

Commit

Permalink
Feature: treat MIA as non-retail (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Oct 23, 2022
1 parent 517d30a commit fedbc29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/rom-filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ Games that are not any of the below options, and are not:
Bugs Bunny - Crazy Castle 3 (J) [C][f2]
```

- **Non-public "MIA"**: games that contain `[MIA]` in their name, e.g.:

```text
[MIA] Better Dead Than Alien (Europe)
[MIA] Billiards Simulator (Europe) (En,Fr,De)
```

- **Overdumps**: games that contain `[o]` or `[o#]` in their name, e.g.:

```text
Expand Down
7 changes: 6 additions & 1 deletion src/types/logiqx/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class Game implements GameProps {
}

isBios(): boolean {
return this.bios === 'yes' || this.name.indexOf('[BIOS]') !== -1;
return this.bios === 'yes' || this.name.match(/\[BIOS\]/i) !== null;
}

getReleases(): Release[] {
Expand Down Expand Up @@ -186,6 +186,10 @@ export default class Game implements GameProps {
return this.name.match(/\(Homebrew[a-z0-9. ]*\)/i) !== null;
}

isMIA(): boolean {
return this.name.match(/\[MIA\]/i) !== null;
}

isOverdump(): boolean {
return this.name.match(/\[o[0-9]*\]/) !== null;
}
Expand Down Expand Up @@ -248,6 +252,7 @@ export default class Game implements GameProps {
&& !this.isDemo()
&& !this.isFixed()
&& !this.isHomebrew()
&& !this.isMIA()
&& !this.isOverdump()
&& !this.isPendingDump()
&& !this.isPirated()
Expand Down

0 comments on commit fedbc29

Please sign in to comment.