You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fix version checked for OBB to always match manifest version code
#android #rb trivial #ROBOMERGE-SOURCE: CL 6672175 via CL 6672194 via CL 6672197 via CL 6672201 via CL 6672203 via CL 6673471 #ROBOMERGE-BOT: (vundefined-6665479) [CL 6674115 by chris babcock in Main branch]
This commit is contained in:
@@ -223,6 +223,7 @@ public class GameActivity extends $${gameActivitySuperClass}$$ implements Surfac
|
||||
//$${gameActivityImplementsAdditions}$$
|
||||
ComponentCallbacks2
|
||||
{
|
||||
public int VersionCode = 0;
|
||||
private boolean bAllowIMU = true;
|
||||
private SensorManager sensorManager;
|
||||
private Sensor accelerometer;
|
||||
@@ -2605,9 +2606,9 @@ public class GameActivity extends $${gameActivitySuperClass}$$ implements Surfac
|
||||
|
||||
try
|
||||
{
|
||||
int Version = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;
|
||||
VersionCode = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;
|
||||
int PatchVersion = 0;
|
||||
nativeSetObbInfo(ProjectName, getApplicationContext().getPackageName(), Version, PatchVersion, AppType);
|
||||
nativeSetObbInfo(ProjectName, getApplicationContext().getPackageName(), VersionCode, PatchVersion, AppType);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -2652,6 +2653,7 @@ public class GameActivity extends $${gameActivitySuperClass}$$ implements Surfac
|
||||
// remember down time and position
|
||||
downTime = System.currentTimeMillis();
|
||||
downX = event.getX();
|
||||
consoleInputBox.requestFocus();
|
||||
return true;
|
||||
}
|
||||
case MotionEvent.ACTION_UP: {
|
||||
@@ -2795,7 +2797,7 @@ public class GameActivity extends $${gameActivitySuperClass}$$ implements Surfac
|
||||
// check for OBB file present if we don't have all the files and don't need to verify
|
||||
if (!HasAllFiles && !VerifyOBBOnStartUp)
|
||||
{
|
||||
HasAllFiles = DownloadShim.expansionFilesDelivered(this);
|
||||
HasAllFiles = DownloadShim.expansionFilesDelivered(this, VersionCode);
|
||||
}
|
||||
|
||||
containerFrameLayout = new FrameLayout(_activity);
|
||||
|
||||
Reference in New Issue
Block a user