MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / cResource_PC_CD

Method cResource_PC_CD

Source/PC/Resource_PC_CD.cpp:85–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83};
84
85cResource_PC_CD::cResource_PC_CD( const std::string& pDataFile ) : cResources() {
86
87 memset( word_26DBE, 0, 0x273 * 2 );
88 memset( word_272A4, 0, 0x13A * 2 );
89 memset( word_27518, 0, 0x273 * 2 );
90 memset( word_279FE, 0, 0x273 * 2 );
91
92 memset( byte_27EE6, 0, 0x1A3C );
93 byte_26DB0 = 0;
94
95 mBytesRead = word_26DA8 = word_26DBA = 0;
96 word_26DAA = word_26DB4 = saveSI = saveBP = 0;
97
98
99 mData = g_ResourceMan->FileRead(g_Fodder->mVersionCurrent->getDataFilePath(pDataFile));
100 if (!mData) {
101 std::cout << pDataFile << " not found\n";
102 exit( 1 );
103 }
104
105 headerLoad();
106}
107
108cResource_PC_CD::~cResource_PC_CD() {
109

Callers

nothing calls this directly

Calls 2

FileReadMethod · 0.80
getDataFilePathMethod · 0.80

Tested by

no test coverage detected