Formatting

This commit is contained in:
Maschell 2021-09-23 18:34:56 +02:00
parent 235642bab3
commit 73c8cfed10
6 changed files with 24 additions and 26 deletions

View File

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <cstdint>
#ifdef __cplusplus
extern "C" {

View File

@ -11,7 +11,7 @@
#include <coreinit/memorymap.h>
#include <whb/log.h>
#include <malloc.h>
#include <string.h>
#include <cstring>
#include <utils/logger.h>
#include "ElfUtils.h"
#include "gx2sploit.h"

View File

@ -27,6 +27,7 @@
#include "utils.h"
extern void __KERNEL_CODE_START(void);
extern void __KERNEL_CODE_END(void);
void kernel_launch_ios(u32 launch_address, u32 L, u32 C, u32 H) {

View File

@ -35,21 +35,18 @@
void reverse_memcpy(void *dest, const void *src, unsigned int size);
static inline unsigned int disable_mmu(void)
{
static inline unsigned int disable_mmu(void) {
unsigned int control_register = 0;
asm volatile("MRC p15, 0, %0, c1, c0, 0" : "=r" (control_register));
asm volatile("MCR p15, 0, %0, c1, c0, 0" : : "r" (control_register & 0xFFFFEFFA));
return control_register;
}
static inline void restore_mmu(unsigned int control_register)
{
static inline void restore_mmu(unsigned int control_register) {
asm volatile("MCR p15, 0, %0, c1, c0, 0" : : "r" (control_register));
}
static inline void set_domain_register(unsigned int domain_register)
{
static inline void set_domain_register(unsigned int domain_register) {
asm volatile("MCR p15, 0, %0, c3, c0, 0" : : "r" (domain_register));
}

View File

@ -1,5 +1,5 @@
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
#include <coreinit/time.h>
#include <coreinit/foreground.h>
@ -155,7 +155,7 @@ void forceDefaultTitleIDToWiiUMenu() {// Restore the default title id to the nor
void SplashScreen(int32_t durationInMs) {
int32_t screen_buf0_size = 0;
uint32_t screen_buf0_size;
// Init screen and screen buffers
OSScreenInit();