Пример #1
0
  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);
    }
  }
Пример #2
0
 public static void loadConfig(RomInformation info) {
   RomConfig config = RomConfig.getConfig(info.getConfigPath());
   info.setName(config.getName());
 }