@@ -125,7 +125,7 @@ window.runtime.EventsOn("log", function(data) {
125125} ) ;
126126
127127window . runtime . EventsOn ( "test-group-prompt" , function ( data ) {
128- showTestDialog ( data . count ) ;
128+ showTestDialog ( data . count , data . auto_launch ) ;
129129} ) ;
130130
131131window . runtime . EventsOn ( "debug-complete" , function ( culprit ) {
@@ -178,12 +178,16 @@ window.runtime.EventsOn("close-confirm", function() {
178178 ) ;
179179} ) ;
180180
181- function showTestDialog ( count ) {
181+ function showTestDialog ( count , autoLaunch ) {
182182 testDialogActive = true ;
183+ var launchText = autoLaunch
184+ ? "The game has been launched, please wait and see if Minecraft loads properly"
185+ : "Launch Minecraft now and test if it loads properly" ;
183186 showModal ( "Test Launch" ,
184187 '<div class="test-dialog-main">' +
185188 '<h2>Testing ' + count + ' mods</h2>' +
186- '<p>Launch Minecraft now and test if it loads properly.</p>' +
189+ '<p>' + launchText + '</p>' +
190+ '<p style="font-weight: bold; color: var(--log-error);">MAKE SURE TO CLOSE THE GAME BEFORE SELECTING AN OPTION.</p>' +
187191 '<p style="color: var(--text-secondary); font-size: 12px;">Only the selected mods are in your mods folder.</p>' +
188192 '</div>' ,
189193 '<button class="btn btn-danger" onclick="cancelDebug()">Cancel Debug</button>' +
@@ -397,7 +401,8 @@ async function startDebugWithSelection(mods, checkId) {
397401 }
398402 closeModal ( ) ;
399403 try {
400- await window . go . main . App . StartDebug ( "specific" , selected ) ;
404+ const autoLaunch = document . getElementById ( "auto-launch-checkbox" ) . checked ;
405+ await window . go . main . App . StartDebug ( "specific" , selected , autoLaunch ) ;
401406 await updateUI ( ) ;
402407 } catch ( err ) {
403408 await showError ( "Error" , err ) ;
@@ -715,9 +720,11 @@ document.getElementById("start-debug-btn").addEventListener("click", async funct
715720 const mode = document . querySelector ( 'input[name="mode"]:checked' ) ;
716721 if ( ! mode ) return ;
717722
723+ const autoLaunch = document . getElementById ( "auto-launch-checkbox" ) . checked ;
724+
718725 try {
719726 if ( mode . value === "all" ) {
720- await window . go . main . App . StartDebug ( "all" , null ) ;
727+ await window . go . main . App . StartDebug ( "all" , null , autoLaunch ) ;
721728 } else {
722729 const savedMods = await window . go . main . App . GetSavedNewMods ( ) ;
723730 if ( ! savedMods || savedMods . length === 0 ) {
0 commit comments