Refresh 8

This commit is contained in:
n64
2020-04-03 14:57:26 -04:00
parent 88e2433da5
commit 4d54e2f91a
279 changed files with 6522 additions and 7273 deletions
+6
View File
@@ -2,9 +2,14 @@
#include "osContInternal.h"
#include <macros.h>
#ifndef AVOID_UB
OSContPackedStruct D_80365CE0[7];
UNUSED static u32 unused; // padding between these two variables
u32 D_80365D1C;
#else
// Reordered gcc vars above will disturb the aliasing done to access all 8 members of this array, hence AVOID_UB.
OSContPackedStruct D_80365CE0[8];
#endif
extern u8 D_80365D20;
extern u8 _osCont_numControllers;
@@ -52,6 +57,7 @@ void __osPackReadData() {
for (i = 0; i < 0x10; i++) {
*((u32 *) &D_80365CE0 + i) = 0;
}
D_80365D1C = 1;
sp4.unk00 = 255;
sp4.unk01 = 1;