Some google-ing makes me think we might need to link with newlib, but... can't try that now

Update: linking to a newlib doesn't seem to help.
Moderator: OpenTTD Developers
Code: Select all
#include <kos.h>
#include <arch/arch.h>
KOS_INIT_FLAGS(INIT_DEFAULT | INIT_MALLOCSTATS);
extern uint8 romdisk[]; KOS_INIT_ROMDISK(romdisk);
bool FileExists(const char *filename) {
printf("Attempting to see if %s exists...",filename);
FILE *f = fopen(filename, "r");
if (f == NULL) {
fprintf(stderr,"NOT FOUND!\n");
return true;
} else printf("FOUND IT FOUND IT FOUND IT!\n");
fclose(f);
return true;
}
int main(int argc, char* argv[]) {
int ret;
printf("testing...\n");
FileExists("/openttd.cfg");
FileExists("/rd/openttd.cfg");
printf("testing...finished\n");
while (1) printf(".");
return ret;
}
Code: Select all
kos-c++ $KOS_CFLAGS -o main.o ../objs/release/romdisk.o main.cpp -DKOS $KOS_LDFLAGS $KOS_LIBS
kos-objcopy -R .stack -O binary main.o 1ST_READ.BIN
Code: Select all
int main(int argc, char* argv[])
{
int ret;char buffer[128];
printf("testing...\n");
FileExists("/openttd.cfg");
FileExists("/cd/ip.bin");
FileExists("/cd/IP.BIN");
FileExists("/rd/openttd.cfg");
FILE *f = fopen("/rd/openttd.cfg","rb");
fread (buffer,1,127,f);
fprintf(stderr,"cfg:%s",buffer);
fclose(f);
free(buffer);
printf("testing...finished\n");
while (1) {}
return ret;
}
Code: Select all
testing...
NOT FOUND!
fs_iso9660: disc change detected
(joliet level 3 extensions detected)
Attempting to see if /openttd.cfg exists...Attempting to see if /cd/ip.bin exist
s...FOUND IT FOUND IT FOUND IT!
Attempting to see if /cd/IP.BIN exists...FOUND IT FOUND IT FOUND IT!
Attempting to see if /rd/openttd.cfg exists...FOUND IT FOUND IT FOUND IT!
cfg:
[misc]
display_opt = SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION|FULL_DETAIL|WAYPOINTS
Code: Select all
///#include <kos.h>
#include <cstdio>
#include <cstddef>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <arch/arch.h>
KOS_INIT_FLAGS(INIT_DEFAULT | INIT_MALLOCSTATS);
extern uint8 romdisk[]; KOS_INIT_ROMDISK(romdisk);
bool FileExists(const char *filename) {
printf("Attempting to see if %s exists...",filename);
FILE *f = fopen(filename, "r");
if (f == NULL) {
fprintf(stderr,"NOT FOUND!\n");
return true;
} else printf("FOUND IT FOUND IT FOUND IT!\n");
fclose(f);
return true;
}
int main(int argc, char* argv[]) {
int ret;
printf("testing...\n");
FileExists("/openttd.cfg");
FileExists("/rd/openttd.cfg");
printf("testing...finished\n");
while (1) {} //printf(".");
return ret;
}
Code: Select all
maple: active drivers:
Dreameye (Camera): Camera
Sound Input Peripheral: Microphone
PuruPuru (Vibration) Pack: JumpPack
VMU Driver: Clock, LCD, MemoryCard
Mouse Driver: Mouse
Keyboard Driver: Keyboard
Controller Driver: Controller
DMA Buffer at ac940260
C:BSC_PCTRA = 000A03F0
C:BSC_PCTRA = 000A03F0
vid_set_mode: 640x480IL NTSC
VREG = 03
fs_romdisk: mounting image at 0x8c27b0e0 at /rd
maple: attached devices:
A0: Dreamcast Controller (01000000: Controller)
WELCOME TO OpenTTD FOR THE DREAMCAST d00d!
ini: ignoring invalid NewGRF 'jpset_bldw.GRF': not found
I removed the romdisk as the romdisk seems to be eating away "our" precious memory. So now everything needs to be in the CDI image.stevenh wrote:What did you do to get the game to load further? I imagine something was causing another freeze?
Even if I had the time I wouldn't bother... as everyone has so rightly indicated: the Dreamcast is dead.VasiliyRS wrote:Hello guys, can you update Dreamcast port to latest release ?
Users browsing this forum: Google [Bot] and 5 guests