Skip to content

Commit

Permalink
PR:suggestions and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LynxDev2 committed Jul 25, 2024
1 parent 86bcd2f commit 4d98f33
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions include/framework/nx/seadGameFrameworkNx.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <framework/seadGameFramework.h>
#include <gfx/seadFrameBuffer.h>
#include <math/seadVector.h>
#include <nvn/nvn.h>
#include <thread/seadThread.h>
Expand All @@ -26,7 +27,11 @@ class GameFrameworkNx : public GameFramework
{
SEAD_RTTI_OVERRIDE(GameFrameworkNx, GameFramework)
public:
struct CreateArg;
struct CreateArg
{
s32 mVBlankWaitInterval;
char _8[68];
};

GameFrameworkNx(const CreateArg&);
~GameFrameworkNx() override;
Expand Down Expand Up @@ -58,20 +63,21 @@ class GameFrameworkNx : public GameFramework
void setCaption(const SafeString&);

private:
int mVBlankWaitInterval;
int padding;
void* filler[10];
CreateArg mCreateArg;
char _E8[8];
u64 mSystemTick;
FrameBuffer* mMethodFrameBuffer;
FrameBuffer* mMethodLogicalFrameBuffer;
void* filler2[4];
LogicalFrameBuffer mMethodLogicalFrameBuffer;
char _120[8];
DisplayBufferNvn* mDisplayBuffer;
void* filler3[9];
char _130[72];
nn::mem::StandardAllocator* mGraphicsDevToolsAllocator;
void* filler4[5];
char _180[40];
nn::vi::Layer* mDisplay;
void* filler5[14];
char _1B0[96];
};

static_assert(sizeof(sead::GameFrameworkNx) == 0x220, "GameFrameworkNx size");
static_assert(sizeof(sead::GameFrameworkNx) == 0x210, "GameFrameworkNx size");
static_assert(sizeof(sead::GameFrameworkNx::CreateArg) == 0x48, "GameFrameworkNx::CreateArg size");

} // namespace sead

0 comments on commit 4d98f33

Please sign in to comment.