mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
update to latest vita-headers
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package photoimport
|
||||
|
||||
import "core:c"
|
||||
import sce "../common"
|
||||
import sceClib "../Clib"
|
||||
import sceCommonDialog "../CommonDialog"
|
||||
|
||||
foreign import photoimport "system:SceCommonDialog_stub"
|
||||
|
||||
scePhotoImportDialogParamInit :: #force_inline proc(param: ^ScePhotoImportDialogParam) {
|
||||
sceClib.sceClibMemset(param, 0x0, size_of(ScePhotoImportDialogParam))
|
||||
sceCommonDialog._sceCommonDialogSetMagicNumber(¶m.commonParam)
|
||||
param.sdkVersion = sce.PSP2_SDK_VERSION
|
||||
}
|
||||
|
||||
foreign photoimport {
|
||||
scePhotoImportDialogInit :: proc(param: ^ScePhotoImportDialogParam) -> c.int ---
|
||||
scePhotoImportDialogTerm :: proc() -> c.int ---
|
||||
scePhotoImportDialogGetResult :: proc(result: ^ScePhotoImportDialogResult) -> c.int ---
|
||||
scePhotoImportDialogGetStatus :: proc() -> c.int ---
|
||||
scePhotoImportDialogAbort :: proc() -> c.int ---
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package photoimport
|
||||
|
||||
import "core:c"
|
||||
import sce "../common"
|
||||
|
||||
ScePhotoImportDialogImportInfo :: struct {
|
||||
path: [0x400]c.char,
|
||||
unk_0x400: [0x100]c.char,
|
||||
unk_0x500: [0x20]sce.UInt8,
|
||||
unk_0x520: c.int,
|
||||
unk_0x524: c.int,
|
||||
unk_0x528: c.int,
|
||||
unk_0x52C: c.int,
|
||||
}
|
||||
#assert(size_of(ScePhotoImportDialogImportInfo) == 0x530) // not sure for size.
|
||||
|
||||
ScePhotoImportDialogParam :: struct {
|
||||
sdkVersion: sce.UInt32,
|
||||
commonParam: sce.CommonDialogParam,
|
||||
unk_0x50: sce.UInt32, // should be 0
|
||||
unk_0x54: sce.UInt32, // should be `(unk_0x54 & 7) != 0 && (unk_0x54 & ~7) == 0`
|
||||
unk_0x58: sce.UInt32,
|
||||
unk_0x5C: rawptr,
|
||||
unk_0x60: [0x20]sce.UInt8,
|
||||
}
|
||||
#assert(size_of(ScePhotoImportDialogParam) == 0x80)
|
||||
|
||||
ScePhotoImportDialogResult :: struct {
|
||||
result: sce.Int32,
|
||||
unk_0x04: sce.Int32,
|
||||
reserved: [0x20]sce.Char8,
|
||||
}
|
||||
#assert(size_of(ScePhotoImportDialogResult) == 0x28)
|
||||
Reference in New Issue
Block a user