update icon & change PLGL to PLWL
This commit is contained in:
parent
e017187af5
commit
1aa603aeac
18 changed files with 117 additions and 110 deletions
|
|
@ -12,7 +12,7 @@ const importer = require('./importer')
|
|||
const i18n = require('./i18n')
|
||||
const { createMainWindow } = require('./window')
|
||||
|
||||
app.setName('PLGL')
|
||||
app.setName('PLWL')
|
||||
|
||||
let win = null
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ function scanGamesFolder(dir, depth, out) {
|
|||
for (const e of entries) {
|
||||
if (!e.isDirectory()) continue
|
||||
const full = path.join(dir, e.name)
|
||||
if (require('fs').existsSync(path.join(full, '.plgl-imported'))) {
|
||||
if (require('fs').existsSync(path.join(full, '.plwl-imported'))) {
|
||||
out.push(full)
|
||||
} else {
|
||||
scanGamesFolder(full, depth - 1, out)
|
||||
|
|
@ -190,7 +190,7 @@ ipcMain.handle('games:import', async (e, srcDir, mode) => {
|
|||
}
|
||||
const game = await importer.importGame(srcDir, mode, onProgress)
|
||||
library.addGame(game)
|
||||
require('fs').writeFileSync(path.join(game.workdir, '.plgl-imported'), '')
|
||||
require('fs').writeFileSync(path.join(game.workdir, '.plwl-imported'), '')
|
||||
return game
|
||||
})
|
||||
|
||||
|
|
@ -309,7 +309,7 @@ app.whenReady().then(async () => {
|
|||
setAppIcon(app)
|
||||
} catch {}
|
||||
}
|
||||
protocol.handle('plgl-icon', request => {
|
||||
protocol.handle('plwl-icon', request => {
|
||||
const id = decodeURIComponent(new URL(request.url).hostname)
|
||||
const dir = path.join(DIRS.DATA, 'icons', id)
|
||||
let file = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue