ScePaf: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
Line 57: Line 57:


<source lang="C">const char *scePafWidgetTypeButton(void);</source>
<source lang="C">const char *scePafWidgetTypeButton(void);</source>
=== scePafWidgetSetFontSize ===
{| class="wikitable"
|-
! Version !! NID
|-
| 3.60 || 0x39B15B98
|}
<source lang="C">
int scePafWidgetSetFontSize(void *pWidget, float size, int unk, SceSize pos, SceSize len);
Example of use
// Set the font size of the entire text
scePafWidgetSetFontSize(p_widget, 22.0f, 1, 0, 0);
// When changing the font size only for the 7th character from the 4th character of the text
scePafWidgetSetFontSize(p_widget, 22.0f, 1, 4, 3);
</source>


[[Category:Modules]]
[[Category:Modules]]
[[Category:Userland]]
[[Category:Userland]]

Revision as of 09:52, 20 April 2020

Module

ScePaf is a C++ runtime.

Quick note on reversing. This module has many vtables that point to exported functions.

It would be great to start from marking which function belongs to which vtable.

This way we can restore initial class structure.

Known NIDs

Version Name World Privilege NID
1.69 ScePaf Non-secure User 0x614CFD65
3.60 ScePaf Non-secure User 0xCD679177

Libraries

Known NIDs

Version Name World Visibility NID
3.60 ScePafLowlayer Non-secure User 0x2342266A
3.60 ScePafStdc Non-secure User 0xA7D28DAE
3.60 ScePafMisc Non-secure User 0x3D643CE8
3.60 ScePafCommon Non-secure User 0x3C1965CD
3.60 ScePafGraphics Non-secure User 0xA070D6A7
3.60 ScePafThread Non-secure User 0x54276D19
3.60 ScePafResource Non-secure User 0x2836DC9B
3.60 ScePafToplevel Non-secure User 0x4D9A9DD0
3.60 ScePafWidget Non-secure User 0x073F8C68

ScePafWidget

scePafWidgetTypeButton

Version NID
3.60 0xB773464D
const char *scePafWidgetTypeButton(void);

scePafWidgetSetFontSize

Version NID
3.60 0x39B15B98
int scePafWidgetSetFontSize(void *pWidget, float size, int unk, SceSize pos, SceSize len);

Example of use

// Set the font size of the entire text
scePafWidgetSetFontSize(p_widget, 22.0f, 1, 0, 0);

// When changing the font size only for the 7th character from the 4th character of the text
scePafWidgetSetFontSize(p_widget, 22.0f, 1, 4, 3);