Minor changes

This commit is contained in:
InoriRus
2021-12-29 18:09:27 +10:00
parent 037431589f
commit 435a26c591
31 changed files with 1817 additions and 645 deletions
@@ -21,6 +21,7 @@ LIB_DEFINE(InitGraphicsDriver_1)
LIB_FUNC("zwY0YV91TTI", Graphics::GraphicsSubmitCommandBuffers);
LIB_FUNC("xbxNatawohc", Graphics::GraphicsSubmitAndFlipCommandBuffers);
LIB_FUNC("yvZ73uQUqrk", Graphics::GraphicsSubmitDone);
LIB_FUNC("b08AgtPlHPg", Graphics::GraphicsAreSubmitsAllowed);
LIB_FUNC("iBt3Oe00Kvc", Graphics::GraphicsFlushMemory);
LIB_FUNC("b0xyllnVY-I", Graphics::GraphicsAddEqEvent);
LIB_FUNC("PVT+fuoS9gU", Graphics::GraphicsDeleteEqEvent);
+14 -1
View File
@@ -246,11 +246,20 @@ static int KYTY_SYSV_ABI write(int d, const char* str, int64_t size)
int size_int = static_cast<int>(size);
printf(FG_BRIGHT_MAGENTA "%.*s" DEFAULT, size_int, str);
emu_printf(FG_BRIGHT_MAGENTA "%.*s" DEFAULT, size_int, str);
return size_int;
}
static int64_t KYTY_SYSV_ABI read(int d, void* buf, uint64_t nbytes)
{
// PRINT_NAME();
EXIT_NOT_IMPLEMENTED(d != 0);
return static_cast<int64_t>(strlen(std::fgets(static_cast<char*>(buf), static_cast<int>(nbytes), stdin)));
}
static int KYTY_SYSV_ABI KernelGetModuleInfoFromAddr(uint64_t addr, int n, ModuleInfo* r)
{
PRINT_NAME();
@@ -457,6 +466,7 @@ LIB_DEFINE(InitLibKernel_1_Equeue)
LIB_FUNC("D0OdFMjp46I", EventQueue::KernelCreateEqueue);
LIB_FUNC("jpFjmgAC5AE", EventQueue::KernelDeleteEqueue);
LIB_FUNC("fzyMKs9kim0", EventQueue::KernelWaitEqueue);
LIB_FUNC("vz+pg2zdopI", EventQueue::KernelGetEventUserData);
}
LIB_DEFINE(InitLibKernel_1_EventFlag)
@@ -481,6 +491,7 @@ LIB_DEFINE(InitLibKernel_1_Pthread)
LIB_FUNC("6UgtwV+0zb4", LibKernel::PthreadCreate);
LIB_FUNC("3PtV6p3QNX4", LibKernel::PthreadEqual);
LIB_FUNC("onNY9Byn-W8", LibKernel::PthreadJoin);
LIB_FUNC("4qGrR6eoP9Y", LibKernel::PthreadDetach);
LIB_FUNC("How7B8Oet6k", LibKernel::PthreadGetname);
LIB_FUNC("62KCwEMmzcM", LibKernel::PthreadAttrDestroy);
@@ -509,6 +520,7 @@ LIB_DEFINE(InitLibKernel_1_Pthread)
LIB_FUNC("QBi7HCK03hw", LibKernel::KernelClockGettime);
LIB_FUNC("ejekcaNQNq0", LibKernel::KernelGettimeofday);
LIB_FUNC("1j3S3n-tTW4", LibKernel::KernelGetTscFrequency);
LIB_FUNC("4J2sUJmuHZQ", LibKernel::KernelGetProcessTime);
LIB_FUNC("7H0iTOciTLo", LibKernel::pthread_mutex_lock_s);
LIB_FUNC("2Z+PpY6CaJg", LibKernel::pthread_mutex_unlock_s);
@@ -535,6 +547,7 @@ LIB_DEFINE(InitLibKernel_1)
LIB_FUNC("959qrazPIrg", LibKernel::KernelGetProcParam);
LIB_FUNC("p5EcQeEeJAE", LibKernel::KernelRtldSetApplicationHeapAPI);
LIB_FUNC("FxVZqBAA7ks", LibKernel::write);
LIB_FUNC("DRuBt2pvICk", LibKernel::read);
LIB_FUNC("f7KBOafysXo", LibKernel::KernelGetModuleInfoFromAddr);
LIB_FUNC("zE-wXIZjLoM", LibKernel::KernelDebugRaiseExceptionOnReleaseMode);
LIB_FUNC("OMDRKKAZ8I4", LibKernel::KernelDebugRaiseException);
+3
View File
@@ -19,9 +19,12 @@ LIB_DEFINE(InitVideoOut_1)
LIB_FUNC("i6-sR91Wt-4", VideoOut::VideoOutSetBufferAttribute);
LIB_FUNC("CBiu4mCE1DA", VideoOut::VideoOutSetFlipRate);
LIB_FUNC("HXzjK9yI30k", VideoOut::VideoOutAddFlipEvent);
LIB_FUNC("Xru92wHJRmg", VideoOut::VideoOutAddVblankEvent);
LIB_FUNC("w3BY+tAEiQY", VideoOut::VideoOutRegisterBuffers);
LIB_FUNC("U46NwOiJpys", VideoOut::VideoOutSubmitFlip);
LIB_FUNC("SbU3dwp80lQ", VideoOut::VideoOutGetFlipStatus);
LIB_FUNC("1FZBKy8HeNU", VideoOut::VideoOutGetVblankStatus);
LIB_FUNC("MTxxrOCeSig", VideoOut::VideoOutSetWindowModeMargins);
}
} // namespace Kyty::Libs