initial commit

This commit is contained in:
KazushiM
2021-07-05 17:02:51 +08:00
commit 586c36d6f2
32 changed files with 2175 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
;Don't apply all cheats automatically
[atmosphere]
dmnt_cheats_enabled_by_default = u8!0x0
;Fan Control for Mariko
[tc]
tskin_rate_table_console = str!"[[-1000000, 40000, 0, 0], [36000, 43000, 51, 51], [43000, 50000, 51, 153], [50000, 56000, 153, 255], [56000, 1000000, 255, 255]]"
tskin_rate_table_handheld = str!"[[-1000000, 40000, 0, 0], [36000, 43000, 51, 51], [43000, 48000, 51, 102], [48000, 56000, 102, 204], [56000, 1000000, 255, 255], [48000, 1000000, 255, 255]]"
holdable_tskin = u32!0xDAC0
;Game Recording FPS and Bitrate
[am.debug]
;30 or 60
continuous_recording_fps=u32!60
;~7.5Mbps, default is ~5Mbps, VBR(Variable Bitrate)
continuous_recording_video_bit_rate=u32!0x780000
;Disable services for power saving in standby mode
;Delete following part if you use Nintendo Online Services
[bgtc]
enable_halfawake = u32!0x0
minimum_interval_normal = u32!0x7FFFFFFF
minimum_interval_save = u32!0x7FFFFFFF
battery_threshold_save = u32!0x64
battery_threshold_stop = u32!0x0
[npns]
background_processing = u8!0x0
sleep_periodic_interval = u32!0x7FFFFFFF
sleep_processing_timeout = u32!0x0
sleep_max_try_count = u32!0x0
[ns.notification]
enable_download_task_list = u8!0x0
enable_download_ticket = u8!0x0
enable_network_update = u8!0x0
enable_random_wait = u8!0x0
enable_request_on_cold_boot = u8!0x0
enable_send_rights_usage_status_request = u8!0x0
enable_sync_elicense_request = u8!0x0
enable_version_list = u8!0x0
retry_interval_min = u32!0x7FFFFFFF
retry_interval_max = u32!0x7FFFFFFF
[ns.rights]
register_na_ids_as_valid_accounts_forcibly_even_if_not_exist = u8!0x1
[account]
na_required_for_network_service = u8!0x0
na_license_verification_enabled = u8!0x0
[account.daemon]
background_awaking_periodicity = u32!0x7FFFFFFF
initial_schedule_delay = u32!0x7FFFFFFF
profile_sync_interval = u32!0x7FFFFFFF
na_info_refresh_interval = u32!0x7FFFFFFF
[capsrv]
enable_album_screenshot_filedata_verification = u8!0x0
enable_album_movie_filehash_verification = u8!0x0
enable_album_movie_filesign_verification = u8!0x0
[friends]
background_processing = u8!0x0
[notification.presenter]
snooze_interval_in_seconds = u32!0x7FFFFFFF
connection_retry_count = u32!0x0
alarm_pattern_total_repeat_count = u32!0x0
alarm_pattern_with_vibration_repeat_count = u32!0x0
[prepo]
;background_processing = u8!0x0 (shutdown directly when entering sleep mode)
transmission_interval_min = u32!0x7FFFFFFF
transmission_retry_interval_min = u32!0x7FFFFFFF
transmission_retry_interval_max = u32!0x7FFFFFFF
transmission_interval_in_sleep = u32!0x7FFFFFFF
statistics_save_interval_min = u32!0x7FFFFFFF
statistics_post_interval = u32!0x7FFFFFFF
save_system_report = u8!0x0
[olsc]
default_auto_upload_global_setting = u8!0x0
default_auto_download_global_setting = u8!0x0
autonomy_registration_interval_seconds = u32!0x7FFFFFFF
network_service_license_info_cache_expiration_seconds = u32!0x7FFFFFFF
postponed_transfer_task_processing_interval_seconds = u32!0x7FFFFFFF
retry_offset_seconds = u32!0x7FFFFFFF
network_trouble_detection_span_seconds = u32!0x7FFFFFFF
network_connection_polling_interval_seconds = u32!0x7FFFFFFF
is_save_data_backup_policy_check_required = u8!0x0
is_global_transfer_task_autonomy_registration_enabled = u8!0x0
is_on_event_transfer_task_registration_enabled = u8!0x0
is_periodic_transfer_task_registration_enabled = u8!0x0
[ntc]
is_autonomic_correction_enabled = u8!0x0
autonomic_correction_interval_seconds = u32!0x7FFFFFFF
autonomic_correction_failed_retry_interval_seconds = u32!0x7FFFFFFF
autonomic_correction_immediate_try_count_max = u32!0x0
autonomic_correction_immediate_try_interval_milliseconds = u32!0x7FFFFFFF
[systemupdate]
bgnup_retry_seconds = u32!0x7FFFFFFF

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

View File

149
SdOut/patcher.te Normal file
View File

@@ -0,0 +1,149 @@
pcvModulePath = "bis:/Contents/registered/875acbb5a5b6526159ac68a3c91884c7.nca/00"
OldBackupPath = "sd:/atmosphere/oc_patches/12-patch.bak"
BackupPath = "sd:/atmosphere/oc_patches/pcv-backup"
PatchPath = "sd:/atmosphere/oc_patches/pcv-module"
POWER = 0x8
pauseexit = {
println("Press any button to exit.\n")
pause()
exit()
}
pausecont = {
println("Press A/POWER button to continue.")
println("Press any other button to exit.")
if ( ! ( pause() & POWER ) ) {
exit()
}
}
header = {
println("\n-- Switch OC Suite Patcher --\n\n")
println(" OC Suite is provided 'as is' without warranty of any kind,\n USE AT YOUR OWN RISKS!")
println(" If you don't have Joy-Cons connected or are using Switch Lite,")
println(" Press VOL+/- to navigate and POWER button to confirm.\n")
}
header()
if (_EMU) {
menuOptions = ["Exit", "Mount EmuMMC", "Mount SysMMC"]
}
else() {
menuOptions = ["Exit", "Mount SysMMC"]
}
res = menu(menuOptions, 0)
clearscreen()
if ( res == 0 ) {
exit()
}
if ( res == 1 && _EMU ) {
println("EmuMMC is selected!")
wait(1000)
if ( mmcConnect("EMUMMC") ) {
println("An error occured during mmc connect!")
pauseexit()
}
}
if ( res == 2 || ( res == 1 && ! _EMU ) ) {
println("SysMMC is selected!")
wait(1000)
if ( mmcConnect("SYSMMC") ) {
println("An error occured during mmc connect!")
pauseexit()
}
}
println("Mounting SYSTEM Partition and Checking...")
if ( mmcMount("SYSTEM") ) {
println("An error occured during SYSTEM mount!")
pauseexit()
}
if ( ! fileExists(pcvModulePath) ) {
println("You're NOT using targeted Horizon OS version!")
println("Targeted version: 12.0.x\n")
pauseexit()
}
if ( fileExists(OldBackupPath) ) {
println("Old Backup found! Renaming...")
if ( fileMove(OldBackupPath, BackupPath) ) {
println("An error occured during renaming backup!")
pauseexit()
}
}
clearscreen()
header()
menuOptions = ["Exit", "Dump PCV Module Backup", "Apply Patched PCV Module", "Restore PCV Module Backup"]
res = menu(menuOptions, 0)
clearscreen()
if ( res == 0 ) {
exit()
}
if ( res == 1 ) {
if ( fileExists(BackupPath) ) {
color("RED")
println("You have the backup already. Do you want to DELETE it and redump?")
println("Make sure you DO NOT have the patched one in the MMC!")
color("WHITE")
wait(3000)
pausecont()
if ( fileDel(BackupPath) ) {
println("An error occured during removing old backup!")
pauseexit()
}
}
println("Dumping...")
if ( fileCopy(pcvModulePath, BackupPath) ) {
println("An error occured during dumping!")
pauseexit()
}
println("Done! ")
pauseexit()
}
if ( res == 2 ) {
if ( ! fileExists(PatchPath) ) {
color("RED")
println("Patched PCV Module NOT FOUND!")
println("Make sure you have followed the instructions in README.")
color("WHITE")
pauseexit()
}
println("Applying Patched PCV Module...")
if ( fileDel(pcvModulePath) && fileCopy(PatchPath, pcvModulePath) ) {
println("An error occured!")
pauseexit()
}
println("Done! ")
pauseexit()
}
if ( res == 3 ) {
if ( ! fileExists(BackupPath) ) {
println("PCV Module Backup NOT FOUND!")
pauseexit()
}
println("Restoring PCV Module...")
if ( fileDel(pcvModulePath) && fileCopy(BackupPath, pcvModulePath) ) {
println("An error occured!")
pauseexit()
}
println("Done! ")
pauseexit()
}

Binary file not shown.

Binary file not shown.

Binary file not shown.