eBookReaderSwitch/include/common.h

44 lines
943 B
C

#ifndef NX_SHELL_COMMON_H
#define NX_SHELL_COMMON_H
#include <setjmp.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL2_gfxPrimitives.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#define wait(msec) svcSleepThread(10000000 * (s64)msec)
jmp_buf exitJmp;
SDL_Window *WINDOW;
SDL_Surface *WINDOW_SURFACE;
SDL_Renderer *RENDERER;
TTF_Font *Roboto_large, *Roboto, *Roboto_small, *Roboto_OSK;
#define ROOT_PATH "/"
#define START_PATH ROOT_PATH
#define MAX_FILES 1024
#define FILES_PER_PAGE 8
int MENU_DEFAULT_STATE;
int BROWSE_STATE;
#define MENU_STATE_HOME 0
#define MENU_STATE_OPTIONS 1
#define MENU_STATE_MENUBAR 2
#define MENU_STATE_SETTINGS 3
#define MENU_STATE_FTP 4
#define MENU_STATE_SORT 5
#define MENU_STATE_THEMES 6
#define MENU_STATE_DIALOG 7
#define MENU_STATE_PROPERTIES 8
#define STATE_SD 0
#define STATE_NAND 1
char cwd[512];
char fileName[255];
#endif