public static void saveConfig(RomInformation info) { RomConfig config = RomConfig.getConfig(info.getConfigPath()); config.setId(info.getId()); config.setName(info.getName()); try { config.commit(); } catch (FileNotFoundException e) { Log.e(TAG, "Failed to save ROM config", e); } }
public static void loadConfig(RomInformation info) { RomConfig config = RomConfig.getConfig(info.getConfigPath()); info.setName(config.getName()); }