mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-05 17:12:14 +02:00
Fix if-clause spacing
This commit is contained in:
parent
ff80503a75
commit
c6d12eaa8d
@ -636,7 +636,7 @@ void package2_patch_kernel(void *_kernel, size_t size, bool is_sd_kernel) {
|
|||||||
size_t free_space_offset = kernel_info->free_code_space_offset;
|
size_t free_space_offset = kernel_info->free_code_space_offset;
|
||||||
size_t free_space_size = ((free_space_offset + 0xFFFULL) & ~0xFFFULL) - free_space_offset;
|
size_t free_space_size = ((free_space_offset + 0xFFFULL) & ~0xFFFULL) - free_space_offset;
|
||||||
for (unsigned int i = 0; i < kernel_info->num_patches; i++) {
|
for (unsigned int i = 0; i < kernel_info->num_patches; i++) {
|
||||||
if(kernel_info->patches[i].patch_offset) {
|
if (kernel_info->patches[i].patch_offset) {
|
||||||
for (unsigned int p = 0; p < kernel_info->patches[i].payload_num_instructions; p++) {
|
for (unsigned int p = 0; p < kernel_info->patches[i].payload_num_instructions; p++) {
|
||||||
*(volatile instruction_t*)(_kernel + kernel_info->patches[i].patch_offset) = kernel_info->patches[i].payload[p];
|
*(volatile instruction_t*)(_kernel + kernel_info->patches[i].patch_offset) = kernel_info->patches[i].payload[p];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user