Merge pull request #80 from lvonasek/hotfix_app_flow

Hotfix app flow
This commit is contained in:
Simon 2022-05-08 19:24:50 +01:00 committed by GitHub
commit 709c0abdcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,8 @@
#include "vr_base.h"
#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"
#include "../client/client.h"
#include "vr_base.h"
#include "vr_clientinfo.h"
//#if __ANDROID__
@ -10,6 +11,7 @@
static engine_t vr_engine;
qboolean vr_initialized = qfalse;
extern vr_clientinfo_t vr;
const char* const requiredExtensionNames[] = {
XR_KHR_OPENGL_ES_ENABLE_EXTENSION_NAME,
@ -256,6 +258,9 @@ void VR_InitCvars( void )
Cvar_Get ("vr_button_map_SECONDARYGRIP", "+weapon_stabilise", CVAR_ARCHIVE); // Weapon stabilisation
Cvar_Get ("vr_button_map_SECONDARYGRIP_ALT", "", CVAR_ARCHIVE); // unmapped
Cvar_Get ("vr_button_map_PRIMARYGRIP_ALT", "", CVAR_ARCHIVE); // unmapped
vr.menuYaw = 0;
vr.recenterYaw = 0;
}
void VR_Destroy( engine_t* engine )

View file

@ -77,8 +77,10 @@ public class MainActivity extends SDLActivity // implements KeyEvent.Callback
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] results) {
if (requestCode == WRITE_EXTERNAL_STORAGE_PERMISSION_ID) {
finish();
System.exit(0);
try {
create();
} catch (Exception e) {
}
}
}