Added scePowerGetTachyonVoltage().

This commit is contained in:
Felix 2013-03-20 19:37:46 +01:00
parent 6802658c28
commit a20a0b1f74
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
html/

View File

@ -2190,4 +2190,22 @@ static u32 _scePowerFreqResume(u32 arg0)
default:
return SCE_ERROR_OK;
}
}
//Subroutine scePower_driver_D7DD9D38 - Address 0x0000414C
s16 scePowerGetCurrentTachyonVoltage(void)
{
if (g_PowerFreq.unk56 == 0) //0x00004158
return g_PowerFreq.unk62; //0x00004164
return g_PowerFreq.tachyonVoltage; //0x0000416C
}
//Subroutine scePower_driver_BADA8332 - Address 0x00004170
s32 scePowerGetTachyonVoltage(u32 *arg0, u32 *arg1)
{
if (arg0 != NULL)
*arg0 = g_PowerFreq.tachyonVoltage;
if (arg1 != NULL)
*arg1 = g_PowerFreq.unk62;
return SCE_ERROR_OK;
}