Platform: prepare() hook and app-specific command-line options
prepare() runs once mode and app key are known, before engine, surfaces and SteamVR; returning false ends exec() with exit code 1 (D21). The base constructor takes the app's own QCommandLineOptions, parses them with its own and exposes them via isOptionSet()/optionValue() (D38). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,5 +31,7 @@ add_test(NAME surfaces_opengl COMMAND tst_surfaces --graphics-api opengl)
|
||||
add_test(NAME surfaces_vulkan COMMAND tst_surfaces --graphics-api vulkan)
|
||||
add_test(NAME surfaces_cli_key COMMAND tst_surfaces --graphics-api opengl)
|
||||
set_tests_properties(surfaces_cli_key PROPERTIES ENVIRONMENT "VRDASH_TEST_CLI_KEY=1")
|
||||
add_test(NAME surfaces_prepare_fail COMMAND tst_surfaces --graphics-api opengl)
|
||||
set_tests_properties(surfaces_prepare_fail PROPERTIES ENVIRONMENT "VRDASH_TEST_PREPARE_FAIL=1")
|
||||
set_tests_properties(surfaces_opengl surfaces_vulkan surfaces_cli_key
|
||||
PROPERTIES SKIP_RETURN_CODE 77)
|
||||
|
||||
Reference in New Issue
Block a user