Skip to content

Commit a977947

Browse files
committed
Update global.h
Removed unnecessary uses of __attribute__((__packed__))
1 parent 16b78fc commit a977947

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ttyd-tools/rel/include/global.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ struct Menus
349349
TotalMenuColumns = 1;
350350
ColumnSplitAmount = 1;
351351
}
352-
} __attribute__((__packed__));
352+
};
353353

354354
struct Cheats
355355
{
@@ -360,44 +360,44 @@ struct Cheats
360360
{
361361
Active = true;
362362
}
363-
} __attribute__((__packed__));
363+
};
364364

365365
struct AutoIncrement
366366
{
367367
uint16_t WaitFramesToBeginIncrement;
368368
uint16_t WaitFramesToPerformIncrement;
369-
} __attribute__((__packed__));
369+
};
370370

371371
struct CheatsHandleDisplayButtons
372372
{
373373
uint8_t CheatsBButtonCounter;
374374
uint8_t CheatsPreviousButtonsHeld[14]; // Extra spot for a 0 at the end of the array
375375
uint8_t CheatsCurrentButtonsHeld[14]; // Extra spot for a 0 at the end of the array
376-
} __attribute__((__packed__));
376+
};
377377

378378
struct MarioPartnerPositionsStruct
379379
{
380380
float MarioPosition[4];
381381
float PartnerPosition[4];
382-
} __attribute__((__packed__));
382+
};
383383

384384
struct SaveAnywhereStruct
385385
{
386386
uint32_t ThreadID;
387387
bool ScriptIsRunning;
388-
} __attribute__((__packed__));
388+
};
389389

390390
struct ReloadRoomStruct
391391
{
392392
char NewBero[32]; // 31 bytes for NextBero, 1 byte for NULL
393393
char NewMap[9]; // 8 bytes for NextMap, 1 byte for NULL
394-
} __attribute__((__packed__));
394+
};
395395

396396
struct SpawnItems
397397
{
398398
uint16_t SpawnItemCounter;
399399
bool InAdjustableValueMenu;
400-
} __attribute__((__packed__));
400+
};
401401

402402
struct TrickDisplay
403403
{
@@ -410,7 +410,7 @@ struct TrickDisplay
410410
{
411411
TimerStopped = true;
412412
}
413-
} __attribute__((__packed__));
413+
};
414414

415415
struct OnScreenTimerDisplay
416416
{
@@ -422,7 +422,7 @@ struct OnScreenTimerDisplay
422422
{
423423
TimerPaused = true;
424424
}
425-
} __attribute__((__packed__));
425+
};
426426

427427
extern Menus Menu[20];
428428
extern Cheats Cheat[17];

0 commit comments

Comments
 (0)