@Getter private final Configuration configuration;
private LauncherFrame mainFrame;
public Launcher(@NonNull File baseDir) {
this.baseDir = baseDir;
this.profiles = new ProfileManager(baseDir);
this.accounts = Persistence.load(new File(baseDir, "accounts.dat"), AccountList.class);
this.configuration = Persistence.load(new File(baseDir, "config.json"), Configuration.class);
if (accounts.getSize() > 0) {
accounts.setSelectedItem(accounts.getElementAt(0));