remove typedef

This commit is contained in:
Lightos1
2026-06-14 21:21:05 +02:00
parent dc7fa98d19
commit c18f3f1468
3 changed files with 6 additions and 6 deletions

View File

@@ -58,8 +58,8 @@ namespace ams::ldr {
namespace ams::ldr::hoc {
template<typename Pointer>
struct PatcherEntry {
using patternFn = bool(*)(Pointer* ptr);
using patcherFn = Result(*)(Pointer* ptr);
using patternFn = bool(*)(Pointer *ptr);
using patcherFn = Result(*)(Pointer *ptr);
const char* description;
patcherFn patcher_fn = nullptr;
@@ -79,7 +79,7 @@ namespace ams::ldr::hoc {
Result SearchAndApply(Pointer *ptr) {
bool searchOk = false;
if (pattern_search_fn) {
if (pattern_search_fn), {
if (pattern_search_fn(ptr)) {
searchOk = true;
}

View File

@@ -126,7 +126,7 @@ namespace ams::ldr::hoc {
SmcRebootToIramPayload();
while(true){}
while(true) { }
}
#endif
}

View File

@@ -22,7 +22,7 @@
namespace ams::ldr::hoc::ptm {
typedef struct {
struct perf_conf_entry {
u32 conf_id;
u32 cpu_freq_1; // min-max pair?
u32 cpu_freq_2;
@@ -31,7 +31,7 @@ namespace ams::ldr::hoc::ptm {
u32 emc_freq_1;
u32 emc_freq_2;
u32 padding;
} perf_conf_entry;
};
constexpr u32 entryCnt = 16;
constexpr u32 cpuPtmDefault = 1020'000'000;