-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
119 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "iso_fake.h" | ||
|
||
namespace jak3 { | ||
CFakeISOCDFileSystem g_FakeISOCDFileSystem; | ||
|
||
int CFakeISOCDFileSystem::Init() { | ||
return 0; | ||
} | ||
|
||
void CFakeISOCDFileSystem::PollDrive() {} | ||
|
||
const ISOFileDef* CFakeISOCDFileSystem::Find(const char* name) { | ||
return nullptr; | ||
} | ||
|
||
const ISOFileDef* CFakeISOCDFileSystem::FindIN(const char* name) { | ||
return nullptr; | ||
} | ||
|
||
int CFakeISOCDFileSystem::GetLength(const ISOFileDef* def) { | ||
return 0; | ||
} | ||
|
||
int CFakeISOCDFileSystem::Open(const ISOFileDef* def, int offset, EFileComp mode) { | ||
return 0; | ||
} | ||
|
||
int CFakeISOCDFileSystem::OpenWad(const ISOFileDef* def, int offset) { | ||
return 0; | ||
} | ||
|
||
VagDirEntryJak3* CFakeISOCDFileSystem::FindVagFile(const char* name) { | ||
return nullptr; | ||
} | ||
|
||
} // namespace jak3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef ISO_FAKE_H_ | ||
#define ISO_FAKE_H_ | ||
|
||
#include "basefile.h" | ||
#include "basefilesystem.h" | ||
|
||
#include "game/overlord/jak3/iso.h" | ||
|
||
namespace jak3 { | ||
class CFakeISOCDFileSystem : public CBaseFileSystem { | ||
int Init() override; | ||
void PollDrive() override; | ||
const ISOFileDef* Find(const char* name) override; | ||
const ISOFileDef* FindIN(const char* name) override; | ||
int GetLength(const ISOFileDef* def) override; | ||
int Open(const ISOFileDef* def, int offset, EFileComp mode) override; | ||
int OpenWad(const ISOFileDef* def, int offset) override; | ||
VagDirEntryJak3* FindVagFile(const char* name) override; | ||
}; | ||
|
||
class CFakeISOCDFile : public CBaseFile { | ||
EIsoStatus BeginRead(ISOBuffer*) override; | ||
EIsoStatus SyncRead() override; | ||
void Close() override; | ||
|
||
/* unk return values */ | ||
void Unk1() override; | ||
void Unk2() override; | ||
}; | ||
|
||
extern CFakeISOCDFileSystem g_FakeISOCDFileSystem; | ||
|
||
} // namespace jak3 | ||
|
||
#endif // ISO_FAKE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters