Skip to content

Commit 25a953b

Browse files
authored
Merge pull request #284 from rbessems/loader_fixes
Loader fixes
2 parents 2949efb + 79ab12a commit 25a953b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Loader: Fixed incorrect return value when no broker is present on Android but runtime defined via active_runtime.json.
2+
- Loader: Added /system to the search path on Android as per documentation.
3+
- Docs: Fixed typo in docs.

specification/loader/runtime.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ tag above.
194194
If no runtime is found this way, as a fall-back, a similar process as on
195195
Linux takes place, searching for `active_runtime.json` files in:
196196

197-
* `/odm/etc/openxr/1`
197+
* `/oem/etc/openxr/1`
198198
* `/vendor/etc/openxr/1`
199199
* `/system/etc/openxr/1`
200200

src/common/platform_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static inline bool PlatformUtilsSetEnv(const char* /* name */, const char* /* va
302302
// Intended to be only used as a fallback on Android, with a more open, "native" technique used in most cases
303303
static inline bool PlatformGetGlobalRuntimeFileName(uint16_t major_version, std::string& file_name) {
304304
// Prefix for the runtime JSON file name
305-
static const char* rt_dir_prefixes[] = {"/oem", "/vendor"};
305+
static const char* rt_dir_prefixes[] = {"/oem", "/vendor", "/system"};
306306
static const std::string rt_filename = "/active_runtime.json";
307307
static const std::string subdir = "/etc/openxr/";
308308
for (const auto prefix : rt_dir_prefixes) {

src/loader/manifest_file.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ XrResult RuntimeManifestFile::FindManifestFiles(std::vector<std::unique_ptr<Runt
638638
"", "RuntimeManifestFile::FindManifestFiles - failed to determine active runtime file path for this environment");
639639
return XR_ERROR_RUNTIME_UNAVAILABLE;
640640
}
641+
result = XR_SUCCESS;
641642
LoaderLogger::LogInfoMessage("", "RuntimeManifestFile::FindManifestFiles - using global runtime file " + filename);
642643
#endif
643644
}

0 commit comments

Comments
 (0)