File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
src/main/java/com/evacipated/cardcrawl/modthespire Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog ##
2
2
#### dev ####
3
+ * Add flag for closing MTS when done
4
+ * For automating out-jar/package
3
5
4
6
#### v3.26.0 ####
5
7
* Add ability to create pre-patched version of the game
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public class Loader
34
34
public static boolean DEBUG = false ;
35
35
public static boolean OUT_JAR = false ;
36
36
public static boolean PACKAGE = false ;
37
+ public static boolean CLOSE_WHEN_FINISHED = false ;
37
38
38
39
public static Semver MTS_VERSION ;
39
40
public static String MOD_DIR = "mods/" ;
@@ -156,6 +157,9 @@ public static void main(String[] args)
156
157
if (argList .contains ("--package" )) {
157
158
PACKAGE = true ;
158
159
}
160
+ if (argList .contains ("--close-when-finished" )) {
161
+ CLOSE_WHEN_FINISHED = true ;
162
+ }
159
163
160
164
allowBeta = true ;
161
165
if (argList .contains ("--allow-beta" )) {
Original file line number Diff line number Diff line change @@ -283,6 +283,9 @@ private JPanel makeModListPanel()
283
283
}
284
284
285
285
Loader .runMods (selectedMods );
286
+ if (Loader .CLOSE_WHEN_FINISHED ) {
287
+ Loader .closeWindow ();
288
+ }
286
289
});
287
290
t .start ();
288
291
});
You can’t perform that action at this time.
0 commit comments