Crusader_Decomp/rebuild/remorse/tests/palette_tests.cpp

19 lines
540 B
C++
Raw Normal View History

#include "remorse/file_system.h"
#include "remorse/palette.h"
#include <cassert>
#include <filesystem>
int main()
{
const auto root = remorse::findGameDataRoot(std::filesystem::current_path());
assert(root.has_value());
const auto palettePath = remorse::resolveGameDataPath(*root, std::filesystem::path("STATIC") / "GAMEPAL.PAL");
assert(palettePath.has_value());
const auto palette = remorse::loadPalette256(*palettePath);
assert(palette.has_value());
assert(palette->colors.size() == 256);
return 0;
}