mirror of
https://github.com/DrBeef/QVR.git
synced 2024-11-22 03:41:55 +00:00
Fix wrong download location
This commit is contained in:
parent
b234cede6a
commit
0a6c268e85
1 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,8 @@ class DownloadTask extends AsyncTask<Void, String, Void> {
|
||||||
private String sdcard = Environment.getExternalStorageDirectory().getPath();
|
private String sdcard = Environment.getExternalStorageDirectory().getPath();
|
||||||
|
|
||||||
private String url = "https://www.dropbox.com/s/cgd8ynsvp8aen5v/quake106.zip?dl=1";
|
private String url = "https://www.dropbox.com/s/cgd8ynsvp8aen5v/quake106.zip?dl=1";
|
||||||
private String demofile = sdcard + "/Q4C/quake106.zip";
|
private String demofile = sdcard + "/QVR/quake106.zip";
|
||||||
private String pakfile = sdcard + "/Q4C/id1/pak0.pak";
|
private String pakfile = sdcard + "/QVR/id1/pak0.pak";
|
||||||
|
|
||||||
public DownloadTask set_context(Context context){
|
public DownloadTask set_context(Context context){
|
||||||
this.context = context;
|
this.context = context;
|
||||||
|
@ -102,7 +102,7 @@ class DownloadTask extends AsyncTask<Void, String, Void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// setup output directory
|
/// setup output directory
|
||||||
new File(sdcard + "/Q4C/id1").mkdirs();
|
new File(sdcard + "/QVR/id1").mkdirs();
|
||||||
|
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
FileOutputStream fos = null;
|
FileOutputStream fos = null;
|
||||||
|
@ -287,7 +287,7 @@ class DownloadTask extends AsyncTask<Void, String, Void> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Void unused) {
|
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()) {
|
if (f.exists()) {
|
||||||
QVRJNILib.setDownloadStatus(1);
|
QVRJNILib.setDownloadStatus(1);
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue