Skip to content

Commit

Permalink
Allow using custom bannertool and makerom for 3ds, for wav format not…
Browse files Browse the repository at this point in the history
… found error

You can compile the latest version of bannertool for your system and have retroarch build with that instead of the builtin one that fails on windows.
  • Loading branch information
meepingsnesroms committed Jan 4, 2018
1 parent c04b555 commit 2e0eb4d
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 16 deletions.
29 changes: 21 additions & 8 deletions Makefile.ctr
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,28 @@ STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)

ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-linux
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-mac
BANNERTOOL = pkg/ctr/tools/bannertool-mac
ifeq ($(strip $(CTRBANNERTOOL)),)
ifneq ($(findstring Linux,$(shell uname -a)),)
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
BANNERTOOL = pkg/ctr/tools/bannertool-mac
else
BANNERTOOL = pkg/ctr/tools/bannertool.exe
endif
else
MAKEROM = pkg/ctr/tools/makerom.exe
BANNERTOOL = pkg/ctr/tools/bannertool.exe
BANNERTOOL = $(CTRBANNERTOOL)
endif

ifeq ($(strip $(CTRMAKEROM)),)
ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-mac
else
MAKEROM = pkg/ctr/tools/makerom.exe
endif
else
MAKEROM = $(CTRMAKEROM)
endif

%.o: %.vsh %.gsh
Expand Down
29 changes: 21 additions & 8 deletions Makefile.ctr.salamander
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,28 @@ STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)

ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-linux
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-mac
BANNERTOOL = pkg/ctr/tools/bannertool-mac
ifeq ($(strip $(CTRBANNERTOOL)),)
ifneq ($(findstring Linux,$(shell uname -a)),)
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
BANNERTOOL = pkg/ctr/tools/bannertool-mac
else
BANNERTOOL = pkg/ctr/tools/bannertool.exe
endif
else
MAKEROM = pkg/ctr/tools/makerom.exe
BANNERTOOL = pkg/ctr/tools/bannertool.exe
BANNERTOOL = $(CTRBANNERTOOL)
endif

ifeq ($(strip $(CTRMAKEROM)),)
ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = pkg/ctr/tools/makerom-mac
else
MAKEROM = pkg/ctr/tools/makerom.exe
endif
else
MAKEROM = $(CTRMAKEROM)
endif

%.o: %.vsh %.gsh
Expand Down
Binary file added pkg/ctr/assets/silent.cwav
Binary file not shown.
Binary file added retroarch_3ds.3ds
Binary file not shown.
Binary file added retroarch_3ds.bnr
Binary file not shown.
Binary file added retroarch_3ds.cia
Binary file not shown.
1 change: 1 addition & 0 deletions retroarch_3ds.core
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xBAC03
Binary file added retroarch_3ds.icn
Binary file not shown.

0 comments on commit 2e0eb4d

Please sign in to comment.