Skip to content

Commit

Permalink
src/menu: use CWD_MENU_DIR def for starting directory
Browse files Browse the repository at this point in the history
Update Makefile for LINUX
  • Loading branch information
Apaczer committed Nov 3, 2024
1 parent 5d0b90a commit 64b7fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ MORE_CFLAGS += -DOS_WITHOUT_MEMORY_MANAGEMENT -DVKBD_ALWAYS
MORE_CFLAGS += -DROM_PATH_PREFIX=\"./\" -DSAVE_PREFIX=\"./\"
ifeq ($(LINUX), YES)
MORE_CFLAGS += -DDATA_PREFIX=\"./assets/data/\"
MORE_CFLAGS += -DCWD_MENU_DIR
else
MORE_CFLAGS += -DDATA_PREFIX=\"./data/\"
endif
Expand Down
4 changes: 2 additions & 2 deletions src/menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ extern SDL_Surface *prSDLScreen;
#define MENU_FILE_BACKGROUND DATA_PREFIX "background.bmp"
#define MENU_FILE_WINDOW DATA_PREFIX "window.bmp"
#define MENU_FILE_TEXT DATA_PREFIX "text.bmp"
#ifdef DREAMCAST
#if defined(DREAMCAST) && !defined(CWD_MENU_DIR)
#ifdef AUTO_RUN
#define MENU_DIR_DEFAULT "/cd/"
#else
#define MENU_DIR_DEFAULT "/"
#endif
#elif defined(MIYOO)
#elif defined(MIYOO) && !defined(CWD_MENU_DIR)
#define MENU_DIR_DEFAULT "/mnt/roms/AMIGA"
#else
#define MENU_DIR_DEFAULT "."
Expand Down

0 comments on commit 64b7fce

Please sign in to comment.