@@ -98,8 +98,8 @@ int PackPSPISO(string Folder, string OutFilename)
9898 private void PrepareGameData ( string InFilename , string OutFolder )
9999 {
100100 string ISOoutfolder = OutFolder + "/gamedata" ;
101- string EBOOTfile = OutFolder + "/EBOOT.BIN" ;
102- string EBOOTdest = OutFolder + "/gamedata/PSP_GAME/SYSDIR/EBOOT.BIN" ;
101+ // string EBOOTfile = OutFolder + "/EBOOT.BIN";
102+ // string EBOOTdest = OutFolder + "/gamedata/PSP_GAME/SYSDIR/EBOOT.BIN";
103103
104104 if ( ! Directory . Exists ( ISOoutfolder ) )
105105 Directory . CreateDirectory ( ISOoutfolder ) ;
@@ -110,7 +110,7 @@ private void PrepareGameData(string InFilename, string OutFolder)
110110 }
111111
112112 ExtractISO ( InFilename , ISOoutfolder ) ;
113- File . Copy ( EBOOTfile , EBOOTdest , true ) ;
113+ // File.Copy(EBOOTfile, EBOOTdest, true);
114114 }
115115
116116 private void InitializerOpenFile ( string FileName )
@@ -124,6 +124,14 @@ private void StartRandomizer(string GameFolder, string OutISOName)
124124 {
125125 int theseed = Int32 . Parse ( tbSeed . Text ) ;
126126
127+ string EBOOTfile = GameFolder + "/EBOOT.BIN" ;
128+ if ( ! cbBanlist . Checked )
129+ EBOOTfile = GameFolder + "/EBOOT_NoBanlist.BIN" ;
130+
131+ string EBOOTdest = GameFolder + "/gamedata/PSP_GAME/SYSDIR/EBOOT.BIN" ;
132+
133+ File . Copy ( EBOOTfile , EBOOTdest , true ) ;
134+
127135 if ( cbDeckRandom . Checked )
128136 {
129137 lbWaitText . Text = "Randomizing deck recipes..." ;
@@ -145,7 +153,7 @@ private void StartRandomizer(string GameFolder, string OutISOName)
145153 PackEHP ( OutRecipeFolder , OutRecipeEHP ) ;
146154 }
147155
148- if ( cbPackPriceRange . Checked || cbPackCountRange . Checked )
156+ if ( cbBoxRandomize . Checked )
149157 {
150158 lbWaitText . Text = "Randomizing card boxes..." ;
151159
@@ -287,5 +295,17 @@ private void cbPackCountRange_CheckedChanged(object sender, EventArgs e)
287295 tbMinCount . Enabled = cbPackCountRange . Checked ;
288296 tbMaxCount . Enabled = cbPackCountRange . Checked ;
289297 }
298+
299+ private void cbBoxRandomize_CheckedChanged ( object sender , EventArgs e )
300+ {
301+ cbPackPriceRange . Enabled = cbBoxRandomize . Checked ;
302+ cbPackCountRange . Enabled = cbBoxRandomize . Checked ;
303+ label4 . Enabled = cbBoxRandomize . Checked ;
304+ label6 . Enabled = cbBoxRandomize . Checked ;
305+ tbMinPrice . Enabled = cbBoxRandomize . Checked ;
306+ tbMinCount . Enabled = cbBoxRandomize . Checked ;
307+ tbMaxPrice . Enabled = cbBoxRandomize . Checked ;
308+ tbMaxCount . Enabled = cbBoxRandomize . Checked ;
309+ }
290310 }
291311}
0 commit comments