From c42317abb8bf9da4ea833c436a04a2e354d5a390 Mon Sep 17 00:00:00 2001 From: Princess-of-Sleeping <29831892+Princess-of-Sleeping@users.noreply.github.com> Date: Sat, 11 Nov 2023 23:53:56 +0900 Subject: [PATCH] Added yml_template --- yml_template/module_config.yml | 57 +++++++++++++++++++++++++++++++++ yml_template/nid_db_classic.yml | 25 +++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 yml_template/module_config.yml create mode 100644 yml_template/nid_db_classic.yml diff --git a/yml_template/module_config.yml b/yml_template/module_config.yml new file mode 100644 index 0000000..e227569 --- /dev/null +++ b/yml_template/module_config.yml @@ -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 \ No newline at end of file diff --git a/yml_template/nid_db_classic.yml b/yml_template/nid_db_classic.yml new file mode 100644 index 0000000..6f392a5 --- /dev/null +++ b/yml_template/nid_db_classic.yml @@ -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 \ No newline at end of file