mirror of
https://github.com/spoopyghosty0/frameport.git
synced 2026-10-24 08:02:42 +02:00
Detect and redirect static loader manifests and Android brokers, ship a runtime negotiation shim and the inner loader chain, and maintain per-game manifests on install and launch. Add the PrimedGun recipe, triage and host coverage.
17 lines
592 B
C
17 lines
592 B
C
/* SPDX-License-Identifier: MIT */
|
|
#include <openxr/openxr.h>
|
|
#include <string.h>
|
|
static XrResult init(const XrLoaderInitInfoBaseHeaderKHR *info) {
|
|
return info->type == XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR && info->next == (void *)0x1234 ?
|
|
XR_SUCCESS : XR_ERROR_RUNTIME_FAILURE;
|
|
}
|
|
XrResult xrGetInstanceProcAddr(XrInstance instance, const char *name, PFN_xrVoidFunction *fn) {
|
|
(void)instance;
|
|
if (!strcmp(name, "xrInitializeLoaderKHR")) {
|
|
*fn = (PFN_xrVoidFunction)init;
|
|
return XR_SUCCESS;
|
|
}
|
|
*fn = NULL;
|
|
return XR_ERROR_FUNCTION_UNSUPPORTED;
|
|
}
|