Update all samples to new requirements, and expose a makefile to compile all of them

This commit is contained in:
Francisco Javier Trujillo Mata
2021-11-13 16:56:29 +01:00
parent 6e80c9bd29
commit 0a803b844d
86 changed files with 186 additions and 114 deletions

View File

@@ -2,7 +2,7 @@ TARGET = main
OBJS = main.o decrypt.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -2,7 +2,7 @@ TARGET = main
OBJS = main.o encrypt.o hash.o psf.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

View File

@@ -75,7 +75,7 @@ int find_psf_section(const char *name,
&& (sectBufLen < dataLen) && (sectBufLoc < dataLen))
{
/* Check if this is the section we want */
if (!stricmp((char *)&data[strLoc + nameLoc], name))
if (!strcasecmp((char *)&data[strLoc + nameLoc], name))
{
/* Update the location and size */
*location = &data[headLen + sectBufLoc];

View File

@@ -5,7 +5,7 @@ OBJS = main.o
#PSP_FW_VERSION = 200
#BUILD_PRX = 1
LIBS = -lpsputility -lpspgum -lpspgu -lm
LIBS = -lpspgum -lpspgu
CFLAGS = -O2 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti