Skip to content

Commit

Permalink
Update to unittests (#100)
Browse files Browse the repository at this point in the history
* renamed strtools test (strtools_test -> test_strtools)

* refactored conformAges(), conformPlayers(), xmlUnescape() and conformReleaseDate()

* general unittests update

* configini doc: Typo fixed
  • Loading branch information
Gemba authored Nov 30, 2024
1 parent 5500a32 commit aabc4d1
Show file tree
Hide file tree
Showing 17 changed files with 407 additions and 324 deletions.
4 changes: 2 additions & 2 deletions docs/CONFIGINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Read more about the artwork compositing [here](ARTWORK.md).

!!! note

If this is set in the `[main]` or `[<FRONTEND>]` section it will automatically add `/<PLATFORM>` to the end of the path. If you want better control consider adding it to a `[<PLAFORM>]` section instead where it will be used as is.
If this is set in the `[main]` or `[<FRONTEND>]` section it will automatically add `/<PLATFORM>` to the end of the path. If you want better control consider adding it to a `[<PLATFORM>]` section instead where it will be used as is.

Default value: `/home/<USER>/RetroPie/roms/<PLATFORM>/media`
Allowed in sections: `[main]`, `[<PLATFORM>]`, `[<FRONTEND>]`
Expand Down Expand Up @@ -201,7 +201,7 @@ Sets a non-default location for the storing and loading of cached game resources

!!! note

If this is set in the `[main]` section (recommended) it will automatically add `/<PLATFORM>` to the end of the path. If you want better control consider adding it to a `[<PLAFORM>]` section instead where it will be used as is.
If this is set in the `[main]` section (recommended) it will automatically add `/<PLATFORM>` to the end of the path. If you want better control consider adding it to a `[<PLATFORM>]` section instead where it will be used as is.

Default value: `/home/<USER>/.skyscraper/cache/<PLATFORM>`
Allowed in sections: `[main]`, `[<PLATFORM>]`
Expand Down
5 changes: 3 additions & 2 deletions src/nametools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,10 @@ QString NameTools::getSqrNotes(QString baseName) {
QMapIterator<QString, QString> i(replacements);
while (i.hasNext()) {
i.next();
sqrNotes= sqrNotes.replace(QRegularExpression("\\["+i.value(),QRegularExpression::CaseInsensitiveOption), "["+i.value());
if (QRegularExpression(i.key()).match(baseName).hasMatch() &&
/* avoid NTSC-U being replicated to NTSC on psx */
!sqrNotes.contains("[" + i.value(), Qt::CaseInsensitive)) {
/* avoid duplicates */
!sqrNotes.contains("[" + i.value())) {
sqrNotes.append("[" % i.value() % "]");
}
}
Expand Down
Loading

0 comments on commit aabc4d1

Please sign in to comment.