mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 03:51:48 +01:00
Clean up again
This commit is contained in:
parent
13b1354a00
commit
f10e4463fe
@ -8,7 +8,8 @@
|
||||
|
||||
using namespace core::cpu;
|
||||
namespace core::kernel {
|
||||
static uint32_t OutputDebugString() {
|
||||
static uint32_t OutputDebugString()
|
||||
{
|
||||
std::string debug(GetRegister(UC_ARM64_REG_X1), '\0');
|
||||
memory::Read((void*)debug.data(), GetRegister(UC_ARM64_REG_X0), GetRegister(UC_ARM64_REG_X1));
|
||||
|
||||
@ -16,8 +17,10 @@ namespace core::kernel {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static uint32_t GetInfo() {
|
||||
switch(GetRegister(UC_ARM64_REG_X1)) {
|
||||
static uint32_t GetInfo()
|
||||
{
|
||||
switch (GetRegister(UC_ARM64_REG_X1))
|
||||
{
|
||||
case 12:
|
||||
SetRegister(UC_ARM64_REG_X1, BASE_ADDRESS);
|
||||
break;
|
||||
@ -165,7 +168,7 @@ namespace core::kernel {
|
||||
{
|
||||
std::pair<int, uint32_t(*)()>* result = &(svcTable[svc]);
|
||||
|
||||
if(result->second) {
|
||||
if (result->second) {
|
||||
uint32_t returnCode = result->second();
|
||||
SetRegister(UC_ARM64_REG_W0, returnCode);
|
||||
return returnCode;
|
||||
|
Loading…
Reference in New Issue
Block a user