| 40 | #include "Debug.h" |
| 41 | |
| 42 | bool CustomPalette::LoadFromINI( |
| 43 | CCINIClass* pINI, const char* pSection, const char* pKey, |
| 44 | const char* pDefault) |
| 45 | { |
| 46 | if (pINI->ReadString(pSection, pKey, pDefault, Phobos::readBuffer)) |
| 47 | { |
| 48 | GeneralUtils::ApplyTheaterSuffixToString(Phobos::readBuffer); |
| 49 | |
| 50 | this->Clear(); |
| 51 | |
| 52 | if (auto pPal = FileSystem::AllocatePalette(Phobos::readBuffer)) |
| 53 | { |
| 54 | this->Palette.reset(pPal); |
| 55 | this->CreateConvert(); |
| 56 | } |
| 57 | |
| 58 | return this->Convert != nullptr; |
| 59 | } |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | bool CustomPalette::Load(PhobosStreamReader& Stm, bool RegisterForChange) |
| 64 | { |
nothing calls this directly
no test coverage detected