mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Asset Packs: Optimize icon loader (#164)
* Original pointer can be const * Back to const icons * Missed this one * Simpler string alloc * Single allocation and header struct for static icons * Shared allocation and meta struct for animated icons * Only try to load if dir exists * Restructure momentum lib * Use some internal headers * Swap icons at draw * Properly init and free, no more original in icon struct
This commit is contained in:
9
lib/momentum/asset_packs.h
Normal file
9
lib/momentum/asset_packs.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <gui/canvas.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define ASSET_PACKS_PATH EXT_PATH("asset_packs")
|
||||
|
||||
void asset_packs_init(void);
|
||||
void asset_packs_free(void);
|
||||
Reference in New Issue
Block a user