Halo PC Map Deprotection Library
Deathstar is a deprotection library for deprotecting Halo PC/Mac and Halo Custom Edition maps. It is made to function as both a program for anyone's use and also as a library for projects using the portable C language. While it has functions for opening maps on its own via a path, you can use the openMapFromBuffer function.
To open a map, you can use a file path or a buffer.
MapData exampleMapBuffer = openMapFromBuffer((void *)buffer);
MapData exampleMapPath = openMapAtPath((char *)path);
There are two methods used for deprotecting maps, which can be used together if needed. ZTeam Deprotection deobfuscates tag classes, and name deprotection deobfuscates tag names. Tag names cannot be recovered, if they were obfuscated.
MapData exampleMap = openMapFromBuffer((void *)buffer);
MapData deprotectedVersion = zteam_deprotect(exampleMap);
free(exampleMap.buffer); //The methods allocated a new buffer. Depending on what you are
//trying to do, you may want to free the original buffer.