This commit is contained in:
Simon 2020-03-03 00:02:44 +00:00
parent ad38c4fbdb
commit 442b91479e
5 changed files with 15 additions and 6 deletions

View file

@ -1501,17 +1501,21 @@ void * AppThreadFunction(void * parm ) {
//Using a symmetrical render target
cylinderSize[0] = cylinderSize[1] = m_height = m_width = (int)(vrapi_GetSystemPropertyInt(&java, VRAPI_SYS_PROP_SUGGESTED_EYE_TEXTURE_WIDTH) * SS_MULTIPLIER);
//Use floor based tracking space
vrapi_SetTrackingSpace(gAppState.Ovr, VRAPI_TRACKING_SPACE_LOCAL_FLOOR);
gAppState.CpuLevel = CPU_LEVEL;
gAppState.GpuLevel = GPU_LEVEL;
gAppState.MainThreadTid = gettid();
ovrEgl_CreateContext(&gAppState.Egl, NULL);
EglInitExtensions();
gAppState.CpuLevel = CPU_LEVEL;
gAppState.GpuLevel = GPU_LEVEL;
gAppState.MainThreadTid = gettid();
//First handle any messages in the queue
while ( gAppState.Ovr == NULL ) {
processMessageQueue();
}
//Use floor based tracking space
vrapi_SetTrackingSpace(gAppState.Ovr, VRAPI_TRACKING_SPACE_LOCAL_FLOOR);
ovrRenderer_Create(m_width, m_height, &gAppState.Renderer, &java);

View file

@ -2341,6 +2341,7 @@ static void CheckCmdLine()
void VR_DoomMain(int argc, char** argv)
{
progdir = "/sdcard/QzDoom/";
Args = new FArgs(argc, argv);
C_InitConsole (80*8, 25*8, false);
D_DoomMain ();

Binary file not shown.

BIN
assets/res/lzdoom.pk3 Normal file

Binary file not shown.

View file

@ -163,6 +163,10 @@ import static android.system.Os.setenv;
{
copy_asset("/sdcard/QzDoom", "commandline.txt");
new File("/sdcard/QzDoom/res").mkdirs();
copy_asset("/sdcard/QzDoom", "res/lzdoom.pk3");
copy_asset("/sdcard/QzDoom", "res/lz_game_support.pk3");
//Read these from a file and pass through
commandLineParams = new String("doom");