Difference between revisions of "Shared Database services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(Created page with " = pl:u (Shared Font Manager) = {| class="wikitable" border="1" |- ! Cmd || Name |- | 0 || RequestLoad |- | 1 || GetLoadState |- | 2 || GetSize |- | 3 || GetSharedMemoryAddres...")
 
Line 5: Line 5:
 
! Cmd || Name
 
! Cmd || Name
 
|-
 
|-
| 0 || RequestLoad
+
| 0 || [[#RequestLoad]]
 
|-
 
|-
| 1 || GetLoadState
+
| 1 || [[#GetLoadState]]
 
|-
 
|-
| 2 || GetSize
+
| 2 || [[#GetSize]]
 
|-
 
|-
| 3 || GetSharedMemoryAddressOffset
+
| 3 || [[#GetSharedMemoryAddressOffset]]
 
|-
 
|-
 
| 4 || GetSharedMemoryNativeHandle
 
| 4 || GetSharedMemoryNativeHandle
 
|-
 
|-
 
| 5 || GetSharedFontInOrderOfPriority
 
| 5 || GetSharedFontInOrderOfPriority
 +
|}
 +
 +
== RequestLoad ==
 +
 +
Takes a [[#SharedFontType]] (uint32)
 +
 +
== GetLoadState ==
 +
 +
Takes a [[#SharedFontType]] (uint32), returns the [[#LoadState]] (uint32).
 +
 +
=== LoadState ===
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Value || Description
 +
|-
 +
| 0x00 || Loading
 +
|-
 +
| 0x01 || Loaded
 +
|}
 +
 +
== GetSize ==
 +
 +
Takes a [[#SharedFontType]] (uint32), returns the Font Size (uint32)
 +
 +
== GetSharedMemoryAddressOffset ==
 +
 +
Takes a [[#SharedFontType]] (uint32), returns the offset (uint32) to the Font Address.
 +
 +
== SharedFontType ==
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Value || Description
 +
|-
 +
| 0x00 || Japan, US and Europe (Standard)
 +
|-
 +
| 0x01 || Chinese Simplified
 +
|-
 +
| 0x02 || Extended Chinese Simplified
 +
|-
 +
| 0x03 || Chinese Traditional
 +
|-
 +
| 0x04 || Korean (Hangul)
 +
|-
 +
| 0x05 || Nintendo Extended
 
|}
 
|}

Revision as of 17:20, 29 December 2017

pl:u (Shared Font Manager)

Cmd Name
0 #RequestLoad
1 #GetLoadState
2 #GetSize
3 #GetSharedMemoryAddressOffset
4 GetSharedMemoryNativeHandle
5 GetSharedFontInOrderOfPriority

RequestLoad

Takes a #SharedFontType (uint32)

GetLoadState

Takes a #SharedFontType (uint32), returns the #LoadState (uint32).

LoadState

Value Description
0x00 Loading
0x01 Loaded

GetSize

Takes a #SharedFontType (uint32), returns the Font Size (uint32)

GetSharedMemoryAddressOffset

Takes a #SharedFontType (uint32), returns the offset (uint32) to the Font Address.

SharedFontType

Value Description
0x00 Japan, US and Europe (Standard)
0x01 Chinese Simplified
0x02 Extended Chinese Simplified
0x03 Chinese Traditional
0x04 Korean (Hangul)
0x05 Nintendo Extended