Index: src/dvd_reader.c =================================================================== --- src/dvd_reader.c (revision 1120) +++ src/dvd_reader.c (working copy) @@ -30,7 +30,9 @@ #include #include #include +#ifndef GEKKO #include +#endif /* misc win32 helpers */ #ifdef WIN32 @@ -371,6 +373,14 @@ return ret_val; } +#ifdef GEKKO + if (!strcmp(path,"/dev/di")) { + ret_val = DVDOpenImageFile( path, have_css ); + free(path); + return ret_val; + } +#endif + /* If we can't stat the file, give up */ fprintf( stderr, "libdvdread: Can't stat %s\n", path ); perror(""); @@ -412,7 +422,8 @@ return NULL; } -#ifndef WIN32 /* don't have fchdir, and getcwd( NULL, ... ) is strange */ +#if !defined(WIN32) && !defined(GEKKO) + /* don't have fchdir, and getcwd( NULL, ... ) is strange */ /* Also WIN32 does not have symlinks, so we don't need this bit of code. */ /* Resolve any symlinks and get the absolut dir name. */ @@ -596,6 +607,7 @@ */ static int findDirFile( const char *path, const char *file, char *filename ) { +#ifndef GEKKO DIR *dir; struct dirent *ent; @@ -613,6 +625,7 @@ } closedir( dir ); +#endif return -1; } Index: config.h =================================================================== --- config.h (revision 0) +++ config.h (revision 0) @@ -0,0 +1,9 @@ +/* Automatically generated by configure, do not edit */ +#include "version.h" + +#include + +int gekko_gettimeofday(struct timeval *tv, void *tz); + +#define gettimeofday(TV, TZ) gekko_gettimeofday((TV), (TZ)) + Index: version.h =================================================================== --- version.h (revision 0) +++ version.h (revision 0) @@ -0,0 +1 @@ +#define VERSION "SVN-r1120" Index: config.mak =================================================================== --- config.mak (revision 0) +++ config.mak (revision 0) @@ -0,0 +1,24 @@ +# Automatically generated by configure, do not edit +PREFIX=$(DEVKITPRO)/3rd/wii +libdir=$(DEVKITPRO)/3rd/wii/lib +shlibdir=$(DEVKITPRO)/3rd/wii/lib +incdir= +dvdread_incdir=$(DEVKITPRO)/3rd/wii/include/libdvdread +BUILD_SHARED=no +BUILD_STATIC=yes +SHLIB_VERSION=4.1.2 +SHLIB_MAJOR=4 +CC=$(DEVKITPPC)/bin/powerpc-gekko-gcc +AR=$(DEVKITPPC)/bin/powerpc-gekko-ar +LD=$(DEVKITPPC)/bin/powerpc-gekko-ld +RANLIB=$(DEVKITPPC)/bin/powerpc-gekko-ranlib +MAKE=make +CFLAGS=-O2 -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -DWORDS_BIGENDIAN -DPATH_MAX=1024 -DHAVE_DVDCSS_DVDCSS_H -I../../mplayer-trunk/libdvdcss +LDFLAGS= +SHLDFLAGS=-shared +INSTALLSTRIP= +USEDEBUG=-g + +SRC_PATH="/home/dhewg/devel/haxx/libdvdread-trunk" +SRC_PATH_BARE=/home/dhewg/devel/haxx/libdvdread-trunk + Index: Makefile =================================================================== --- Makefile (revision 1120) +++ Makefile (working copy) @@ -4,10 +4,6 @@ .SUFFIXES: .so -AR=ar -LD=ld -RANLIB=ranlib - VPATH+= $(SRC_PATH_BARE)/src CFLAGS += $(USEDEBUG) -Wall -funsigned-char