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

Method Tiles_Load_Data

Source/Fodder.cpp:2112–2128  ·  view source on GitHub ↗

* Load the Base and Sub Tile BLK Files * * @return true if both files are loaded */

Source from the content-addressed store, hash-verified

2110 * @return true if both files are loaded
2111 */
2112bool cFodder::Tiles_Load_Data() {
2113 std::string BaseName, SubName;
2114
2115 // junbase.blk
2116 BaseName.append(mMap->data(), mMap->data() + 11);
2117
2118 // junsub0.blk
2119 SubName.append(mMap->data() + 0x10, mMap->data() + 0x10 + 11);
2120
2121 mTile_BaseBlk = mResources->fileGet(BaseName);
2122 mTile_SubBlk = mResources->fileGet(SubName);
2123
2124 if (!mTile_BaseBlk->size() || !mTile_SubBlk->size())
2125 return false;
2126
2127 return true;
2128}
2129
2130void cFodder::Map_Load_Resources() {
2131 std::string BaseBase, BaseSub, BaseBaseSet, BaseSubSet;

Callers

nothing calls this directly

Calls 2

fileGetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected