MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / LoadCoreArchives

Function LoadCoreArchives

Source/init.cpp:248–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void LoadCoreArchives()
249{
250 auto paths = GetMPQSearchPaths();
251
252#ifdef UNPACKED_MPQS
253 font_data_path = FindUnpackedMpqData(paths, "fonts");
254#else // !UNPACKED_MPQS
255#if !defined(__ANDROID__) && !defined(__APPLE__) && !defined(__3DS__) && !defined(__SWITCH__)
256 // Load devilutionx.mpq first to get the font file for error messages
257 devilutionx_mpq = LoadMPQ(paths, "devilutionx.mpq");
258#endif
259 font_mpq = LoadMPQ(paths, "fonts.mpq"); // Extra fonts
260#endif
261}
262
263void LoadLanguageArchive()
264{

Callers 2

RunTimedemoFunction · 0.85
DiabloMainFunction · 0.85

Calls 3

GetMPQSearchPathsFunction · 0.85
FindUnpackedMpqDataFunction · 0.85
LoadMPQFunction · 0.85

Tested by 1

RunTimedemoFunction · 0.68