MCPcopy Create free account
hub / github.com/PCGen/pcgen / shutdown

Method shutdown

code/src/java/pcgen/system/Main.java:356–369  ·  view source on GitHub ↗
(boolean success)

Source from the content-addressed store, hash-verified

354 }
355
356 public static void shutdown(boolean success)
357 {
358 configFactory.savePropertyContexts();
359 BatchExporter.removeTemporaryFiles();
360 PropertyContextFactory.getDefaultFactory().savePropertyContexts();
361
362 // Need to (possibly) write customEquipment.lst
363 if (PCGenSettings.OPTIONS_CONTEXT.getBoolean(PCGenSettings.OPTION_SAVE_CUSTOM_EQUIPMENT))
364 {
365 CustomData.writeCustomItems();
366 }
367
368 GracefulExit.exit(success ? 0 : 1);
369 }
370
371 private static void initPrintPreviewFonts()
372 {

Callers 3

closePCGenMethod · 0.95
mainMethod · 0.95
testJarMethod · 0.45

Calls 6

removeTemporaryFilesMethod · 0.95
getDefaultFactoryMethod · 0.95
writeCustomItemsMethod · 0.95
exitMethod · 0.95
savePropertyContextsMethod · 0.80
getBooleanMethod · 0.80

Tested by 1

testJarMethod · 0.36