Files
ps5debug-NG/common/include/proc_field_offsets.h
OpenSourcereR-dev 6b3cc3a216 Fix per-firmware proc appinfo offsets (name/path/titleid/contentid)
The struct proc name/path/titleid/contentid offsets were hardcoded to the
4.x layout with no firmware gating, so on 6.x and newer they read empty or
garbage: PROC_INFO/PROC_LIST returned blank names and the installer failed
with "SceShellCore not found" on 6.x.

Restore the original's per-firmware selection (three offset sets across
FW 3.x-8.x) behind a shared proc_get_field_offsets() helper that switches on
kernel_get_fw_version(); unsupported firmwares report unknown rather than
emitting wrong offsets. Wired into find_pid, proc_info_handle/proc_list, and
console_foreground_app_handle.
2026-05-31 02:16:51 +00:00

14 lines
271 B
C

// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include <stdint.h>
struct proc_field_offsets {
uint32_t name;
uint32_t path;
uint32_t titleid;
uint32_t contentid;
int known;
};
int proc_get_field_offsets(struct proc_field_offsets *out);