Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlrd2 #3334

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
13 changes: 13 additions & 0 deletions game/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ set(RUNTIME_SOURCE
overlord/jak2/streamlfo.cpp
overlord/jak2/streamlist.cpp
overlord/jak2/vag.cpp
overlord/jak3/start.cpp
overlord/jak3/iso_api.cpp
overlord/jak3/iso_fake.cpp
overlord/jak3/iso_queue.cpp
overlord/jak3/iso.cpp
overlord/jak3/overlord.cpp
overlord/jak3/pagemanager.cpp
overlord/jak3/ramdisk.cpp
overlord/jak3/sbank.cpp
overlord/jak3/srpc.cpp
overlord/jak3/ssound.cpp
overlord/jak3/stream.cpp
overlord/jak3/vblank_handler.cpp
runtime.cpp
sce/deci2.cpp
sce/iop.cpp
Expand Down
4 changes: 2 additions & 2 deletions game/common/dgo_rpc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ struct RPC_Dgo_Cmd {
uint32_t buffer2;
uint32_t buffer_heap_top;
char name[16];
uint16_t cgo_id;
uint8_t pad[30];
uint32_t cgo_id;
uint8_t pad[28];
};
static_assert(sizeof(RPC_Dgo_Cmd) == 0x40);
} // namespace jak3
Expand Down
18 changes: 18 additions & 0 deletions game/overlord/jak3/basefile.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once

#include "game/overlord/jak3/iso_structs.h"
#include "game/overlord/jak3/overlord.h"

namespace jak3 {
class CBaseFile {
public:
CBaseFile(const ISOFileDef*);
virtual EIsoStatus BeginRead(ISOBuffer*) = 0;
virtual EIsoStatus SyncRead() = 0;
virtual void Close() = 0;

/* unk return values */
virtual void Unk1() = 0;
virtual void Unk2() = 0;
};
} // namespace jak3
24 changes: 24 additions & 0 deletions game/overlord/jak3/basefilesystem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#pragma once

#include "game/overlord/jak3/basefile.h"
#include "game/overlord/jak3/iso_structs.h"

namespace jak3 {
class CBaseFileSystem {
public:
virtual int Init() = 0;
virtual void PollDrive() = 0;
virtual const ISOFileDef* Find(const char* name) = 0;
virtual const ISOFileDef* FindIN(const char* name) = 0;
virtual int GetLength(const ISOFileDef* def) = 0;
virtual CBaseFile* Open(const ISOFileDef* def, int offset, EFileComp mode) = 0;
virtual CBaseFile* OpenWad(const ISOFileDef* def, int offset) = 0;
virtual VagDirEntryJak3* FindVagFile(const char* name) = 0;

u8* CheckForPageBoundaryCrossing();

private:
ISOBuffer m_Buffer;
};

} // namespace jak3
Loading
Loading