File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1- const { writeFile, unlinkSync } = require ( 'fs' ) ;
1+ const { writeFile, unlinkSync, existsSync } = require ( 'fs' ) ;
22
33module . exports = ( mainWindow ) => {
44 mainWindow . openDevTools ( ) ;
5- unlinkSync ( './static/bundles/main.js' ) ;
5+ if ( existsSync ( './static/bundles/main.js' ) ) {
6+ unlinkSync ( './static/bundles/main.js' ) ;
7+ }
68
79 // webpack reload
810
Original file line number Diff line number Diff line change @@ -7,7 +7,16 @@ const base = __dirname + '/../../flex2_test/s1disasm/SonLVL INI Files/';
77const format = 'Sonic 1.js' ;
88const projectName = 'Sonic 1' ;
99const defaultCmp = 'Nemesis' ;
10- const folders = [ 'objGHZ.ini' ] ;
10+ // const folders = ['objGHZ.ini'];
11+ const folders = [
12+ 'obj.ini' ,
13+ 'objGHZ.ini' ,
14+ 'objLZ.ini' ,
15+ 'objMZ.ini' ,
16+ 'objSBZ.ini' ,
17+ 'objSLZ.ini' ,
18+ 'objSYZ.ini' ,
19+ ] ;
1120const pathMod = ( str ) => str . slice ( 3 ) ;
1221const basePalette = [
1322 { path : 'palette/Sonic.bin' , length : 1 }
@@ -45,7 +54,7 @@ folders.forEach(filename => {
4554 ? [ ...basePalette , { path : paletteLookup [ filename ] , length : 3 } ]
4655 : basePalette ;
4756 const folder = {
48- name : filename ,
57+ name : filename . replace ( / o b j | \. i n i / g , '' ) ,
4958 children : [ ] ,
5059 isDirectory : true ,
5160 expanded : false ,
You can’t perform that action at this time.
0 commit comments