mirror of
https://github.com/izzy2lost/Ghostship.git
synced 2026-06-19 01:17:03 -07:00
Refresh 8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user