mirror of
https://github.com/etaHEN/etaHEN.git
synced 2026-01-12 11:25:27 +08:00
etaHEN 2.4B etaHEN 2.4B Change log - Updated to support the latest PS5 Payload SDK - Fixed etaHEN and Cheats support for 8.40-10.01 - Added a Game Overlay menu to show CPU/GPU Temp and utilization, Local IP Address and other future states - Added a Kstuff menu for options like downloading the latest kstuff from github, turning off kstufff autoload and more - Added a Custom Background Package Installer for installing PKGs from internal storage from any directory (Requires DPIv2 enabled for 5.50+) - DPIv2 can now download local files via url example http://192.xxx.xxx.xxx:12800/data/etaHEN/etaHEN.log - Improved Cheats support, cheats with or without 0 sections are now supported - Added Fix by TheFlow to Improve 2.xx PS4 PKG speeds - Replaced the donation links in the etaHEN credits menu with ones to github sponsers - Removed the non-whitelist app jailbreak option and moved it to an optional Legacy CMD Server option in the etaHEN Settings off by default - Game Decryptor has been updated for the Itemzflow Dumper - Updated the Plugin loader System - The Payload SDK ELFLDR is now REQUIRED for etaHEN to load - Replaced HTTP2 with Curl for better compatibility - Added timeout for ShellUI to receive a response (will stop it from freezing if no response is given) small fix
75 lines
1.7 KiB
C++
75 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <sys/mman.h>
|
|
#include <string>
|
|
#include <sys/param.h>
|
|
|
|
#define INVAIL -1
|
|
#define CRIT_IPC_SOC "/system_tmp/etaHEN_crit_service"
|
|
#define UTIL_IPC_SOC "/system_tmp/etaHEN_util_service"
|
|
#define DAEMON_BUFF_MAX 0x1000
|
|
|
|
|
|
enum class IPC_Ret : int {
|
|
INVALID = -1,
|
|
NO_ERROR = 0,
|
|
OPERATION_FAILED = -1,
|
|
DEFAULT_RET = -1337
|
|
};
|
|
|
|
enum DaemonCommands : int {
|
|
BREW_TEST_CONNECTION = 0x9000000,
|
|
BREW_RETURN_VALUE = 0x9000002,
|
|
BREW_REMOUNT_FOLDER,
|
|
BREW_ACTIVATE_DUMPER,
|
|
BREW_STAT_CMD,
|
|
BREW_CALC_DIR_SIZE,
|
|
BREW_COPY_FILE,
|
|
BREW_COPY_DIR,
|
|
BREW_DELETE_DIR,
|
|
BREW_UNUSED_1,// not used anymore but kept fopr backwards compatibility for now
|
|
BREW_TEST_SB_FILE,
|
|
BREW_DAEMON_PID,
|
|
BREW_INSTALL_THE_STORE,
|
|
BREW_DECRYPT_DIR,
|
|
BREW_LAST_RET,
|
|
BREW_TESTKIT_CHECK,
|
|
BREW_ENABLE_TOOLBOX,
|
|
BREW_CHMOD_DIR,
|
|
|
|
BREW_UTIL_TEST_CONNECTION = 0x8000000,
|
|
BREW_UTIL_RETURN_VALUE = 0x8000002,
|
|
BREW_UTIL_DAEMON_PID,
|
|
BREW_UTIL_TOGGLE_FTP,
|
|
BREW_UTIL_TOGGLE_KLOG,
|
|
BREW_UTIL_TOGGLE_DPI,
|
|
BREW_UTIL_LAUNCH_PLUGIN,
|
|
BREW_UTIL_SHELLUI_ON_STANDBY,
|
|
BREW_UTIL_GET_GAME_VER,
|
|
BREW_UTIL_GET_GAME_CHEAT,
|
|
BREW_UTIL_TOGGLE_CHEAT,
|
|
BREW_UTIL_DOWNLOAD_CHEATS,
|
|
BREW_UTIL_RELOAD_CHEATS,
|
|
BREW_UTIL_DOWNLOAD_KSTUFF,
|
|
BREW_UTIL_TOGGLE_LEGACY_CMD_SERVER,
|
|
|
|
// Special command to launch Johns elfldr for lite mode
|
|
BREW_UTIL_LAUNCH_ELFLDR = 0xE1F1D8, // not used if already running
|
|
BREW_RELOAD_SETTINGS = 0xC0FFEE,
|
|
|
|
//Special Main daemon command for loading PS5Debug
|
|
BREW_TOGGLE_PS5DEBUG = 0xDE8E6,
|
|
|
|
//KILL MAIN DAEMOM
|
|
BREW_KILL_DAEMON = 0xDEAD0001,
|
|
BREW_FORCE_KILL_PID = 0xDEADCAFE,
|
|
};
|
|
|
|
struct IPCMessage {
|
|
int magic = 0xDEADBABE;
|
|
enum DaemonCommands cmd;
|
|
int error = 0;
|
|
char msg[DAEMON_BUFF_MAX];
|
|
}; |