mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-15 11:30:30 +00:00
Format all src C files
This commit is contained in:
parent
251aea64ab
commit
8cfe7cce9f
652 changed files with 12488 additions and 19093 deletions
|
@ -3,8 +3,7 @@
|
|||
|
||||
OSPiHandle __DriveRomHandle;
|
||||
|
||||
OSPiHandle* osDriveRomInit()
|
||||
{
|
||||
OSPiHandle* osDriveRomInit() {
|
||||
register s32 status;
|
||||
register u32 a;
|
||||
register s32 prevInt;
|
||||
|
@ -12,8 +11,7 @@ OSPiHandle* osDriveRomInit()
|
|||
|
||||
__osPiGetAccess();
|
||||
|
||||
if (!D_8000AC70)
|
||||
{
|
||||
if (!D_8000AC70) {
|
||||
__osPiRelAccess();
|
||||
return &__DriveRomHandle;
|
||||
}
|
||||
|
@ -25,8 +23,9 @@ OSPiHandle* osDriveRomInit()
|
|||
__DriveRomHandle.speed = 0;
|
||||
bzero(&__DriveRomHandle.transferInfo, sizeof(__OSTranxInfo));
|
||||
|
||||
while (status = HW_REG(PI_STATUS_REG, u32), status & PI_STATUS_ERROR)
|
||||
while (status = HW_REG(PI_STATUS_REG, u32), status & PI_STATUS_ERROR) {
|
||||
;
|
||||
}
|
||||
|
||||
HW_REG(PI_BSD_DOM1_LAT_REG, u32) = 0xff;
|
||||
HW_REG(PI_BSD_DOM1_PGS_REG, u32) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue