Skip to content

Commit

Permalink
Update for Android library changes in Godot 4.4-beta4
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek committed Feb 11, 2025
1 parent b6d5fca commit 2b37463
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ package org.godotengine.openxr.vendors

import android.os.Bundle
import android.util.Log
import androidx.annotation.CallSuper
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import org.godotengine.godot.GodotActivity
import org.godotengine.godot.BuildConfig
Expand Down Expand Up @@ -61,10 +60,10 @@ class GodotPanelApp : GodotActivity() {
super.onCreate(savedInstanceState)
}

@CallSuper
protected override fun updateCommandLineParams(args: Array<String>) {
// Force XR to be turned off and discard other params.
super.updateCommandLineParams(arrayOf("--xr_mode_regular", "--xr-mode", "off"))
@Suppress("MissingSuperCall")
override fun getCommandLine(): ArrayList<String> {
// Force XR to be turned off.
return arrayListOf("--xr_mode_regular", "--xr-mode", "off")
}

override fun supportsFeature(featureTag: String): Boolean {
Expand Down

0 comments on commit 2b37463

Please sign in to comment.