nowrep / vita-shellbat

taiHEN plugin that shows battery percent in statusbar
MIT License
150 stars 11 forks source link

Support 3.70? #17

Open zJoyceLee opened 5 years ago

zJoyceLee commented 5 years ago

Hi, Will this plugin support 3.70? Thanks.

nowrep commented 5 years ago

I don't have 3.70, so not by me. As usual, patches welcome.

saharachintha commented 5 years ago

know a ver for 3.70

Codiak101 commented 3 years ago

I also wanted a 3.70 version and one of the helpers on the Henkaku Discord gave me the offsets:

static void get_functions_retail_369_373()
{
    scePafWidgetSetFontSize = (void*) text_addr + 0x45D2E8;
}

case 0x0703C828: // retail 3.69 SceShell
case 0x2053B5A5: // retail 3.70 SceShell
case 0xF476E785: // retail 3.71 SceShell
case 0x939FFBE9: // retail 3.72 SceShell
case 0x734D476A: // retail 3.73 SceShell
    offsets[0] = 0x183F6C;
    offsets[1] = 0x40E520;
    get_functions_retail_369_373();
    break;

They said it will work on retail 3.69 - 3.73 and I've tested on 3.70 to confirm it works. However I was then given this fork that doesn't specify versions and should work on all versions: https://github.com/Princess-of-Sleeping/vita-shellbat