mirror of
https://github.com/Pharaoh2k/ps5debug-NG.git
synced 2026-10-19 02:19:56 -05:00
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.
14 lines
271 B
C
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);
|