MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getArchive

Function getArchive

TheForceEngine/TFE_Editor/editor.cpp:1120–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118 }
1119
1120 Archive* getArchive(const char* name, GameID gameId)
1121 {
1122 TFE_Settings_Game* game = TFE_Settings::getGameSettings();
1123 char filePath[TFE_MAX_PATH];
1124 sprintf(filePath, "%s%s", game->header[gameId].sourcePath, name);
1125
1126 ArchiveType type = getArchiveType(name);
1127 return type != ARCHIVE_UNKNOWN ? Archive::getArchive(type, name, filePath) : nullptr;
1128 }
1129
1130 void getTempDirectory(char* tmpDir)
1131 {

Callers 9

resources_uiFunction · 0.70
resources_setGameFunction · 0.70
resources_parseFunction · 0.70
openArchiveFileFunction · 0.50
loadCustomGobFunction · 0.50
openGobFilesFunction · 0.50
escapeMenu_loadFunction · 0.50
agentMenu_loadFunction · 0.50
extractPosterFromModFunction · 0.50

Calls 2

getGameSettingsFunction · 0.85
getArchiveTypeFunction · 0.85

Tested by

no test coverage detected