Files
mitch030504--AstroQuest-Frame/quest-host/cpp/log.h
T
bigmak94andClaude Opus 5.5 b5f400bbbd AstroQuest 0.11: ASTRO BOT Rescue Mission in VR on Meta Quest 3 and PC VR
On top of the shadps4-arm64 core imported in the previous commit:

- PlayStation VR emulation: headset, tracker, reprojection, camera and social screen; the
  player's seat and view reset; head velocity for head-butts; field of view settings
- Sound: a native Ngs2 engine (samplers, submixers, effects), the Audio3d spatializer, virtual
  surround for headset speakers, microphone pass-through; libSceJson2; libSceFiber on FEX
- Fixes for CUSA12392 under emulation: real-time step, pace and resolution governor, larger
  render sizes on the PC, save loading at start
- Renderer: geometry shaders fed with fans/polygons/loops, cube-array layers of light probes,
  sample-count mismatches on Adreno, timeline semaphore hang, FXAA in place of the MSAA
  resolve, sharpening, VR frame export
- quest-host: the Quest app (OpenXR host that runs the glibc core as a child process, frames
  through AHardwareBuffers, DualSense mapping, hand-tracked controller placement, KGSL shim)
- PC: in-process OpenXR host (Virtual Desktop or any OpenXR runtime), Touch controllers as the
  gamepad, launcher with a settings window; vendored OpenXR SDK 1.1.63
- Builds keep the build machine's folders out of the binaries (-ffile-prefix-map); machine
  settings (Python, headset serial, signing key) live in git-ignored tools/*.local files
- tools: build, packaging and test scripts for Windows and the headset
- README with installation, license (GPL-2.0-or-later), third-party notices and thanks

No game files are part of the repository; .gitignore only lets listed paths in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:00:43 +02:00

17 lines
646 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <android/log.h>
#define LOG_TAG "AstroVR"
/// Writes a line to the system log and, once SetLogFile was called, to that file too. The system
/// log is a ring shared with everything else on the headset: by the time somebody asks what
/// happened in a session, it has moved on.
void HostLog(int priority, const char* format, ...) __attribute__((format(printf, 2, 3)));
void SetLogFile(const char* path);
#define LOGI(...) HostLog(ANDROID_LOG_INFO, __VA_ARGS__)
#define LOGW(...) HostLog(ANDROID_LOG_WARN, __VA_ARGS__)
#define LOGE(...) HostLog(ANDROID_LOG_ERROR, __VA_ARGS__)