mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 13:04:21 +01:00
Update Makefiles to latest build tools (#930)
* Update Makefiles to latest build tools * Fix warnings about overlapping strings * Fix oversight in GameCube compilation
This commit is contained in:
parent
3252710eb7
commit
f875dfe346
42
Makefile.gc
42
Makefile.gc
@ -18,9 +18,9 @@ include $(DEVKITPPC)/gamecube_rules
|
|||||||
TARGET := snes9xgx-gc
|
TARGET := snes9xgx-gc
|
||||||
TARGETDIR := executables
|
TARGETDIR := executables
|
||||||
BUILD := build_gc
|
BUILD := build_gc
|
||||||
SOURCES := source source/images source/sounds source/fonts source/lang \
|
SOURCES := source source/gui source/utils source/utils/sz source/utils/vm \
|
||||||
source/gui source/utils source/utils/sz source/utils/vm \
|
|
||||||
source/snes9x source/snes9x/apu
|
source/snes9x source/snes9x/apu
|
||||||
|
DATA := source/images source/sounds source/fonts source/lang
|
||||||
INCLUDES := source source/snes9x
|
INCLUDES := source source/snes9x
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -35,7 +35,9 @@ CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) `freetype-config --cflags` \
|
|||||||
-Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-strict-aliasing \
|
-Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-strict-aliasing \
|
||||||
-Wno-format -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-format-truncation -Wno-narrowing -Wno-sign-compare \
|
-Wno-format -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -Wno-format-truncation -Wno-narrowing -Wno-sign-compare \
|
||||||
-Wno-unused-function -Wno-write-strings -Wno-parentheses
|
-Wno-unused-function -Wno-write-strings -Wno-parentheses
|
||||||
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -57,7 +59,9 @@ ifneq ($(BUILD),$(notdir $(CURDIR)))
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
||||||
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
export DEPSDIR := $(CURDIR)/$(BUILD)
|
export DEPSDIR := $(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -67,10 +71,9 @@ CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
|||||||
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
|
||||||
TTFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ttf)))
|
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.ttf) \
|
||||||
LANGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.lang)))
|
$(wildcard $(dir)/*.lang) $(wildcard $(dir)/*.png) \
|
||||||
PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png)))
|
$(wildcard $(dir)/*.pcm)))
|
||||||
PCMFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcm)))
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# use CXX for linking C++ projects, CC for standard C
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
@ -81,16 +84,16 @@ else
|
|||||||
export LD := $(CXX)
|
export LD := $(CXX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
|
export OFILES_BIN := $(addsuffix .o,$(BINFILES))
|
||||||
$(sFILES:.s=.o) $(SFILES:.S=.o) \
|
export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(sFILES:.s=.o) $(SFILES:.S=.o)
|
||||||
$(TTFFILES:.ttf=.ttf.o) $(LANGFILES:.lang=.lang.o) \
|
export OFILES := $(OFILES_BIN) $(OFILES_SOURCES)
|
||||||
$(PNGFILES:.png=.png.o) \
|
|
||||||
$(PCMFILES:.pcm=.pcm.o)
|
export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# build a list of include paths
|
# build a list of include paths
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \
|
||||||
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
-I$(CURDIR)/$(BUILD) \
|
-I$(CURDIR)/$(BUILD) \
|
||||||
-I$(LIBOGC_INC)
|
-I$(LIBOGC_INC)
|
||||||
@ -98,8 +101,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# build a list of library paths
|
# build a list of library paths
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \
|
export LIBPATHS := -L$(LIBOGC_LIB) $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
-L$(LIBOGC_LIB)
|
|
||||||
|
|
||||||
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
||||||
.PHONY: $(BUILD) clean
|
.PHONY: $(BUILD) clean
|
||||||
@ -135,22 +137,24 @@ DEPENDS := $(OFILES:.o=.d)
|
|||||||
$(OUTPUT).dol: $(OUTPUT).elf
|
$(OUTPUT).dol: $(OUTPUT).elf
|
||||||
$(OUTPUT).elf: $(OFILES)
|
$(OUTPUT).elf: $(OFILES)
|
||||||
|
|
||||||
|
$(OFILES_SOURCES) : $(HFILES)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# This rule links in binary data with these extensions: ttf lang png pcm
|
# This rule links in binary data with these extensions: ttf lang png pcm
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.ttf.o : %.ttf
|
%.ttf.o %_ttf.h : %.ttf
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.lang.o : %.lang
|
%.lang.o %_lang.h : %.lang
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.png.o : %.png
|
%.png.o %_png.h : %.png
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.pcm.o : %.pcm
|
%.pcm.o %_pcm.h : %.pcm
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
|
45
Makefile.wii
45
Makefile.wii
@ -18,9 +18,9 @@ include $(DEVKITPPC)/wii_rules
|
|||||||
TARGET := snes9xgx-wii
|
TARGET := snes9xgx-wii
|
||||||
TARGETDIR := executables
|
TARGETDIR := executables
|
||||||
BUILD := build_wii
|
BUILD := build_wii
|
||||||
SOURCES := source source/images source/sounds source/fonts source/lang \
|
SOURCES := source source/gui source/utils source/utils/sz \
|
||||||
source/gui source/utils source/utils/sz \
|
|
||||||
source/snes9x source/snes9x/apu
|
source/snes9x source/snes9x/apu
|
||||||
|
DATA := source/images source/sounds source/fonts source/lang
|
||||||
INCLUDES := source source/snes9x
|
INCLUDES := source source/snes9x
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -37,6 +37,7 @@ CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) `freetype-config --cflags` \
|
|||||||
-Wno-unused-function -Wno-write-strings -Wno-parentheses
|
-Wno-unused-function -Wno-write-strings -Wno-parentheses
|
||||||
|
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -58,7 +59,9 @@ ifneq ($(BUILD),$(notdir $(CURDIR)))
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
||||||
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
export DEPSDIR := $(CURDIR)/$(BUILD)
|
export DEPSDIR := $(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@ -68,11 +71,9 @@ CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
|||||||
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S)))
|
||||||
TTFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ttf)))
|
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.ttf) \
|
||||||
LANGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.lang)))
|
$(wildcard $(dir)/*.lang) $(wildcard $(dir)/*.png) \
|
||||||
PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png)))
|
$(wildcard $(dir)/*.ogg) $(wildcard $(dir)/*.pcm)))
|
||||||
OGGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ogg)))
|
|
||||||
PCMFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcm)))
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# use CXX for linking C++ projects, CC for standard C
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
@ -83,15 +84,16 @@ else
|
|||||||
export LD := $(CXX)
|
export LD := $(CXX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \
|
export OFILES_BIN := $(addsuffix .o,$(BINFILES))
|
||||||
$(sFILES:.s=.o) $(SFILES:.S=.o) \
|
export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(sFILES:.s=.o) $(SFILES:.S=.o)
|
||||||
$(TTFFILES:.ttf=.ttf.o) $(LANGFILES:.lang=.lang.o) \
|
export OFILES := $(OFILES_BIN) $(OFILES_SOURCES)
|
||||||
$(PNGFILES:.png=.png.o) \
|
|
||||||
$(OGGFILES:.ogg=.ogg.o) $(PCMFILES:.pcm=.pcm.o)
|
export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# build a list of include paths
|
# build a list of include paths
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \
|
||||||
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
-I$(CURDIR)/$(BUILD) \
|
-I$(CURDIR)/$(BUILD) \
|
||||||
-I$(LIBOGC_INC)
|
-I$(LIBOGC_INC)
|
||||||
@ -99,8 +101,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# build a list of library paths
|
# build a list of library paths
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \
|
export LIBPATHS := -L$(LIBOGC_LIB) $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
-L$(LIBOGC_LIB)
|
|
||||||
|
|
||||||
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET)
|
||||||
.PHONY: $(BUILD) clean
|
.PHONY: $(BUILD) clean
|
||||||
@ -136,26 +137,28 @@ DEPENDS := $(OFILES:.o=.d)
|
|||||||
$(OUTPUT).dol: $(OUTPUT).elf
|
$(OUTPUT).dol: $(OUTPUT).elf
|
||||||
$(OUTPUT).elf: $(OFILES)
|
$(OUTPUT).elf: $(OFILES)
|
||||||
|
|
||||||
|
$(OFILES_SOURCES) : $(HFILES)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# This rule links in binary data with these extensions: ttf lang png ogg pcm
|
# This rule links in binary data with these extensions: ttf lang png ogg pcm
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.ttf.o : %.ttf
|
%.ttf.o %_ttf.h : %.ttf
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.lang.o : %.lang
|
%.lang.o %_lang.h : %.lang
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.png.o : %.png
|
%.png.o %_png.h : %.png
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.ogg.o : %.ogg
|
%.ogg.o %_ogg.h : %.ogg
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
%.pcm.o : %.pcm
|
%.pcm.o %_pcm.h : %.pcm
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(bin2o)
|
$(bin2o)
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ int UpdateDirName()
|
|||||||
if ((strlen(browser.dir)+1+strlen(browserList[browser.selIndex].filename)) < MAXPATHLEN)
|
if ((strlen(browser.dir)+1+strlen(browserList[browser.selIndex].filename)) < MAXPATHLEN)
|
||||||
{
|
{
|
||||||
/* update current directory name */
|
/* update current directory name */
|
||||||
sprintf(browser.dir, "%s%s/",browser.dir, browserList[browser.selIndex].filename);
|
sprintf(browser.dir+strlen(browser.dir), "%s/", browserList[browser.selIndex].filename);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <gccore.h>
|
#include <gccore.h>
|
||||||
#include <snes9xgx.h>
|
#include "snes9xgx.h"
|
||||||
|
|
||||||
#define MAXJOLIET 255
|
#define MAXJOLIET 255
|
||||||
#ifdef HW_DOL
|
#ifdef HW_DOL
|
||||||
|
@ -15,319 +15,128 @@
|
|||||||
#include <gccore.h>
|
#include <gccore.h>
|
||||||
|
|
||||||
// Fonts
|
// Fonts
|
||||||
extern const u8 font_ttf[];
|
#include "font_ttf.h"
|
||||||
extern const u32 font_ttf_size;
|
|
||||||
|
|
||||||
// Languages
|
// Languages
|
||||||
extern const u8 jp_lang[];
|
#include "jp_lang.h"
|
||||||
extern const u32 jp_lang_size;
|
#include "en_lang.h"
|
||||||
extern const u8 en_lang[];
|
#include "de_lang.h"
|
||||||
extern const u32 en_lang_size;
|
#include "fr_lang.h"
|
||||||
extern const u8 de_lang[];
|
#include "es_lang.h"
|
||||||
extern const u32 de_lang_size;
|
#include "it_lang.h"
|
||||||
extern const u8 fr_lang[];
|
#include "nl_lang.h"
|
||||||
extern const u32 fr_lang_size;
|
#include "zh_lang.h"
|
||||||
extern const u8 es_lang[];
|
#include "ko_lang.h"
|
||||||
extern const u32 es_lang_size;
|
#include "pt_lang.h"
|
||||||
extern const u8 it_lang[];
|
#include "pt_br_lang.h"
|
||||||
extern const u32 it_lang_size;
|
#include "ca_lang.h"
|
||||||
extern const u8 nl_lang[];
|
#include "tr_lang.h"
|
||||||
extern const u32 nl_lang_size;
|
|
||||||
extern const u8 zh_lang[];
|
|
||||||
extern const u32 zh_lang_size;
|
|
||||||
extern const u8 ko_lang[];
|
|
||||||
extern const u32 ko_lang_size;
|
|
||||||
extern const u8 pt_lang[];
|
|
||||||
extern const u32 pt_lang_size;
|
|
||||||
extern const u8 pt_br_lang[];
|
|
||||||
extern const u32 pt_br_lang_size;
|
|
||||||
extern const u8 ca_lang[];
|
|
||||||
extern const u32 ca_lang_size;
|
|
||||||
extern const u8 tr_lang[];
|
|
||||||
extern const u32 tr_lang_size;
|
|
||||||
|
|
||||||
// Sounds
|
// Sounds
|
||||||
|
#ifdef HW_RVL
|
||||||
extern const u8 bg_music_ogg[];
|
// background music is Wii-only
|
||||||
extern const u32 bg_music_ogg_size;
|
#include "bg_music_ogg.h"
|
||||||
|
#include "enter_ogg.h"
|
||||||
extern const u8 enter_ogg[];
|
#include "exit_ogg.h"
|
||||||
extern const u32 enter_ogg_size;
|
#endif
|
||||||
|
#include "button_over_pcm.h"
|
||||||
extern const u8 exit_ogg[];
|
#include "button_click_pcm.h"
|
||||||
extern const u32 exit_ogg_size;
|
|
||||||
|
|
||||||
extern const u8 button_over_pcm[];
|
|
||||||
extern const u32 button_over_pcm_size;
|
|
||||||
|
|
||||||
extern const u8 button_click_pcm[];
|
|
||||||
extern const u32 button_click_pcm_size;
|
|
||||||
|
|
||||||
// Graphics
|
// Graphics
|
||||||
|
#include "logo_png.h"
|
||||||
extern const u8 logo_png[];
|
#include "logo_over_png.h"
|
||||||
extern const u32 logo_png_size;
|
#include "bg_top_png.h"
|
||||||
|
#include "bg_bottom_png.h"
|
||||||
extern const u8 logo_over_png[];
|
#include "icon_settings_png.h"
|
||||||
extern const u32 logo_over_png_size;
|
#include "icon_home_png.h"
|
||||||
|
#include "icon_game_settings_png.h"
|
||||||
extern const u8 bg_top_png[];
|
#include "icon_game_cheats_png.h"
|
||||||
extern const u32 bg_top_png_size;
|
#include "icon_game_controllers_png.h"
|
||||||
|
#include "icon_game_load_png.h"
|
||||||
extern const u8 bg_bottom_png[];
|
#include "icon_game_save_png.h"
|
||||||
extern const u32 bg_bottom_png_size;
|
#include "icon_game_delete_png.h"
|
||||||
|
#include "icon_game_reset_png.h"
|
||||||
extern const u8 icon_settings_png[];
|
#include "icon_settings_wiimote_png.h"
|
||||||
extern const u32 icon_settings_png_size;
|
#include "icon_settings_classic_png.h"
|
||||||
|
#include "icon_settings_gamecube_png.h"
|
||||||
extern const u8 icon_home_png[];
|
#include "icon_settings_nunchuk_png.h"
|
||||||
extern const u32 icon_home_png_size;
|
#include "icon_settings_wiiupro_png.h"
|
||||||
|
#include "icon_settings_drc_png.h"
|
||||||
extern const u8 icon_game_settings_png[];
|
#include "icon_settings_snescontroller_png.h"
|
||||||
extern const u32 icon_game_settings_png_size;
|
#include "icon_settings_superscope_png.h"
|
||||||
extern const u8 icon_game_cheats_png[];
|
#include "icon_settings_justifier_png.h"
|
||||||
extern const u32 icon_game_cheats_png_size;
|
#include "icon_settings_mouse_png.h"
|
||||||
extern const u8 icon_game_controllers_png[];
|
#include "icon_settings_file_png.h"
|
||||||
extern const u32 icon_game_controllers_png_size;
|
#include "icon_settings_mappings_png.h"
|
||||||
extern const u8 icon_game_load_png[];
|
#include "icon_settings_menu_png.h"
|
||||||
extern const u32 icon_game_load_png_size;
|
#include "icon_settings_network_png.h"
|
||||||
extern const u8 icon_game_save_png[];
|
#include "icon_settings_video_png.h"
|
||||||
extern const u32 icon_game_save_png_size;
|
#include "icon_settings_audio_png.h"
|
||||||
extern const u8 icon_game_delete_png[];
|
#include "icon_settings_screenshot_png.h"
|
||||||
extern const u32 icon_game_delete_png_size;
|
#include "button_png.h"
|
||||||
extern const u8 icon_game_reset_png[];
|
#include "button_over_png.h"
|
||||||
extern const u32 icon_game_reset_png_size;
|
#include "button_prompt_png.h"
|
||||||
|
#include "button_prompt_over_png.h"
|
||||||
extern const u8 icon_settings_wiimote_png[];
|
#include "button_long_png.h"
|
||||||
extern const u32 icon_settings_wiimote_png_size;
|
#include "button_long_over_png.h"
|
||||||
extern const u8 icon_settings_classic_png[];
|
#include "button_short_png.h"
|
||||||
extern const u32 icon_settings_classic_png_size;
|
#include "button_short_over_png.h"
|
||||||
extern const u8 icon_settings_gamecube_png[];
|
#include "button_small_png.h"
|
||||||
extern const u32 icon_settings_gamecube_png_size;
|
#include "button_small_over_png.h"
|
||||||
extern const u8 icon_settings_nunchuk_png[];
|
#include "button_large_png.h"
|
||||||
extern const u32 icon_settings_nunchuk_png_size;
|
#include "button_large_over_png.h"
|
||||||
extern const u8 icon_settings_wiiupro_png[];
|
#include "button_arrow_left_png.h"
|
||||||
extern const u32 icon_settings_wiiupro_png_size;
|
#include "button_arrow_right_png.h"
|
||||||
extern const u8 icon_settings_drc_png[];
|
#include "button_arrow_up_png.h"
|
||||||
extern const u32 icon_settings_drc_png_size;
|
#include "button_arrow_down_png.h"
|
||||||
|
#include "button_arrow_left_over_png.h"
|
||||||
extern const u8 icon_settings_snescontroller_png[];
|
#include "button_arrow_right_over_png.h"
|
||||||
extern const u32 icon_settings_snescontroller_png_size;
|
#include "button_arrow_up_over_png.h"
|
||||||
extern const u8 icon_settings_superscope_png[];
|
#include "button_arrow_down_over_png.h"
|
||||||
extern const u32 icon_settings_superscope_png_size;
|
#include "button_gamesave_png.h"
|
||||||
extern const u8 icon_settings_justifier_png[];
|
#include "button_gamesave_over_png.h"
|
||||||
extern const u32 icon_settings_justifier_png_size;
|
#include "button_gamesave_blank_png.h"
|
||||||
extern const u8 icon_settings_mouse_png[];
|
#include "screen_position_png.h"
|
||||||
extern const u32 icon_settings_mouse_png_size;
|
#include "dialogue_box_png.h"
|
||||||
|
#include "credits_box_png.h"
|
||||||
extern const u8 icon_settings_file_png[];
|
#include "progressbar_png.h"
|
||||||
extern const u32 icon_settings_file_png_size;
|
#include "progressbar_empty_png.h"
|
||||||
extern const u8 icon_settings_mappings_png[];
|
#include "progressbar_outline_png.h"
|
||||||
extern const u32 icon_settings_mappings_png_size;
|
#include "throbber_png.h"
|
||||||
extern const u8 icon_settings_menu_png[];
|
#include "icon_folder_png.h"
|
||||||
extern const u32 icon_settings_menu_png_size;
|
#include "icon_sd_png.h"
|
||||||
extern const u8 icon_settings_network_png[];
|
#include "icon_usb_png.h"
|
||||||
extern const u32 icon_settings_network_png_size;
|
#include "icon_dvd_png.h"
|
||||||
extern const u8 icon_settings_video_png[];
|
#include "icon_smb_png.h"
|
||||||
extern const u32 icon_settings_video_png_size;
|
#include "battery_png.h"
|
||||||
extern const u8 icon_settings_audio_png[];
|
#include "battery_red_png.h"
|
||||||
extern const u32 icon_settings_audio_png_size;
|
#include "battery_bar_png.h"
|
||||||
extern const u8 icon_settings_screenshot_png[];
|
#include "bg_options_png.h"
|
||||||
extern const u32 icon_settings_screenshot_png_size;
|
#include "bg_options_entry_png.h"
|
||||||
|
#include "bg_game_selection_png.h"
|
||||||
extern const u8 button_png[];
|
#include "bg_game_selection_entry_png.h"
|
||||||
extern const u32 button_png_size;
|
#include "bg_preview_png.h"
|
||||||
|
#include "scrollbar_png.h"
|
||||||
extern const u8 button_over_png[];
|
#include "scrollbar_arrowup_png.h"
|
||||||
extern const u32 button_over_png_size;
|
#include "scrollbar_arrowup_over_png.h"
|
||||||
|
#include "scrollbar_arrowdown_png.h"
|
||||||
extern const u8 button_prompt_png[];
|
#include "scrollbar_arrowdown_over_png.h"
|
||||||
extern const u32 button_prompt_png_size;
|
#include "scrollbar_box_png.h"
|
||||||
|
#include "scrollbar_box_over_png.h"
|
||||||
extern const u8 button_prompt_over_png[];
|
#include "keyboard_textbox_png.h"
|
||||||
extern const u32 button_prompt_over_png_size;
|
#include "keyboard_key_png.h"
|
||||||
|
#include "keyboard_key_over_png.h"
|
||||||
extern const u8 button_long_png[];
|
#include "keyboard_mediumkey_png.h"
|
||||||
extern const u32 button_long_png_size;
|
#include "keyboard_mediumkey_over_png.h"
|
||||||
|
#include "keyboard_largekey_png.h"
|
||||||
extern const u8 button_long_over_png[];
|
#include "keyboard_largekey_over_png.h"
|
||||||
extern const u32 button_long_over_png_size;
|
#include "player1_point_png.h"
|
||||||
|
#include "player2_point_png.h"
|
||||||
extern const u8 button_short_png[];
|
#include "player3_point_png.h"
|
||||||
extern const u32 button_short_png_size;
|
#include "player4_point_png.h"
|
||||||
|
#include "player1_grab_png.h"
|
||||||
extern const u8 button_short_over_png[];
|
#include "player2_grab_png.h"
|
||||||
extern const u32 button_short_over_png_size;
|
#include "player3_grab_png.h"
|
||||||
|
#include "player4_grab_png.h"
|
||||||
extern const u8 button_small_png[];
|
|
||||||
extern const u32 button_small_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_small_over_png[];
|
|
||||||
extern const u32 button_small_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_large_png[];
|
|
||||||
extern const u32 button_large_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_large_over_png[];
|
|
||||||
extern const u32 button_large_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_left_png[];
|
|
||||||
extern const u32 button_arrow_left_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_right_png[];
|
|
||||||
extern const u32 button_arrow_right_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_up_png[];
|
|
||||||
extern const u32 button_arrow_up_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_down_png[];
|
|
||||||
extern const u32 button_arrow_down_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_left_over_png[];
|
|
||||||
extern const u32 button_arrow_left_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_right_over_png[];
|
|
||||||
extern const u32 button_arrow_right_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_up_over_png[];
|
|
||||||
extern const u32 button_arrow_up_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_arrow_down_over_png[];
|
|
||||||
extern const u32 button_arrow_down_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_gamesave_png[];
|
|
||||||
extern const u32 button_gamesave_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_gamesave_over_png[];
|
|
||||||
extern const u32 button_gamesave_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_gamesave_blank_png[];
|
|
||||||
extern const u32 button_gamesave_blank_png_size;
|
|
||||||
|
|
||||||
extern const u8 screen_position_png[];
|
|
||||||
extern const u32 screen_position_png_size;
|
|
||||||
|
|
||||||
extern const u8 dialogue_box_png[];
|
|
||||||
extern const u32 dialogue_box_png_size;
|
|
||||||
|
|
||||||
extern const u8 credits_box_png[];
|
|
||||||
extern const u32 credits_box_png_size;
|
|
||||||
|
|
||||||
extern const u8 progressbar_png[];
|
|
||||||
extern const u32 progressbar_png_size;
|
|
||||||
|
|
||||||
extern const u8 progressbar_empty_png[];
|
|
||||||
extern const u32 progressbar_empty_png_size;
|
|
||||||
|
|
||||||
extern const u8 progressbar_outline_png[];
|
|
||||||
extern const u32 progressbar_outline_png_size;
|
|
||||||
|
|
||||||
extern const u8 throbber_png[];
|
|
||||||
extern const u32 throbber_png_size;
|
|
||||||
|
|
||||||
extern const u8 icon_folder_png[];
|
|
||||||
extern const u32 icon_folder_png_size;
|
|
||||||
|
|
||||||
extern const u8 icon_sd_png[];
|
|
||||||
extern const u32 icon_sd_png_size;
|
|
||||||
|
|
||||||
extern const u8 icon_usb_png[];
|
|
||||||
extern const u32 icon_usb_png_size;
|
|
||||||
|
|
||||||
extern const u8 icon_dvd_png[];
|
|
||||||
extern const u32 icon_dvd_png_size;
|
|
||||||
|
|
||||||
extern const u8 icon_smb_png[];
|
|
||||||
extern const u32 icon_smb_png_size;
|
|
||||||
|
|
||||||
extern const u8 battery_png[];
|
|
||||||
extern const u32 battery_png_size;
|
|
||||||
|
|
||||||
extern const u8 battery_red_png[];
|
|
||||||
extern const u32 battery_red_png_size;
|
|
||||||
|
|
||||||
extern const u8 battery_bar_png[];
|
|
||||||
extern const u32 battery_bar_png_size;
|
|
||||||
|
|
||||||
extern const u8 bg_options_png[];
|
|
||||||
extern const u32 bg_options_png_size;
|
|
||||||
|
|
||||||
extern const u8 bg_options_entry_png[];
|
|
||||||
extern const u32 bg_options_entry_png_size;
|
|
||||||
|
|
||||||
extern const u8 bg_game_selection_png[];
|
|
||||||
extern const u32 bg_game_selection_png_size;
|
|
||||||
|
|
||||||
extern const u8 bg_game_selection_entry_png[];
|
|
||||||
extern const u32 bg_game_selection_entry_png_size;
|
|
||||||
|
|
||||||
extern const u8 bg_preview_png[];
|
|
||||||
extern const u32 bg_preview_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_png[];
|
|
||||||
extern const u32 scrollbar_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_arrowup_png[];
|
|
||||||
extern const u32 scrollbar_arrowup_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_arrowup_over_png[];
|
|
||||||
extern const u32 scrollbar_arrowup_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_arrowdown_png[];
|
|
||||||
extern const u32 scrollbar_arrowdown_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_arrowdown_over_png[];
|
|
||||||
extern const u32 scrollbar_arrowdown_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_box_png[];
|
|
||||||
extern const u32 scrollbar_box_png_size;
|
|
||||||
|
|
||||||
extern const u8 scrollbar_box_over_png[];
|
|
||||||
extern const u32 scrollbar_box_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_textbox_png[];
|
|
||||||
extern const u32 keyboard_textbox_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_key_png[];
|
|
||||||
extern const u32 keyboard_key_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_key_over_png[];
|
|
||||||
extern const u32 keyboard_key_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_mediumkey_png[];
|
|
||||||
extern const u32 keyboard_mediumkey_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_mediumkey_over_png[];
|
|
||||||
extern const u32 keyboard_mediumkey_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_largekey_png[];
|
|
||||||
extern const u32 keyboard_largekey_png_size;
|
|
||||||
|
|
||||||
extern const u8 keyboard_largekey_over_png[];
|
|
||||||
extern const u32 keyboard_largekey_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 player1_point_png[];
|
|
||||||
extern const u32 player1_point_png_size;
|
|
||||||
|
|
||||||
extern const u8 player2_point_png[];
|
|
||||||
extern const u32 player2_point_png_size;
|
|
||||||
|
|
||||||
extern const u8 player3_point_png[];
|
|
||||||
extern const u32 player3_point_png_size;
|
|
||||||
|
|
||||||
extern const u8 player4_point_png[];
|
|
||||||
extern const u32 player4_point_png_size;
|
|
||||||
|
|
||||||
extern const u8 player1_grab_png[];
|
|
||||||
extern const u32 player1_grab_png_size;
|
|
||||||
|
|
||||||
extern const u8 player2_grab_png[];
|
|
||||||
extern const u32 player2_grab_png_size;
|
|
||||||
|
|
||||||
extern const u8 player3_grab_png[];
|
|
||||||
extern const u32 player3_grab_png_size;
|
|
||||||
|
|
||||||
extern const u8 player4_grab_png[];
|
|
||||||
extern const u32 player4_grab_png_size;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -54,7 +54,7 @@ SaveSnapshot (char * filepath, bool silent)
|
|||||||
char screenpath[1024];
|
char screenpath[1024];
|
||||||
strcpy(screenpath, filepath);
|
strcpy(screenpath, filepath);
|
||||||
screenpath[strlen(screenpath)-4] = 0;
|
screenpath[strlen(screenpath)-4] = 0;
|
||||||
sprintf(screenpath, "%s.png", screenpath);
|
strcat(screenpath, ".png");
|
||||||
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ int SavePreviewImg (char * filepath, bool silent)
|
|||||||
char screenpath[1024];
|
char screenpath[1024];
|
||||||
strcpy(screenpath, filepath);
|
strcpy(screenpath, filepath);
|
||||||
screenpath[strlen(screenpath)] = 0;
|
screenpath[strlen(screenpath)] = 0;
|
||||||
sprintf(screenpath, "%s.png", screenpath);
|
strcat(screenpath, ".png");
|
||||||
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
SaveFile((char *)gameScreenPng, screenpath, gameScreenPngSize, silent);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -1853,17 +1853,17 @@ static int MenuGameSaves(int action)
|
|||||||
case FILE_SRAM:
|
case FILE_SRAM:
|
||||||
strncpy(deletepath, filepath, 1024);
|
strncpy(deletepath, filepath, 1024);
|
||||||
deletepath[strlen(deletepath)-4] = 0;
|
deletepath[strlen(deletepath)-4] = 0;
|
||||||
sprintf(deletepath, "%s.srm", deletepath);
|
strcat(deletepath, ".srm");
|
||||||
remove(deletepath); // Delete the *.srm file (Battery save file)
|
remove(deletepath); // Delete the *.srm file (Battery save file)
|
||||||
break;
|
break;
|
||||||
case FILE_SNAPSHOT:
|
case FILE_SNAPSHOT:
|
||||||
strncpy(deletepath, filepath, 1024);
|
strncpy(deletepath, filepath, 1024);
|
||||||
deletepath[strlen(deletepath)-4] = 0;
|
deletepath[strlen(deletepath)-4] = 0;
|
||||||
sprintf(deletepath, "%s.png", deletepath);
|
strcat(deletepath, ".png");
|
||||||
remove(deletepath); // Delete the *.png file (Screenshot file)
|
remove(deletepath); // Delete the *.png file (Screenshot file)
|
||||||
strncpy(deletepath, filepath, 1024);
|
strncpy(deletepath, filepath, 1024);
|
||||||
deletepath[strlen(deletepath)-4] = 0;
|
deletepath[strlen(deletepath)-4] = 0;
|
||||||
sprintf(deletepath, "%s.frz", deletepath);
|
strcat(deletepath, ".frz");
|
||||||
remove(deletepath); // Delete the *.frz file (Save State file)
|
remove(deletepath); // Delete the *.frz file (Save State file)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user