19 lines
460 B
C
19 lines
460 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#include "palette.h"
|
|
#include "assert/assert.h"
|
|
|
|
palette_t PALETTE[PALETTE_COUNT_MAX];
|
|
uint8_t PALETTE_COUNT = 0;
|
|
|
|
void paletteAssetLoadCallback(void *data) {
|
|
assertNotNull(data, "Data cannot be NULL.");
|
|
|
|
uint8_t index = *((uint8_t*)data);
|
|
assertTrue(index < PALETTE_COUNT_MAX, "Palette index out of bounds.");
|
|
} |