34 lines
1.4 KiB
Java
34 lines
1.4 KiB
Java
package com.epicgames.unreal;
|
|
|
|
import com.AIGames.FunnyGirl.OBBDownloaderService;
|
|
import com.AIGames.FunnyGirl.DownloaderActivity;
|
|
import android.app.Activity;
|
|
import com.google.android.vending.expansion.downloader.Helpers;
|
|
import com.AIGames.FunnyGirl.OBBData;
|
|
|
|
|
|
public class DownloadShim
|
|
{
|
|
public static OBBDownloaderService DownloaderService;
|
|
public static DownloaderActivity DownloadActivity;
|
|
public static Class<DownloaderActivity> GetDownloaderType() { return DownloaderActivity.class; }
|
|
public static boolean expansionFilesDelivered(Activity activity, int version) {
|
|
for (OBBData.XAPKFile xf : OBBData.xAPKS) {
|
|
String fileName = Helpers.getExpansionAPKFileName(activity, xf.mIsMain, Integer.toString(version), OBBData.AppType);
|
|
GameActivity.Log.debug("Checking for file : " + fileName);
|
|
String fileForNewFile = Helpers.generateSaveFileName(activity, fileName);
|
|
String fileForDevFile = Helpers.generateSaveFileNameDevelopment(activity, fileName);
|
|
GameActivity.Log.debug("which is really being resolved to : " + fileForNewFile + "\n Or : " + fileForDevFile);
|
|
if (Helpers.doesFileExist(activity, fileName, xf.mFileSize, false)) {
|
|
GameActivity.Log.debug("Found OBB here: " + fileForNewFile);
|
|
}
|
|
else if (Helpers.doesFileExistDev(activity, fileName, xf.mFileSize, false)) {
|
|
GameActivity.Log.debug("Found OBB here: " + fileForDevFile);
|
|
}
|
|
else return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|