Add title ID in getinfo

This commit is contained in:
Starlet Leonhart 2019-07-02 17:55:31 -04:00
parent be79abd213
commit d4ddbe9b88
2 changed files with 6 additions and 3 deletions

View File

@ -21,11 +21,14 @@ namespace core::kernel {
{
switch (GetRegister(UC_ARM64_REG_X1))
{
case 12:
case 12: // AddressSpaceBaseAddr
SetRegister(UC_ARM64_REG_X1, BASE_ADDRESS);
break;
case 18: // TitleId
SetRegister(UC_ARM64_REG_X1, 0); // TODO: Add this
break;
default:
syslog(LOG_ERR, "Unimplemented GetInfo id id1=%i,id2=%i", GetRegister(UC_ARM64_REG_X1), GetRegister(UC_ARM64_REG_X3));
syslog(LOG_ERR, "Unimplemented GetInfo ID! ID1 = %i, ID2 = %i", GetRegister(UC_ARM64_REG_X1), GetRegister(UC_ARM64_REG_X3));
return 0x177202;
}

View File

@ -11,7 +11,7 @@ Java_gq_cyuubi_lightswitch_MainActivity_stringFromJNI(
jobject /* this */) {
core::cpu::Initialize();
core::loader::LoadNro("/sdcard/test.nro");
core::loader::LoadNro("/sdcard/lawsofaviation.nro");
core::cpu::Run(BASE_ADDRESS);
std::string finished = "finished!";