hoc-sys: revert to an ancient version that works on mariko units

This commit is contained in:
souldbminersmwc
2025-12-02 20:01:33 -05:00
parent 5fb7a3031a
commit feaa0fd93d
82 changed files with 528 additions and 41080 deletions

View File

@@ -38,9 +38,7 @@
#include "clock_manager.h"
#include "ipc_service.h"
#include "fancontrol.h"
#include "emc_patcher.h"
#define INNER_HEAP_SIZE 0x50000
#define INNER_HEAP_SIZE 0x30000
extern "C"
{
@@ -68,22 +66,12 @@ extern "C"
void __appInit(void)
{
Result rc;
if (R_FAILED(smInitialize()))
{
fatalThrow(MAKERESULT(Module_Libnx, LibnxError_InitFail_SM));
}
rc = fanInitialize();
if (R_FAILED(rc))
diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_ShouldNotHappen));
rc = i2cInitialize();
if (R_FAILED(rc))
diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_ShouldNotHappen));
rc = setsysInitialize();
Result rc = setsysInitialize();
if (R_SUCCEEDED(rc))
{
SetSysFirmwareVersion fw;
@@ -92,7 +80,14 @@ extern "C"
hosversionSet(MAKEHOSVERSION(fw.major, fw.minor, fw.micro));
setsysExit();
}
rc = fanInitialize();
if (R_FAILED(rc))
diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_ShouldNotHappen));
rc = i2cInitialize();
if (R_FAILED(rc))
diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_ShouldNotHappen));
}
void __appExit(void)
@@ -101,8 +96,7 @@ extern "C"
fanExit();
i2cExit();
fsExit();
fsdevUnmountAll();
smExit();
fsdevUnmountAll();
}
}
@@ -125,7 +119,7 @@ int main(int argc, char** argv)
ClockManager* clockMgr = new ClockManager();
IpcService* ipcSrv = new IpcService(clockMgr);
FileUtils::LogLine("Starting Horizon OC Sysmodule");
FileUtils::LogLine("Ready");
clockMgr->SetRunning(true);
clockMgr->GetConfig()->SetEnabled(true);