mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 10:01:15 +00:00
Address API regression from https://github.com/godotengine/godot/pull/101050
This commit is contained in:
parent
5da6deaaca
commit
2a66335ec2
3 changed files with 12 additions and 25 deletions
|
|
@ -300,14 +300,12 @@ abstract class BaseGodotEditor : GodotActivity(), GameMenuFragment.GameMenuListe
|
|||
}
|
||||
}
|
||||
|
||||
@CallSuper
|
||||
override fun updateCommandLineParams(args: Array<String>) {
|
||||
val args = if (BuildConfig.BUILD_TYPE == "dev") {
|
||||
args + "--benchmark"
|
||||
} else {
|
||||
args
|
||||
override fun getCommandLine(): MutableList<String> {
|
||||
val params = super.getCommandLine()
|
||||
if (BuildConfig.BUILD_TYPE == "dev" && !params.contains("--benchmark")) {
|
||||
params.add("--benchmark")
|
||||
}
|
||||
super.updateCommandLineParams(args);
|
||||
return params
|
||||
}
|
||||
|
||||
protected fun retrieveEditorWindowInfo(args: Array<String>, gameEmbedMode: GameEmbedMode): EditorWindowInfo {
|
||||
|
|
|
|||
|
|
@ -40,18 +40,16 @@ open class GodotXRGame: BaseGodotGame() {
|
|||
|
||||
override fun overrideOrientationRequest() = true
|
||||
|
||||
override fun updateCommandLineParams(args: Array<String>) {
|
||||
val updatedArgs = ArrayList<String>()
|
||||
if (!args.contains(XRMode.OPENXR.cmdLineArg)) {
|
||||
override fun getCommandLine(): MutableList<String> {
|
||||
val updatedArgs = super.getCommandLine()
|
||||
if (!updatedArgs.contains(XRMode.OPENXR.cmdLineArg)) {
|
||||
updatedArgs.add(XRMode.OPENXR.cmdLineArg)
|
||||
}
|
||||
if (!args.contains(XR_MODE_ARG)) {
|
||||
if (!updatedArgs.contains(XR_MODE_ARG)) {
|
||||
updatedArgs.add(XR_MODE_ARG)
|
||||
updatedArgs.add("on")
|
||||
}
|
||||
updatedArgs.addAll(args)
|
||||
|
||||
super.updateCommandLineParams(updatedArgs.toTypedArray())
|
||||
return updatedArgs
|
||||
}
|
||||
|
||||
override fun getEditorWindowInfo() = XR_RUN_GAME_INFO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue