add log warning emultor mapping

This commit is contained in:
Georges-Antoine Assi 2025-12-31 10:09:18 -05:00
parent e840ddd9d9
commit 2e063e732d
No known key found for this signature in database
GPG Key ID: 30F6E9865ABBA06E
2 changed files with 11 additions and 11 deletions

View File

@ -2,12 +2,12 @@
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.24.0
version: 1.25.0
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.7.1
ref: v1.7.4
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
@ -17,15 +17,15 @@ runtimes:
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
enabled:
- actionlint@1.7.7
- actionlint@1.7.10
- svgo@4.0.0
- checkov@3.2.451
- checkov@3.2.497
- git-diff-check
- markdownlint@0.45.0
- osv-scanner@2.0.3
- oxipng@9.1.5
- prettier@3.6.2
- trufflehog@3.90.0
- markdownlint@0.47.0
- osv-scanner@2.3.1
- oxipng@10.0.0
- prettier@3.7.4
- trufflehog@3.92.4
- yamllint@1.37.1
actions:
disabled:

View File

@ -214,9 +214,9 @@ namespace RomM
List<GameMetadata> games = new List<GameMetadata>();
IEnumerable<EmulatorMapping> enabledMappings = SettingsViewModel.Instance.Mappings?.Where(m => m.Enabled);
if (enabledMappings == null)
if (enabledMappings == null || !enabledMappings.Any())
{
Logger.Warn("No enabled mappings found.");
Logger.Warn("No emulators are configured or enabled in RomM settings. No games will be fetched.");
return games;
}