const pointers and small fixes

This commit is contained in:
2024-05-13 19:02:17 +02:00
parent 205e9a4c64
commit a9e16380ba
14 changed files with 120 additions and 126 deletions
+6 -6
View File
@@ -8,27 +8,27 @@ import sceCommonDialog "../CommonDialog"
foreign import ime "system:SceIme_stub"
sceImeDialogParamInit :: #force_inline proc(param: ^SceImeDialogParam) {
sceClib.Memset(param, 0x0, size_of(SceImeDialogParam))
sceClib.sceClibMemset(param, 0x0, size_of(SceImeDialogParam))
sceCommonDialog._sceCommonDialogSetMagicNumber(&param.commonParam)
param.sdkVersion = sce.PSP2_SDK_VERSION
}
sceImeParamInit :: #force_inline proc(param: ^SceImeParam) {
sceClib.Memset(param, 0x0, size_of(SceImeParam))
sceClib.sceClibMemset(param, 0x0, size_of(SceImeParam))
param.sdkVersion = sce.PSP2_SDK_VERSION
}
foreign ime {
sceImeDialogInit :: proc(param: ^SceImeDialogParam) -> sce.Int32 ---
sceImeDialogInit :: proc(#by_ptr param: SceImeDialogParam) -> sce.Int32 ---
sceImeDialogGetStatus :: proc() -> sceCommonDialog.SceCommonDialogStatus ---
sceImeDialogAbort :: proc() -> sce.Int32 ---
sceImeDialogGetResult :: proc(result: ^SceImeDialogResult) -> sce.Int32 ---
sceImeDialogTerm :: proc() -> sce.Int32 ---
sceImeOpen :: proc(param: ^SceImeParam) -> sce.Int32 ---
sceImeOpen :: proc(#by_ptr param: SceImeParam) -> sce.Int32 ---
sceImeUpdate :: proc() -> sce.Int32 ---
sceImeSetText :: proc(text: [^]sce.WChar16, length: sce.UInt32) -> sce.Int32 ---
sceImeSetCaret :: proc(caret: ^SceImeCaret) -> sce.Int32 ---
sceImeSetPreeditGeometry :: proc(preedit: ^SceImePreeditGeometry) -> sce.Int32 ---
sceImeSetCaret :: proc(#by_ptr caret: SceImeCaret) -> sce.Int32 ---
sceImeSetPreeditGeometry :: proc(#by_ptr preedit: SceImePreeditGeometry) -> sce.Int32 ---
sceImeClose :: proc() -> sce.Int32 ---
}