mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 08:25:30 +03:00
Add title ID in getinfo
This commit is contained in:
parent
be79abd213
commit
d4ddbe9b88
@ -21,11 +21,14 @@ namespace core::kernel {
|
|||||||
{
|
{
|
||||||
switch (GetRegister(UC_ARM64_REG_X1))
|
switch (GetRegister(UC_ARM64_REG_X1))
|
||||||
{
|
{
|
||||||
case 12:
|
case 12: // AddressSpaceBaseAddr
|
||||||
SetRegister(UC_ARM64_REG_X1, BASE_ADDRESS);
|
SetRegister(UC_ARM64_REG_X1, BASE_ADDRESS);
|
||||||
break;
|
break;
|
||||||
|
case 18: // TitleId
|
||||||
|
SetRegister(UC_ARM64_REG_X1, 0); // TODO: Add this
|
||||||
|
break;
|
||||||
default:
|
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;
|
return 0x177202;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Java_gq_cyuubi_lightswitch_MainActivity_stringFromJNI(
|
|||||||
jobject /* this */) {
|
jobject /* this */) {
|
||||||
|
|
||||||
core::cpu::Initialize();
|
core::cpu::Initialize();
|
||||||
core::loader::LoadNro("/sdcard/test.nro");
|
core::loader::LoadNro("/sdcard/lawsofaviation.nro");
|
||||||
core::cpu::Run(BASE_ADDRESS);
|
core::cpu::Run(BASE_ADDRESS);
|
||||||
|
|
||||||
std::string finished = "finished!";
|
std::string finished = "finished!";
|
||||||
|
Loading…
Reference in New Issue
Block a user