mirror of https://github.com/PCSX2/pcsx2.git
FPS2BIOS.
Small changes to makefile to enable code to compile out of the box. Fix to romdir.c to avoid uninitialised data being written to output. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@743 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
4620f4c5aa
commit
022fdf1bf3
|
@ -13,12 +13,10 @@ STRIP = strip
|
|||
OPTIMIZE = -O2 -fomit-frame-pointer -finline-functions -ffast-math
|
||||
CFLAGS = -Wall ${OPTIMIZE} -I.
|
||||
DIRS = kernel intro loader
|
||||
FILES = RESET ROMDIR EXTINFO ROMVER IOPBOOT EELOAD \
|
||||
FILES = RESET ROMDIR ROMVER IOPBOOT EELOAD \
|
||||
SYSMEM LOADCORE EXCEPMAN INTRMAN SSBUSC DMACMAN \
|
||||
TIMRMAN SYSCLIB HEAPLIB THREADMAN VBLANK STDIO \
|
||||
SIFMAN SIFCMD SIO2MAN LOADER INTRO IOPBTCONF FP2BLOGO \
|
||||
IOMAN MODLOAD ROMDRV IGREETING REBOOT LOADFILE CDVDMAN \
|
||||
CDVDFSV SIFINIT FILEIO SECRMAN EESYNC
|
||||
SIFMAN SIFCMD SIO2MAN LOADER INTRO IOPBTCONF FP2BLOGO
|
||||
|
||||
ps2romgen_exe: ps2romgen.o
|
||||
${CC} ${CFLAGS} ps2romgen.o -o build/ps2romgen_exe
|
||||
|
@ -33,7 +31,6 @@ fps2bios:
|
|||
for i in $(DIRS); do \
|
||||
(cd $$i; make; cd ..) \
|
||||
done;
|
||||
cp -f used/* build
|
||||
cp -f FP2BLOGO build
|
||||
cp -f IOPBTCONF build/
|
||||
(cd build; \
|
||||
|
|
|
@ -43,6 +43,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
for (i=1; i<argc; i++) {
|
||||
memset(&rd, 0, sizeof(rd));
|
||||
if (strcmp(argv[i], "ROMDIR") == 0) {
|
||||
strncpy(rd.fileName, argv[i], 9);
|
||||
rd.extInfoSize = 0;
|
||||
|
@ -55,7 +56,7 @@ int main(int argc, char *argv[]) {
|
|||
continue;
|
||||
}
|
||||
for (j=0; j<9; j++) {
|
||||
if (argv[i][j] == ',') break;
|
||||
if (argv[i][j] == ',' || argv[i][j] == 0) break;
|
||||
rd.fileName[j] = argv[i][j];
|
||||
}
|
||||
memset(rd.fileName+j, 0, 10-j);
|
||||
|
|
Loading…
Reference in New Issue