|
|
|
@ -124,12 +124,6 @@ public class DataActivity extends Activity { |
|
|
|
* Start downloading the shareware |
|
|
|
* Start downloading the shareware |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void sendDownloadRequest(View view) { |
|
|
|
public void sendDownloadRequest(View view) { |
|
|
|
File spawnFile = new File(externalDir + "/spawn.mpq-temp"); |
|
|
|
|
|
|
|
if (spawnFile.exists() && spawnFile.renameTo(new File(externalDir + "/spawn.mpq"))) { |
|
|
|
|
|
|
|
startGame(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isDownloadingSpawn = true; |
|
|
|
isDownloadingSpawn = true; |
|
|
|
sendDownloadRequest( |
|
|
|
sendDownloadRequest( |
|
|
|
"https://github.com/d07RiV/diabloweb/raw/3a5a51e84d5dab3cfd4fef661c46977b091aaa9c/spawn.mpq", |
|
|
|
"https://github.com/d07RiV/diabloweb/raw/3a5a51e84d5dab3cfd4fef661c46977b091aaa9c/spawn.mpq", |
|
|
|
|