Skip to content

Commit

Permalink
Added yml_template
Browse files Browse the repository at this point in the history
  • Loading branch information
Princess-of-Sleeping committed Nov 11, 2023
1 parent fb4b4a8 commit c42317a
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
57 changes: 57 additions & 0 deletions yml_template/module_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# top key is will be module name
# Can be up to 27 characters
SceSomethingModule:
# module attributes
# 0: none
# 1: module can't stop
# 2: module exclusive load
# 4: module exclusive start
attributes: 0
# process_image key
# true: embed process_param in the module.
# false: don't embed process_param in the module.
# This is required only for process_image (eboot.bin)
process_image: false
# imagemodule kay
# true: allow no code module
# false: disallow no code module
imagemodule: false
# version key
# Normally this should remain 1.1 and does not need to be changed.
version:
major: 1
minor: 1
# nid key unused in toolchain?
nid: 0
# main key
# syslib entries
main:
# start key
# module entry for called by sceKernelStartModule function.
start: module_start
# stop key
# module entry for called by sceKernelStopModule function.
stop: module_stop
# bootstart key
# module entry for called by kernel bootloader.
# Therefore setting this entry in a regular module has no effect.
bootstart: module_bootstart
# exit key
# module entry for unknown.
exit: module_exit
# libraries key
# define to library exports
libraries:
# ${library name} key
# Can be up to 255 characters
SceSomething:
# syscall key
# The kernel module is used to expose exports to users.
# If true, other kernel modules cannot import this library.
syscall: false
# version key
version: 1
functions:
- something_function
variables:
- something_variable
25 changes: 25 additions & 0 deletions yml_template/nid_db_classic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
firmware: 3.60
modules:
SceSomethingModule:
# nid has been deprecated. Please use the "fingerprint" key instead.
nid: 0xDEADBEEF
fingerprint: 0xDEADBEEF
libraries:
SceLibSomething:
# kernel key
# true: stub name will be the library name
# false: stub name will be the module name
kernel: false
# stubname key : Specify stubname directly.
# The version key is available from nid_db_classic_v3.
stubname: SceSomething
nid: 0x12345678
# library's version.
# The version key is available from nid_db_classic_v2.
version: 1
functions:
sceSomethingGetState: 0x9ABCDEF0
sceSomethingSetState: 0x1A2B3C4D
variables:
sceSomethingState: 0x9ABCDEF0

0 comments on commit c42317a

Please sign in to comment.