add dev rules

This commit is contained in:
olcxja 2026-09-30 19:16:52 +02:00
commit 944d8f86c2
9 changed files with 112 additions and 27 deletions

View file

@ -40,10 +40,7 @@ function createGamesService({ getWindow, onGamesChanged }) {
}
function resolveWine(game) {
const system = { id: 'system', type: 'system', label: 'System Wine' }
const wanted = game.wine === 'default' ? (library.loadSettings().defaultWine || 'system') : (game.wine || 'system')
if (!wanted || wanted === 'system') return system
return require('../wines').getWine(wanted) || system
return require('../wines').resolveWine(game.wine || 'system')
}
function handleExit(id) {