change game to app
This commit is contained in:
parent
fd773f5832
commit
a8335a0e89
7 changed files with 30 additions and 32 deletions
|
|
@ -18,18 +18,14 @@ const DIRS = {
|
|||
DATA,
|
||||
WINES: path.join(FILES, 'wines'),
|
||||
PREFIXES: path.join(FILES, 'wineprefixes'),
|
||||
GAMES: path.join(FILES, 'games'),
|
||||
APPS: path.join(FILES, 'apps'),
|
||||
TRANSLATIONS: path.join(FILES, 'translations'),
|
||||
BUNDLED_TRANSLATIONS: path.join(BUNDLED, 'translations'),
|
||||
FAKE_STEAM: path.join(DATA, 'fake-steam')
|
||||
}
|
||||
|
||||
function ensureDirs() {
|
||||
const legacy = path.join(FILES, 'wine prefixes')
|
||||
try {
|
||||
if (fs.existsSync(legacy) && !fs.existsSync(DIRS.PREFIXES)) fs.renameSync(legacy, DIRS.PREFIXES)
|
||||
} catch {}
|
||||
for (const dir of [FILES, DATA, DIRS.WINES, DIRS.PREFIXES, DIRS.GAMES, DIRS.TRANSLATIONS, DIRS.FAKE_STEAM]) {
|
||||
for (const dir of [FILES, DATA, DIRS.WINES, DIRS.PREFIXES, DIRS.APPS, DIRS.TRANSLATIONS, DIRS.FAKE_STEAM]) {
|
||||
fs.mkdirSync(dir, { recursive: true })
|
||||
}
|
||||
if (DIRS.TRANSLATIONS !== DIRS.BUNDLED_TRANSLATIONS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue