4
// custom paletted cameos
5
// TODO: add a static vector to buffer instances of the same Palette file?
6
#include <ConvertClass.h>
7
#include <CCINIClass.h>
8
#include <GeneralStructures.h>
14
ConvertClass *Convert;
23
GAME_DEALLOC(this->Convert);
24
GAME_DEALLOC(this->Palette);
27
bool LoadFromINI(CCINIClass *pINI, const char *pSection, const char *pKey) {
28
if(pINI->ReadString(pSection, pKey, "", Ares::readBuffer, Ares::readLength)) {
29
GAME_DEALLOC(this->Palette);
30
GAME_DEALLOC(this->Convert);
31
ConvertClass::CreateFromFile(Ares::readBuffer, &this->Palette, &this->Convert);