mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-14 11:00:41 +00:00
Fix most compiler warnings in the boot and code segments (#674)
* Less warnings in boot & code segments * few more warnings gone * Ran formatter * z_view warning gone * -> 1 * f31 -> 31 * Remove function casts * Few more small improvements * Separate declaration and assignment in func_80091738 and Item_Give Co-authored-by: Thar0 <maximilianc64@gmail.com>
This commit is contained in:
parent
d615ec4f31
commit
f9d96d9f73
208 changed files with 1702 additions and 1846 deletions
|
@ -1,16 +1,15 @@
|
|||
#include "global.h"
|
||||
|
||||
OSTime osGetTime(void) {
|
||||
u32 sp34;
|
||||
u32 sp30;
|
||||
u64 t1;
|
||||
register u32 s0;
|
||||
u32 count;
|
||||
u32 base;
|
||||
u64 t;
|
||||
register u32 prevInt = __osDisableInt();
|
||||
|
||||
s0 = __osDisableInt();
|
||||
sp34 = osGetCount();
|
||||
sp30 = sp34 - __osBaseCounter;
|
||||
t1 = __osCurrentTime;
|
||||
__osRestoreInt(s0);
|
||||
count = osGetCount();
|
||||
base = count - __osBaseCounter;
|
||||
t = __osCurrentTime;
|
||||
__osRestoreInt(prevInt);
|
||||
|
||||
return sp30 + t1;
|
||||
return base + t;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue