aboutsummaryrefslogtreecommitdiff
path: root/src/cart.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cart.h')
-rw-r--r--src/cart.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cart.h b/src/cart.h
index 21eede6..7478472 100644
--- a/src/cart.h
+++ b/src/cart.h
@@ -4,19 +4,19 @@
#include <SDL3/SDL_render.h>
/** The maximum supported PICO-8 cart path size. */
-#define PW_PATH_MAX 960
+#define PW_CART_PATH_MAX 960
/** The maximum supported PICO-8 cart name size. */
-#define PW_NAME_MAX 64
+#define PW_CART_NAME_MAX 64
/** The size of a PICO-8 ROM. */
-#define PW_ROM_SIZE 32768
+#define PW_CART_ROM_SIZE 32768
/** The width in pixels of a PICO-8 PNG. */
-#define PW_PNG_WIDTH 160
+#define PW_CART_PNG_WIDTH 160
/** The height in pixels of a PICO-8 PNG. */
-#define PW_PNG_HEIGHT 205
+#define PW_CART_PNG_HEIGHT 205
/**
* A PICO-8 cart file that can be loaded.
@@ -25,8 +25,8 @@
* enables multi-cart support.
*/
struct pw_cart_file {
- char name[PW_NAME_MAX];
- char path[PW_PATH_MAX];
+ char name[PW_CART_NAME_MAX];
+ char path[PW_CART_PATH_MAX];
};
/**
@@ -55,15 +55,15 @@ struct pw_carts {
*/
struct pw_cart_png {
SDL_Texture *texture;
- uint8_t rom[PW_ROM_SIZE];
+ uint8_t rom[PW_CART_ROM_SIZE];
};
/**
* A PICO-8 cart data.
*/
struct pw_cart {
- char name[PW_NAME_MAX];
- uint8_t rom[PW_ROM_SIZE];
+ char name[PW_CART_NAME_MAX];
+ uint8_t rom[PW_CART_ROM_SIZE];
};
/**