Skip to content

Commit

Permalink
GameFrameworkNx: Add member variables (#141)
Browse files Browse the repository at this point in the history
* Add member variables for GameFrameworkNx
---------
Co-authored-by: LynxDev2 <[email protected]>
  • Loading branch information
LynxDev2 authored Jul 25, 2024
1 parent d6a6f42 commit 1decfbf
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions include/framework/nx/seadGameFrameworkNx.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
#pragma once

#include <framework/seadGameFramework.h>
#include <gfx/seadFrameBuffer.h>
#include <math/seadVector.h>
#include <nvn/nvn.h>
#include <thread/seadThread.h>

namespace sead
{
class DisplayBufferNvn;
namespace nn
{
namespace mem
{
class StandardAllocator;
}
namespace vi
{
class Layer;
}
} // namespace nn

class GameFrameworkNx : public GameFramework
{
SEAD_RTTI_OVERRIDE(GameFrameworkNx, GameFramework)
public:
struct CreateArg;
struct CreateArg
{
s32 mVBlankWaitInterval;
char _8[68];
};

static_assert(sizeof(CreateArg) == 0x48);

GameFrameworkNx(const CreateArg&);
~GameFrameworkNx() override;
Expand Down Expand Up @@ -42,7 +62,21 @@ class GameFrameworkNx : public GameFramework
float calcFps();
void setCaption(const SafeString&);

// missing member variables
private:
CreateArg mCreateArg;
char _E8[8];
u64 mSystemTick;
FrameBuffer* mMethodFrameBuffer;
LogicalFrameBuffer mMethodLogicalFrameBuffer;
char _120[8];
DisplayBufferNvn* mDisplayBuffer;
char _130[72];
nn::mem::StandardAllocator* mGraphicsDevToolsAllocator;
char _180[40];
nn::vi::Layer* mDisplay;
char _1B0[96];
};

static_assert(sizeof(GameFrameworkNx) == 0x210);

} // namespace sead

0 comments on commit 1decfbf

Please sign in to comment.