Exemplo n.º 1
0
  public VICEPlugin() {
    if (!initialized) {
      /* Store basic, kernal & chargen for C++ code to find. */
      dataDir = new File(Environment.getExternalStorageDirectory(), "droidsound");
      if (!dataDir.exists()) {
        dataDir.mkdir();
      }

      File viceDir = new File(dataDir, "VICE");
      synchronized (lock) {
        if (!viceDir.exists()) {
          unzipper = Unzipper.getInstance();
          unzipper.unzipAssetAsync(getContext(), "vice.zip", dataDir);
        }
      }
      initialized = true;
    }
  }