Skip to content

Commit

Permalink
Add configurable blacklists for libretro cores and game file extensio…
Browse files Browse the repository at this point in the history
…ns (tkashkin#103)

Former-commit-id: 2729433
  • Loading branch information
tkashkin committed Jun 23, 2019
1 parent 1448608 commit 1d905c2
Show file tree
Hide file tree
Showing 24 changed files with 581 additions and 342 deletions.
28 changes: 20 additions & 8 deletions data/com.github.tkashkin.gamehub.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,6 @@
<default>'~/Games/HumbleBundle'</default>
<summary>Humble games directory</summary>
</key>
<key name="libretro-core-dir" type="s">
<default>'/usr/lib/libretro'</default>
<summary>libretro cores directory</summary>
</key>
<key name="libretro-core-info-dir" type="s">
<default>'/usr/share/libretro/info'</default>
<summary>libretro core info directory</summary>
</key>
</schema>

<!-- Paths / Collection -->
Expand Down Expand Up @@ -248,6 +240,26 @@
</key>
</schema>

<!-- Compat / RetroArch -->
<schema path="/com/github/tkashkin/gamehub/compat/retroarch/" id="com.github.tkashkin.gamehub.compat.retroarch">
<key name="core-dir" type="s">
<default>'/usr/lib/libretro'</default>
<summary>libretro cores directory</summary>
</key>
<key name="core-info-dir" type="s">
<default>'/usr/share/libretro/info'</default>
<summary>libretro core info directory</summary>
</key>
<key name="cores-blacklist" type="s">
<default>'3dengine|ffmpeg|dosbox|dosbox_svn|dosbox_svn_glide'</default>
<summary>Ignored libretro cores list (separated by '|')</summary>
</key>
<key name="game-executable-extensions-blacklist" type="s">
<default>'bin|dat|exe|zip|7z|gz'</default>
<summary>Ignored game file extensions list (separated by '|')</summary>
</key>
</schema>

<!-- Providers / Images -->
<schema path="/com/github/tkashkin/gamehub/providers/images/steamgriddb/" id="com.github.tkashkin.gamehub.providers.images.steamgriddb">
<key name="enabled" type="b">
Expand Down
26 changes: 26 additions & 0 deletions data/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -566,3 +566,29 @@ dialog .sidebar list
{
background: alpha(shade(@theme_bg_color, 0.95), 0.5);
}

.import-emulated-games-dialog .select-all
{
margin: 0;
padding: 0;
}
.import-emulated-games-dialog .select-all > check
{
margin: 0 16px 0 0;
padding: 0;
}
.import-emulated-games-dialog .select-all > label
{
margin: 0;
padding: 0;
}
.import-emulated-games-dialog .dialog-action-box
{
margin: 0;
padding: 0 8px 2px 8px;
}
.import-emulated-games-dialog .dialog-action-area
{
margin: 0;
padding: 0 8px;
}
26 changes: 26 additions & 0 deletions data/css/themes/elementary.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,29 @@ infobar.frame.settings-info
{
margin: -1px -3px -1px -3px;
}

.import-emulated-games-dialog .select-all
{
margin: 0;
padding: 0;
}
.import-emulated-games-dialog .select-all > check
{
margin: 0 12px 0 0;
padding: 0;
}
.import-emulated-games-dialog .select-all > label
{
margin: 0;
padding: 0;
}
.import-emulated-games-dialog .dialog-action-box
{
margin: 0;
padding: 0 8px 2px 8px;
}
.import-emulated-games-dialog .dialog-action-area
{
margin: 0;
padding: 0;
}
1 change: 1 addition & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,6 @@ src/utils/downloader/SoupDownloader.vala
src/settings/UI.vala
src/settings/SavedState.vala
src/settings/Auth.vala
src/settings/Compat.vala
src/settings/Providers.vala
src/settings/Controller.vala
58 changes: 33 additions & 25 deletions po/com.github.tkashkin.gamehub.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.github.tkashkin.gamehub\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-21 00:09+0300\n"
"POT-Creation-Date: 2019-06-23 07:47+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -156,7 +156,7 @@ msgstr ""

#: src/data/Runnable.vala:444 src/ui/dialogs/CorruptedInstallerDialog.vala:132
#: src/ui/views/GamesView/GameContextMenu.vala:167
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:216
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:230
msgid "Remove"
msgstr ""

Expand Down Expand Up @@ -249,7 +249,7 @@ msgstr ""
msgid "Merging games from %s"
msgstr ""

#: src/data/adapters/GamesAdapter.vala:452
#: src/data/adapters/GamesAdapter.vala:455
#, c-format
msgid "Loading games from %s"
msgstr ""
Expand Down Expand Up @@ -319,7 +319,7 @@ msgstr ""
#: src/ui/dialogs/SettingsDialog/pages/emulators/Emulators.vala:243
#: src/ui/dialogs/CompatRunDialog.vala:102
#: src/ui/views/GamesView/GameContextMenu.vala:42
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:210
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:224
msgid "Run"
msgstr ""

Expand Down Expand Up @@ -687,7 +687,7 @@ msgstr ""

#: src/ui/dialogs/SettingsDialog/pages/sources/Steam.vala:76
#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:34
#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:65
#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:75
msgid "Not installed"
msgstr ""

Expand Down Expand Up @@ -740,11 +740,19 @@ msgstr ""
msgid "Libretro core info directory"
msgstr ""

#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:56
#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:50
msgid "Ignored libretro cores"
msgstr ""

#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:54
msgid "Ignored game file extensions"
msgstr ""

#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:66
msgid "No cores found"
msgstr ""

#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:60
#: src/ui/dialogs/SettingsDialog/pages/emulators/RetroArch.vala:70
#, c-format
msgid "%u core found"
msgid_plural "%u cores found"
Expand Down Expand Up @@ -812,7 +820,7 @@ msgid "Game arguments"
msgstr ""

#: src/ui/dialogs/SettingsDialog/pages/emulators/Emulators.vala:289
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:82
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:80
#: src/ui/views/GamesView/AddGamePopover.vala:82
msgid "Directory"
msgstr ""
Expand Down Expand Up @@ -928,12 +936,12 @@ msgstr ""

#: src/ui/dialogs/InstallDialog.vala:55 src/ui/dialogs/InstallDialog.vala:113
#: src/ui/views/GamesView/GameContextMenu.vala:50
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:209
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:223
msgid "Install"
msgstr ""

#: src/ui/dialogs/InstallDialog.vala:111
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:133
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:129
msgid "Import"
msgstr ""

Expand Down Expand Up @@ -1047,32 +1055,32 @@ msgstr ""

#: src/ui/dialogs/CompatRunDialog.vala:48
#: src/ui/views/GamesView/GameContextMenu.vala:46
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:211
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:225
msgid "Run with compatibility layer"
msgstr ""

#: src/ui/dialogs/CorruptedInstallerDialog.vala:72
msgid "Corrupted installer: checksum mismatch in"
msgstr ""

#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:60
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:57
#: src/ui/views/GamesView/AddGamePopover.vala:105
msgid "Import emulated games"
msgstr ""

#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:77
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:75
msgid "Select directory with emulated games"
msgstr ""

#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:85
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:83
msgid "Detected games"
msgstr ""

#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:110
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:107
msgid "Select all"
msgstr ""

#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:118
#: src/ui/dialogs/ImportEmulatedGamesDialog.vala:115
msgid "Select directory to import"
msgstr ""

Expand Down Expand Up @@ -1213,17 +1221,17 @@ msgid "Downloading image: %s"
msgstr ""

#: src/ui/views/GamesView/DownloadProgressView.vala:124
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:148
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:162
msgid "Pause download"
msgstr ""

#: src/ui/views/GamesView/DownloadProgressView.vala:129
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:154
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:168
msgid "Resume download"
msgstr ""

#: src/ui/views/GamesView/DownloadProgressView.vala:134
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:160
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:174
msgid "Cancel download"
msgstr ""

Expand Down Expand Up @@ -1266,30 +1274,30 @@ msgid "Properties"
msgstr ""

#: src/ui/views/GamesView/GameContextMenu.vala:144
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:212
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:226
msgid "Open installation directory"
msgstr ""

#: src/ui/views/GamesView/GameContextMenu.vala:152
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:213
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:227
msgid "Open installers collection directory"
msgstr ""

#: src/ui/views/GamesView/GameContextMenu.vala:160
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:214
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:228
msgid "Open bonus collection directory"
msgstr ""

#: src/ui/views/GamesView/GameContextMenu.vala:167
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:216
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:230
msgid "Uninstall"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsPage.vala:215
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:229
msgid "Open store page"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsPage.vala:217
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:231
msgid "Game properties"
msgstr ""

Expand Down
Loading

0 comments on commit 1d905c2

Please sign in to comment.