Code: Select all
extern uint8 romdisk[];
KOS_INIT_ROMDISK(romdisk);
Code: Select all
extern uint8 romdisk[];
KOS_INIT_ROMDISK(romdisk);
Code: Select all
#include <kos.h>
Code: Select all
/* romdisk */
extern uint8 romdisk[];
KOS_INIT_ROMDISK(romdisk);
Code: Select all
/rd/
Code: Select all
# SDL game port template
# (c)2003 Ian micheal
#
TARGET = game.elf
OBJS = game.o loader.o data.o
all: rm-elf $(TARGET)
include $(KOS_BASE)/Makefile.rules
KOS_CFLAGS += -ml -m4-single-only -pipe
clean:
-rm -f $(TARGET) $(OBJS) romdisk.*
rm-elf:
-rm -f $(TARGET) romdisk.*
$(TARGET): $(OBJS) romdisk.o
$(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET) $(KOS_START) \
$(OBJS) romdisk.o $(OBJEXTRA) -L$(KOS_BASE)/lib -lgcc -lSDL -lSDL_image -lpng -lz -ljpeg -lSDL_mixer -lSDL -loggvorbisplay -ltremor -lm -lmp3 -lm -lkallisti -lgcc $(KOS_LIBS)
romdisk.img:
$(KOS_GENROMFS) -f romdisk.img -d romdisk -v
romdisk.o: romdisk.img
$(KOS_BASE)/utils/bin2o/bin2o romdisk.img romdisk romdisk.o
run: $(TARGET)
$(KOS_LOADER) $(TARGET)
Code: Select all
/romdisk
blah.rom
Code: Select all
$(TARGET): $(OBJS) romdisk.o
$(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET) $(KOS_START) \
$(OBJS) romdisk.o $(OBJEXTRA) -L$(KOS_BASE)/lib $(KOS_LIBS)
romdisk.img:
$(KOS_GENROMFS) -f romdisk.img -d romdisk -v
romdisk.o: romdisk.img
$(KOS_BASE)/utils/bin2o/bin2o romdisk.img romdisk romdisk.o
Code: Select all
FILE *f = fopen(file, "r");
My example was because... Well, when I started writing it you hadn't posted.Ian Micheal wrote:I use kos1.1.9 it's faster more compact uses less memory smaller foot print Also lot of project are made for it changes have been made all my projects are for it. What was the point of your example? i posted a complete example for kos1.1.9 before you?
Newer version of kos i dont like it's IMO. Nothing wrong with kos 1.1.9 newer is not allways better.
todays throw-away living i guess people get like this.
Code: Select all
#NeoPop
KOS_LOCAL_CFLAGS=-I$(KOS_BASE)/include \
-g -D_REENTRANT -DDREAMCAST -DSDL -DINLINE="static inline" -DLOWERCASEFILES
TARGET = neopop.elf
OBJS = System_SDL/system_input.o System_SDL/system_io.o System_SDL/system_language.o System_SDL/system_graphics.o
System_SDL/system_sound.o System_SDL/system_main.o core/bios.o core/biosHLE.o core/dma.o core/flash.o core/gfx.o
core/gfx_scanline_colour.o core/gfx_scanline_mono.o core/interrupt.o core/mem.o core/neopop.o core/rom.o core/sound.o
core/state.o core/Z80_interface.o core/TLCS-900h/TLCS900h_disassemble_dst.o core/TLCS-900h/TLCS900h_disassemble_extra.o
core/TLCS-900h/TLCS900h_disassemble_reg.o core/TLCS-900h/TLCS900h_disassemble_src.o core/TLCS-900h/TLCS900h_interpret_dst.o
core/TLCS-900h/TLCS900h_interpret_reg.o core/TLCS-900h/TLCS900h_interpret_single.o core/TLCS-900h/TLCS900h_interpret_src.o
core/TLCS-900h/TLCS900h_registers.o core/z80/dasm.o System_SDL/system_comms.o core/TLCS-900h/TLCS900h_interpret.o
System_SDL/system_rom.o
PROBJS = core/z80/z80.c
all: neopop.bin rm-elf $(TARGET)
clean:
-rm -f $(TARGET) $(OBJS) romdisk.*
include $(KOS_BASE)/Makefile.rules
KOS_CFLAGS += -ml -m4-single-only -pipe
rm-elf:
-rm -f $(TARGET) romdisk.*
$(TARGET): $(OBJS) $(PROBJS) romdisk.o
$(KOS_CC) $(KOS_CFLAGS) $(KOS_LDFLAGS) -o $(TARGET) $(KOS_START) \
$(OBJS) $(PROBJS) romdisk.o $(OBJEXTRA) -L$(KOS_BASE)/lib -lgcc -lSDL -lm $(KOS_LIBS)
romdisk.img:
$(KOS_GENROMFS) -f romdisk.img -d romdisk -v
romdisk.o: romdisk.img
$(KOS_BASE)/utils/bin2o/bin2o romdisk.img romdisk romdisk.o
neopop.bin: neopop.elf
$(KOS_OBJCOPY) -O binary neopop.elf output.bin
$(KOS_BASE)/utils/scramble/scramble output.bin neopop.bin
run: $(TARGET)
$(KOS_LOADER) $(TARGET)
Code: Select all
$(OBJS) romdisk.o $(OBJEXTRA)
Code: Select all
$(OBJS) $(PROBJS) romdisk.o $(OBJEXTRA)
Well, that would explain it...Yeah i say he got it from the neogeo cd makefile when we had to change the cpu cores to m68k in genisis plus. if you remember we had to change the cores and you told me it might be good idea to use the gensis plus m68k core.
So the make file is geting a life all around the scene now. Mine at the time has Your name in it. On each project i use PROBJS.
Thanks!Handy your well Loved by me and i learn and bother to look at every thing you teach like your new Grafix tut. Im going to use that for some menu effects.
Code: Select all
FILE *fp=fopen(filename,O_RDONLY);
if (fp==NULL)
return FALSE;