| Line 184... |
Line 184... |
| 184 |
};
|
184 |
};
|
| 185 |
|
185 |
|
| 186 |
|
186 |
|
| 187 |
static void main()
|
187 |
static void main()
|
| 188 |
{
|
188 |
{
|
| 189 |
struct emcorelib_header* libboot = get_library(0x4c424365, LIBBOOT_API_VERSION, LIBSOURCE_BOOTFLASH, "libboot ");
|
189 |
struct emcorelib_header* libboot = get_library(LIBBOOT_IDENTIFIER, LIBBOOT_API_VERSION, LIBSOURCE_BOOTFLASH, "libboot ");
|
| 190 |
if (!libboot) panicf(PANIC_KILLTHREAD, "Could not load booting library!");
|
190 |
if (!libboot) panicf(PANIC_KILLTHREAD, "Could not load booting library!");
|
| 191 |
struct libboot_api* boot = (struct libboot_api*)libboot->api;
|
191 |
struct libboot_api* boot = (struct libboot_api*)libboot->api;
|
| 192 |
struct emcorelib_header* libpng = get_library(0x64474e50, LIBPNG_API_VERSION, LIBSOURCE_BOOTFLASH, "libpng ");
|
192 |
struct emcorelib_header* libpng = get_library(LIBPNG_IDENTIFIER, LIBPNG_API_VERSION, LIBSOURCE_BOOTFLASH, "libpng ");
|
| 193 |
if (!libpng) panicf(PANIC_KILLTHREAD, "Could not load PNG decoder library!");
|
193 |
if (!libpng) panicf(PANIC_KILLTHREAD, "Could not load PNG decoder library!");
|
| 194 |
struct libpng_api* png = (struct libpng_api*)libpng->api;
|
194 |
struct libpng_api* png = (struct libpng_api*)libpng->api;
|
| 195 |
struct emcorelib_header* libui = get_library(0x49554365, LIBUI_API_VERSION, LIBSOURCE_BOOTFLASH, "libui ");
|
195 |
struct emcorelib_header* libui = get_library(LIBUI_IDENTIFIER, LIBUI_API_VERSION, LIBSOURCE_BOOTFLASH, "libui ");
|
| 196 |
if (!libui) panicf(PANIC_KILLTHREAD, "Could not load user interface library!");
|
196 |
if (!libui) panicf(PANIC_KILLTHREAD, "Could not load user interface library!");
|
| 197 |
struct libui_api* ui = (struct libui_api*)libui->api;
|
197 |
struct libui_api* ui = (struct libui_api*)libui->api;
|
| 198 |
int size = bootflash_filesize("backgrnd");
|
198 |
int size = bootflash_filesize("backgrnd");
|
| 199 |
if (size == -1) panicf(PANIC_KILLTHREAD, "Could not find background image!");
|
199 |
if (size == -1) panicf(PANIC_KILLTHREAD, "Could not find background image!");
|
| 200 |
void* buf = memalign(0x10, size);
|
200 |
void* buf = memalign(0x10, size);
|