Fix wrong download location

This commit is contained in:
Simon 2016-01-29 23:05:10 +00:00
parent b234cede6a
commit 0a6c268e85

View file

@ -34,8 +34,8 @@ class DownloadTask extends AsyncTask<Void, String, Void> {
private String sdcard = Environment.getExternalStorageDirectory().getPath();
private String url = "https://www.dropbox.com/s/cgd8ynsvp8aen5v/quake106.zip?dl=1";
private String demofile = sdcard + "/Q4C/quake106.zip";
private String pakfile = sdcard + "/Q4C/id1/pak0.pak";
private String demofile = sdcard + "/QVR/quake106.zip";
private String pakfile = sdcard + "/QVR/id1/pak0.pak";
public DownloadTask set_context(Context context){
this.context = context;
@ -102,7 +102,7 @@ class DownloadTask extends AsyncTask<Void, String, Void> {
}
/// setup output directory
new File(sdcard + "/Q4C/id1").mkdirs();
new File(sdcard + "/QVR/id1").mkdirs();
InputStream is = null;
FileOutputStream fos = null;
@ -287,7 +287,7 @@ class DownloadTask extends AsyncTask<Void, String, Void> {
@Override
protected void onPostExecute(Void unused) {
File f = new File(sdcard + "/Q4C/id1/pak0.pak");
File f = new File(sdcard + "/QVR/id1/pak0.pak");
if (f.exists()) {
QVRJNILib.setDownloadStatus(1);
} else