|
|
|
@ -105,14 +105,15 @@ apiport = ${port} |
|
|
|
|
autoselectedcard = dummy.bin |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
emitter.initTmp = () => { |
|
|
|
|
emitter.start = () => { |
|
|
|
|
tmp.setGracefulCleanup(); |
|
|
|
|
let dir = null |
|
|
|
|
let cleanupFunc = null |
|
|
|
|
|
|
|
|
|
tmp.dir().then(({ path, cleanup }) => { |
|
|
|
|
return tmp.dir().then(({ path, cleanup }) => { |
|
|
|
|
dir = path, |
|
|
|
|
cleanupFunc = cleanup |
|
|
|
|
logger.debug('YACE config:\n' + yaceIniTemplate(saves, port, device, game)) |
|
|
|
|
return writeFile(path + '/config.ini', yaceIniTemplate(saves, port, device, game)) |
|
|
|
|
}).then(() => { |
|
|
|
|
const yace = spawn('YACardEmu', [], { cwd: dir }) |
|
|
|
|