String cfgLoad = JConfig.queryConfiguration("temp.cfg.load", "JBidWatch.cfg");
String cfgFilename = cfgLoad.equals("JBidWatch.cfg") ? Path.getCanonicalFile(cfgLoad, "jbidwatcher", false) : cfgLoad;
// TODO -- Need to save searches in the database too... Right now they're still hanging around in XML form.
SearchManager.getInstance().saveSearches();
AuctionStats as = AuctionServerManager.getInstance().getStats();
JConfig.setConfiguration("last.auctioncount", Integer.toString(as.getCount()));
if (Database.saveDBConfig()) {
// If we're changing databases, we'll need the auction information saved so we can load it into the new database.
AuctionsManager.getInstance().saveAuctions();
}
JConfig.saveConfiguration(cfgFilename);