sm64coopdx/data/dynos_bin_legacy.cpp

31 lines
670 B
C++
Raw Normal View History

2022-04-02 02:50:42 +00:00
#include "dynos.cpp.h"
/////////////
// Parsing //
/////////////
/////////////
// Writing //
/////////////
/////////////
// Reading //
/////////////
// For retro-compatibility
2022-06-25 07:52:53 +00:00
void DynOS_GfxDynCmd_Load(BinFile *aFile, GfxData *aGfxData) {
2022-04-02 02:50:42 +00:00
Gfx *_Data = NULL;
String _DisplayListName; _DisplayListName.Read(aFile);
for (auto& _DisplayList : aGfxData->mDisplayLists) {
if (_DisplayList->mName == _DisplayListName) {
_Data = _DisplayList->mData;
break;
}
}
if (!_Data) {
sys_fatal("Display list not found: %s", _DisplayListName.begin());
}
2022-06-25 07:52:53 +00:00
aFile->Read<u32>();
aFile->Read<u8>();
2022-04-02 02:50:42 +00:00
}