

GetDataSize from ddnet
for version 4 i don't really see a reason for keeping it









































Size I could maybe make an educated guess







|| pTMap->m_Version == 4 to the check. For tele, speedup, ... layers just leave it as it is. They cannot use tile skip anyway
















extern "C" block :/
extern "C" but you don't need an entire block, maybe that'd make it look a little betterstd::function doesn't really care about calling convention, idk what you are doing but maybe you could abuse that

std::function can come with overhead though, not sure if it HAS to have overhead
extern "C" void (*m_pfnLog)(const char *pLine, void *pUserdata); didn't work
extern "C" typedef int (*fcnptr)(int) should work









