[boot]
clear hex_sum_cache
hex_file '/atmosphere/kips/loader.kip'

json_file './json/dram.json'
set-ini-val './config.ini' '*时序状态' footer {json_file(0,{hex_file(CUST,64,1)})}

json_file './json/vdd2.json'
set-ini-val './config.ini' '*Vdd2电压' footer {json_file(0,{hex_file(CUST,68,3)})}

json_file './json/max_clocks.json'
set-ini-val './config.ini' '*加载时频率?CPU' footer {json_file(0,{hex_file(CUST,8,3)})}

json_file './json/numbers.json'
set-ini-val './config.ini' '降压模式?CPU' index {json_file(0,{hex_file(CUST,12,1)})}

json_file './json/voltage_offset_index.json'
set-ini-val './config.ini' '电压偏移' index {json_file(0,{hex_file(CUST,44,1)})}


exec cUpdateTimings

mariko:
exec cMariko_boot

erista:
exec cErista_boot


[cUpdateTimings]
hex_file '/atmosphere/kips/loader.kip'
json_file './json/numbers.json'
set-ini-val './config.ini' '*时序' footer '({json_file(0,{hex_file(CUST,88,1)})}-{json_file(0,{hex_file(CUST,92,1)})}-{json_file(0,{hex_file(CUST,96,1)})}) {json_file(0,{hex_file(CUST,100,1)})}-{json_file(0,{hex_file(CUST,104,1)})}-{json_file(0,{hex_file(CUST,108,1)})}-{json_file(0,{hex_file(CUST,112,1)})}-{json_file(0,{hex_file(CUST,116,1)})}'



[cTimings]
hex_file '/atmosphere/kips/loader.kip'
json_file './json/numbers.json'
set-ini-val './config.ini' 'T1 tRCD' index {json_file(0,{hex_file(CUST,88,1)})}
set-ini-val './config.ini' 'T2 tRP' index {json_file(0,{hex_file(CUST,92,1)})}
set-ini-val './config.ini' 'T3 tRAS' index {json_file(0,{hex_file(CUST,96,1)})}
set-ini-val './config.ini' 'T4 tRRD' index {json_file(0,{hex_file(CUST,100,1)})}
set-ini-val './config.ini' 'T5 tRFC' index {json_file(0,{hex_file(CUST,104,1)})}
set-ini-val './config.ini' 'T6 tRTW' index {json_file(0,{hex_file(CUST,108,1)})}
set-ini-val './config.ini' 'T7 tWTR' index {json_file(0,{hex_file(CUST,112,1)})}
set-ini-val './config.ini' 'T8 tREFI' index {json_file(0,{hex_file(CUST,116,1)})}



[cCutomTable]
hex_file '/atmosphere/kips/loader.kip'
json_file './json/vmin.json'
set-ini-val './config.ini' '*76 - 230 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,132,2)})}
set-ini-val './config.ini' '*307 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,136,2)})}
set-ini-val './config.ini' '*384 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,140,2)})}
set-ini-val './config.ini' '*460 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,144,2)})}
set-ini-val './config.ini' '*537 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,148,2)})}
set-ini-val './config.ini' '*614 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,152,2)})}
set-ini-val './config.ini' '*691 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,156,2)})}
set-ini-val './config.ini' '*768 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,160,2)})}
set-ini-val './config.ini' '*844 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,164,2)})}
set-ini-val './config.ini' '*921 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,168,2)})}
set-ini-val './config.ini' '*998 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,172,2)})}
set-ini-val './config.ini' '*1075 MHz?GPUUV3erista' footer {json_file(0,{hex_file(CUST,176,2)})}
set-ini-val './config.ini' '*1152 MHz?GPUUV3erista' footer {json_file(0,{hex_file(CUST,180,2)})}

mariko:
set-ini-val './config.ini' '*1075 MHz?GPUUV3mariko' footer {json_file(0,{hex_file(CUST,176,2)})}
set-ini-val './config.ini' '*1152 MHz?GPUUV3mariko' footer {json_file(0,{hex_file(CUST,180,2)})}
set-ini-val './config.ini' '*1228 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,184,2)})}
set-ini-val './config.ini' '*1267 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,188,2)})}
set-ini-val './config.ini' '*1305 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,192,2)})}
set-ini-val './config.ini' '*1344 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,196,2)})}
set-ini-val './config.ini' '*1382 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,200,2)})}
set-ini-val './config.ini' '*1420 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,204,2)})}
set-ini-val './config.ini' '*1459 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,208,2)})}
set-ini-val './config.ini' '*1497 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,212,2)})}
set-ini-val './config.ini' '*1536 MHz?GPUUV3' footer {json_file(0,{hex_file(CUST,216,2)})}


[cSystemSettings]
hex_file '/atmosphere/kips/loader.kip'

ini_file '/atmosphere/config/system_settings.ini'
json '[{"null":"On", "u8!0x1":"On", "u8!0x0":"Off"}]'
set-ini-val './config.ini' '性能模式' footer {json(0,{ini_file(am.gpu,gpu_scheduling_enabled)})}

mariko:
json '[{"01":"Off", "00":"On"}]'
set-ini-val './config.ini' '解锁1305 MHz+' footer {json(0,{hex_file(CUST,256,1)})}
json_file './json/cpu_max_freq_index.json'
set-ini-val './config.ini' 'CPU最高频率?mariko' index {json_file(0,{hex_file(CUST,264,1)})}

erista:
json '[{"01":"Off", "00":"On"}]'
set-ini-val './config.ini' '解锁1075 MHz+' footer {json(0,{hex_file(CUST,256,1)})}
json '[{"00":"0ff", "01":"On"}]'
set-ini-val './config.ini' '解锁2295 MHz' footer {json(0,{hex_file(CUST,264,1)})}

[cBackupSystem]
mariko:
json_file './json/max_clocks.json'
ini_file '/atmosphere/kips/.bakTK/Slot 0.ini'
set-ini-val './config.ini' '*备份0' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 1.ini'
set-ini-val './config.ini' '*备份1' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 2.ini'
set-ini-val './config.ini' '*备份2' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 3.ini'
set-ini-val './config.ini' '*备份3' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 4.ini'
set-ini-val './config.ini' '*备份4' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 5.ini'
set-ini-val './config.ini' '*备份5' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 6.ini'
set-ini-val './config.ini' '*备份6' footer '{json_file(0,{ini_file(Backup,ramMHzM)})}'

erista:
hex_file '/atmosphere/kips/loader.kip'
json_file './json/max_clocks.json'
ini_file '/atmosphere/kips/.bakTK/Slot 0.ini'
set-ini-val './config.ini' '*备份0' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 1.ini'
set-ini-val './config.ini' '*备份1' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 2.ini'
set-ini-val './config.ini' '*备份2' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 3.ini'
set-ini-val './config.ini' '*备份3' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 4.ini'
set-ini-val './config.ini' '*备份4' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 5.ini'
set-ini-val './config.ini' '*备份5' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'
ini_file '/atmosphere/kips/.bakTK/Slot 6.ini'
set-ini-val './config.ini' '*备份6' footer '{json_file(0,{ini_file(Backup,ramMHzE)})}'



[backup]
hex_file '/atmosphere/kips/loader.kip'
delete '/atmosphere/kips/.bakTK/tmp.ini' 
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuBoost {hex_file(CUST,8,3)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuUVL {hex_file(CUST,12,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuUVH {hex_file(CUST,252,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuVminE {hex_file(CUST,16,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuVmaxE {hex_file(CUST,20,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuVminL {hex_file(CUST,24,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuVminH {hex_file(CUST,28,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup cpuVmaxM {hex_file(CUST,32,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuUVE {hex_file(CUST,36,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuUVM {hex_file(CUST,40,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuOFF {hex_file(CUST,44,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuVminE {hex_file(CUST,48,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuSpeedo {hex_file(CUST,52,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuVminM {hex_file(CUST,56,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuVmax {hex_file(CUST,60,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup DRAM {hex_file(CUST,64,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup ramVDD2 {hex_file(CUST,68,3)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup ramVDDQ {hex_file(CUST,72,3)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup ramMHzE {hex_file(CUST,76,3)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup ramMHzM {hex_file(CUST,80,3)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup DVB {hex_file(CUST,84,4)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T1 {hex_file(CUST,88,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T2 {hex_file(CUST,92,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T3 {hex_file(CUST,96,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T4 {hex_file(CUST,100,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T5 {hex_file(CUST,104,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T6 {hex_file(CUST,108,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T7 {hex_file(CUST,112,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup T8 {hex_file(CUST,116,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 76UV3 {hex_file(CUST,124,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 153UV3 {hex_file(CUST,128,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 230UV3 {hex_file(CUST,132,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 307UV3 {hex_file(CUST,136,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 384UV3 {hex_file(CUST,140,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 460UV3 {hex_file(CUST,144,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 537UV3 {hex_file(CUST,148,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 614UV3 {hex_file(CUST,152,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 691UV3 {hex_file(CUST,156,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 768UV3 {hex_file(CUST,160,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 844UV3 {hex_file(CUST,164,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 921UV3 {hex_file(CUST,168,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 998UV3 {hex_file(CUST,172,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1075UV3 {hex_file(CUST,176,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1152UV3 {hex_file(CUST,180,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1228UV3 {hex_file(CUST,184,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1267UV3 {hex_file(CUST,188,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1305UV3 {hex_file(CUST,192,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1344UV3 {hex_file(CUST,196,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1382UV3 {hex_file(CUST,200,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1420UV3 {hex_file(CUST,204,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1459UV3 {hex_file(CUST,208,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1497UV3 {hex_file(CUST,212,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1536UV3 {hex_file(CUST,216,2)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup 1305GPU {hex_file(CUST,256,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup CPUUL {hex_file(CUST,264,1)}
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup CPUTABLE {hex_file(CUST,272,1)}
json_file './json/numbers.json'
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup Timings '({json_file(0,{hex_file(CUST,88,1)})}-{json_file(0,{hex_file(CUST,92,1)})}-{json_file(0,{hex_file(CUST,96,1)})}) {json_file(0,{hex_file(CUST,100,1)})}-{json_file(0,{hex_file(CUST,104,1)})}-{json_file(0,{hex_file(CUST,108,1)})}-{json_file(0,{hex_file(CUST,112,1)})}-{json_file(0,{hex_file(CUST,116,1)})}'
ini_file '/config/sys-clk/config.ini'
json_file './json/gpu_dvfs_offset_dec.json'
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuDvfsO {json_file(0,{ini_file(values,gpu_dvfs_offset)})}
json '[{"null":"1", "0":"0", "1":"1", "2":"2"}]'
set-ini-val '/atmosphere/kips/.bakTK/tmp.ini' Backup gpuDvfs {json(0,{ini_file(values,gpu_dvfs)})}

[restore]
ini_file '/atmosphere/kips/.bakTK/tmp.ini'
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 8 {ini_file(Backup,cpuBoost)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 12 {ini_file(Backup,cpuUVL)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 252 {ini_file(Backup,cpuUVH)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 16 {ini_file(Backup,cpuVminE)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 20 {ini_file(Backup,cpuVmaxE)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 24 {ini_file(Backup,cpuVminL)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 28 {ini_file(Backup,cpuVminH)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 32 {ini_file(Backup,cpuVmaxM)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 36 {ini_file(Backup,gpuUVE)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 40 {ini_file(Backup,gpuUVM)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 44 {ini_file(Backup,gpuOFF)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 48 {ini_file(Backup,gpuVminE)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 52 {ini_file(Backup,gpuSpeedo)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 56 {ini_file(Backup,gpuVminM)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 60 {ini_file(Backup,gpuVmax)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 64 {ini_file(Backup,DRAM)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 68 {ini_file(Backup,ramVDD2)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 72 {ini_file(Backup,ramVDDQ)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 76 {ini_file(Backup,ramMHzE)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 80 {ini_file(Backup,ramMHzM)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 84 {ini_file(Backup,DVB)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 88 {ini_file(Backup,T1)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 92 {ini_file(Backup,T2)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 96 {ini_file(Backup,T3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 100 {ini_file(Backup,T4)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 104 {ini_file(Backup,T5)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 108 {ini_file(Backup,T6)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 112 {ini_file(Backup,T7)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 116 {ini_file(Backup,T8)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 124 {ini_file(Backup,76UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 128 {ini_file(Backup,153UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 132 {ini_file(Backup,230UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 136 {ini_file(Backup,307UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 140 {ini_file(Backup,384UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 144 {ini_file(Backup,460UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 148 {ini_file(Backup,537UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 152 {ini_file(Backup,614UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 156 {ini_file(Backup,691UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 160 {ini_file(Backup,768UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 164 {ini_file(Backup,844UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 168 {ini_file(Backup,921UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 172 {ini_file(Backup,998UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 176 {ini_file(Backup,1075UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 180 {ini_file(Backup,1152UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 184 {ini_file(Backup,1228UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 188 {ini_file(Backup,1267UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 192 {ini_file(Backup,1305UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 196 {ini_file(Backup,1344UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 200 {ini_file(Backup,1382UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 204 {ini_file(Backup,1420UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 208 {ini_file(Backup,1459UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 212 {ini_file(Backup,1497UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 216 {ini_file(Backup,1536UV3)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 256 {ini_file(Backup,1305GPU)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 264 {ini_file(Backup,CPUUL)}
hex-by-custom-offset /atmosphere/kips/loader.kip CUST 272 {ini_file(Backup,CPUTABLE)}
json_file './json/gpu_dvfs_offset_dec.json'
set-ini-val /config/sys-clk/config.ini values gpu_dvfs_offset {json_file(0,{ini_file(Backup,gpuDvfsO)})}
json '[{"null":"2", "0":"0", "1":"1", "2":"2"}]'
set-ini-val /config/sys-clk/config.ini values gpu_dvfs {json(0,{ini_file(Backup,gpuDvfs)})}

[cMariko_boot]
hex_file '/atmosphere/kips/loader.kip'

json_file './json/max_clocks.json'
set-ini-val './config.ini' '*最高频率?RAMmariko' footer {json_file(0,{hex_file(CUST,80,3)})}

json_file './json/cpu_max_freq_index.json'
set-ini-val './config.ini' 'CPU最高频率?mariko' index {json_file(0,{hex_file(CUST,264,1)})}

json_file './json/vddq.json'
set-ini-val './config.ini' '*Vddq电压' footer {json_file(0,{hex_file(CUST,72,3)})}

json_file './json/ram_dvb_index.json'
set-ini-val './config.ini' 'DVB电压表?mariko' index {json_file(0,{hex_file(CUST,84,1)})}

json_file './json/numbers.json'
set-ini-val './config.ini' '高频降压?CPU' index {json_file(0,{hex_file(CUST,252,1)})}
set-ini-val './config.ini' '降压模式?GPUmariko' index {json_file(0,{hex_file(CUST,40,1)})}

json_file './json/cpu_table.json'
set-ini-val './config.ini' '*CPU电表模式?CPUmariko' footer {json_file(0,{hex_file(CUST,272,1)})}

json_file './json/mv.json'
set-ini-val './config.ini' '*高频最低电压?CPUmariko' footer {json_file(0,{hex_file(CUST,28,2)})}
set-ini-val './config.ini' '*低频最低电压?CPUmariko' footer {json_file(0,{hex_file(CUST,24,2)})}

json_file './json/voltage_limit.json'
set-ini-val './config.ini' '*最高电压?CPUmariko' footer {json_file(0,{hex_file(CUST,32,2)})}

json_file './json/vmin.json'
set-ini-val './config.ini' '*最小电压?GPUmariko' footer {json_file(0,{hex_file(CUST,56,2)})}
set-ini-val './config.ini' '*最大电压?GPU' footer {json_file(0,{hex_file(CUST,60,2)})}

ini_file '/config/sys-clk/config.ini'
json '[{"null":"1", "0":"0", "1":"1", "2":"2"}]'
set-ini-val './config.ini' '频率-电压模式' index {json(0,{ini_file(values,gpu_dvfs)})}

json_file './json/gpu_dvfs_offset_index.json'
set-ini-val './config.ini' 'DVFS Offset?GPUmariko' index {json_file(0,{ini_file(values,gpu_dvfs_offset)})}


[cErista_boot]
hex_file '/atmosphere/kips/loader.kip'

json_file './json/max_clocks.json'
set-ini-val './config.ini' '*最高频率?RAMerista' footer {json_file(0,{hex_file(CUST,76,3)})}

json_file './json/numbers.json'
set-ini-val './config.ini' 'DVB电压表?erista' index {json_file(0,{hex_file(CUST,84,1)})}
set-ini-val './config.ini' '降压模式?GPUerista' index {json_file(0,{hex_file(CUST,36,1)})}

json_file './json/mv.json'
set-ini-val './config.ini' '*最小电压?GPUerista' footer {json_file(0,{hex_file(CUST,48,2)})}
set-ini-val './config.ini' '*最低电压?CPUerista' footer {json_file(0,{hex_file(CUST,16,2)})}

json_file './json/voltage_limit.json'
set-ini-val './config.ini' '*最高电压?CPUerista' footer {json_file(0,{hex_file(CUST,20,2)})}



