Start of an authors file for those that have contributed to the Linux port.
The start of additions from MrGrim's tree.
This commit is contained in:
6
zsnes/linux/AUTHORS
Normal file
6
zsnes/linux/AUTHORS
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
This is a list of people primarily responsible for the Linux port.
|
||||||
|
|
||||||
|
Dan "theoddone33" Olson
|
||||||
|
Steven "relnev" Fuller
|
||||||
|
EvilTypeGuy
|
||||||
|
Andrew "prometheus" Henderson
|
||||||
@@ -1380,20 +1380,40 @@ GUIdirStartLoc dd 0
|
|||||||
GUInumentries dd 0
|
GUInumentries dd 0
|
||||||
GUIdirentries dd 0
|
GUIdirentries dd 0
|
||||||
GUIfileentries dd 0
|
GUIfileentries dd 0
|
||||||
|
%ifdef __LINUX__
|
||||||
|
NEWSYM GUIsmcfind, db '*.smc',0
|
||||||
|
NEWSYM GUIsfcfind, db '*.sfc',0
|
||||||
|
NEWSYM GUIswcfind, db '*.swc',0
|
||||||
|
NEWSYM GUIfigfind, db '*.fig',0
|
||||||
|
%else
|
||||||
NEWSYM GUIsmcfind, db '*.SMC',0
|
NEWSYM GUIsmcfind, db '*.SMC',0
|
||||||
NEWSYM GUIsfcfind, db '*.SFC',0
|
NEWSYM GUIsfcfind, db '*.SFC',0
|
||||||
NEWSYM GUIswcfind, db '*.SWC',0
|
NEWSYM GUIswcfind, db '*.SWC',0
|
||||||
NEWSYM GUIfigfind, db '*.FIG',0
|
NEWSYM GUIfigfind, db '*.FIG',0
|
||||||
|
%endif
|
||||||
NEWSYM GUIfind058, db '*.058',0
|
NEWSYM GUIfind058, db '*.058',0
|
||||||
NEWSYM GUIfind078, db '*.078',0
|
NEWSYM GUIfind078, db '*.078',0
|
||||||
|
%ifdef __LINUX__
|
||||||
|
NEWSYM GUIfindUSA, db '*.usa',0
|
||||||
|
NEWSYM GUIfindJAP, db '*.jap',0
|
||||||
|
NEWSYM GUIfindBIN, db '*.bin',0
|
||||||
|
NEWSYM GUIfindZIP, db '*.zip',0
|
||||||
|
NEWSYM GUIfindGZIP, db '*.gz',0
|
||||||
|
%else
|
||||||
NEWSYM GUIfindUSA, db '*.USA',0
|
NEWSYM GUIfindUSA, db '*.USA',0
|
||||||
NEWSYM GUIfindJAP, db '*.JAP',0
|
NEWSYM GUIfindJAP, db '*.JAP',0
|
||||||
NEWSYM GUIfindBIN, db '*.BIN',0
|
NEWSYM GUIfindBIN, db '*.BIN',0
|
||||||
NEWSYM GUIfindZIP, db '*.ZIP',0
|
NEWSYM GUIfindZIP, db '*.ZIP',0
|
||||||
NEWSYM GUIfindGZIP, db '*.GZ',0
|
NEWSYM GUIfindGZIP, db '*.GZ',0
|
||||||
|
%endif
|
||||||
NEWSYM GUIfind1, db '*.1',0
|
NEWSYM GUIfind1, db '*.1',0
|
||||||
|
%ifdef __LINUX__
|
||||||
|
GUIfindDIR db '*',0
|
||||||
|
NEWSYM GUIfindall, db '*',0
|
||||||
|
%else
|
||||||
GUIfindDIR db '*.*',0
|
GUIfindDIR db '*.*',0
|
||||||
NEWSYM GUIfindall, db '*.*',0
|
NEWSYM GUIfindall, db '*.*',0
|
||||||
|
%endif
|
||||||
NEWSYM DTALoc, times 2048+32 db 0
|
NEWSYM DTALoc, times 2048+32 db 0
|
||||||
|
|
||||||
; Routines to load from the Quick Menu
|
; Routines to load from the Quick Menu
|
||||||
|
|||||||
@@ -18,7 +18,10 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <dirent.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
@@ -182,7 +185,11 @@ DWORD ZFileGetFTime()
|
|||||||
|
|
||||||
DWORD ZFileMKDir()
|
DWORD ZFileMKDir()
|
||||||
{
|
{
|
||||||
|
#ifdef __LINUX__
|
||||||
|
return(mkdir(MKPath, 0xff));
|
||||||
|
#else
|
||||||
return(mkdir(MKPath));
|
return(mkdir(MKPath));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD ZFileCHDir()
|
DWORD ZFileCHDir()
|
||||||
@@ -214,16 +221,33 @@ DWORD DTALocPos;
|
|||||||
//};
|
//};
|
||||||
|
|
||||||
|
|
||||||
int FindFirstHandle;
|
|
||||||
int TempFind;
|
int TempFind;
|
||||||
#ifndef __LINUX__
|
#ifndef __LINUX__
|
||||||
|
int FindFirstHandle;
|
||||||
struct _finddata_t FindDataStruct;
|
struct _finddata_t FindDataStruct;
|
||||||
|
#else
|
||||||
|
struct dirent *next;
|
||||||
|
DIR *FindFirstHandle;
|
||||||
|
int ignoredirs=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DWORD ZFileFindNext()
|
DWORD ZFileFindNext()
|
||||||
{
|
{
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
STUB_FUNCTION;
|
//STUB_FUNCTION;
|
||||||
|
struct stat filetype;
|
||||||
|
|
||||||
|
next = readdir (FindFirstHandle );
|
||||||
|
if ( next == NULL ) return -1;
|
||||||
|
|
||||||
|
*(char *)(DTALocPos + 0x15) = 0;
|
||||||
|
|
||||||
|
stat ( next->d_name, &filetype );
|
||||||
|
if(ZFileFindATTRIB&0x10 && !S_ISDIR ( filetype.st_mode )) return(ZFileFindNext());
|
||||||
|
if((ZFileFindATTRIB&0x10==0) && S_ISDIR ( filetype.st_mode )) return(ZFileFindNext());
|
||||||
|
if ( S_ISDIR ( filetype.st_mode ))
|
||||||
|
*(char *)(DTALocPos + 0x15) = 0x10;
|
||||||
|
strcpy((char *)DTALocPos + 0x1E, next->d_name);
|
||||||
#else
|
#else
|
||||||
TempFind=_findnext(FindFirstHandle,&FindDataStruct);
|
TempFind=_findnext(FindFirstHandle,&FindDataStruct);
|
||||||
if(TempFind==-1) return(-1);
|
if(TempFind==-1) return(-1);
|
||||||
@@ -236,14 +260,37 @@ DWORD ZFileFindNext()
|
|||||||
if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10;
|
if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10;
|
||||||
strcpy((char *)DTALocPos+0x1E,FindDataStruct.name);
|
strcpy((char *)DTALocPos+0x1E,FindDataStruct.name);
|
||||||
if(TempFind==-1) return(-1);
|
if(TempFind==-1) return(-1);
|
||||||
return(0);
|
|
||||||
#endif
|
#endif
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD ZFileFindFirst()
|
DWORD ZFileFindFirst()
|
||||||
{
|
{
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
STUB_FUNCTION;
|
//STUB_FUNCTION;
|
||||||
|
struct stat filetype;
|
||||||
|
|
||||||
|
FindFirstHandle = opendir ( ZFileFindPATH );
|
||||||
|
|
||||||
|
*(char *)(DTALocPos + 0x15) = 0;
|
||||||
|
|
||||||
|
TempFind = 0;
|
||||||
|
|
||||||
|
if ( FindFirstHandle==NULL ) return -1;
|
||||||
|
|
||||||
|
next = readdir ( FindFirstHandle );
|
||||||
|
if (next == NULL) return -1;
|
||||||
|
|
||||||
|
stat ( next->d_name, &filetype );
|
||||||
|
|
||||||
|
if(ZFileFindATTRIB&0x10 && !S_ISDIR ( filetype.st_mode )) return(ZFileFindNext());
|
||||||
|
if((ZFileFindATTRIB&0x10==0) && S_ISDIR ( filetype.st_mode )) return(ZFileFindNext());
|
||||||
|
|
||||||
|
if ( S_ISDIR ( filetype.st_mode ))
|
||||||
|
*(char *)(DTALocPos + 0x15) = 0x10;
|
||||||
|
|
||||||
|
strcpy ((char *) DTALocPos + 0x1E, next->d_name);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
FindFirstHandle=_findfirst(ZFileFindPATH,&FindDataStruct);
|
FindFirstHandle=_findfirst(ZFileFindPATH,&FindDataStruct);
|
||||||
*(char *)(DTALocPos+0x15)=0;
|
*(char *)(DTALocPos+0x15)=0;
|
||||||
@@ -255,19 +302,20 @@ DWORD ZFileFindFirst()
|
|||||||
if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10;
|
if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10;
|
||||||
strcpy((char *) DTALocPos+0x1E,FindDataStruct.name);
|
strcpy((char *) DTALocPos+0x1E,FindDataStruct.name);
|
||||||
if(FindFirstHandle==-1) return(-1);
|
if(FindFirstHandle==-1) return(-1);
|
||||||
return(0);
|
|
||||||
#endif
|
#endif
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DWORD ZFileFindEnd() // for compatibility with windows later
|
DWORD ZFileFindEnd() // for compatibility with windows later
|
||||||
{
|
{
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
STUB_FUNCTION;
|
//STUB_FUNCTION;
|
||||||
|
closedir(FindFirstHandle);
|
||||||
#else
|
#else
|
||||||
_findclose(FindFirstHandle);
|
_findclose(FindFirstHandle);
|
||||||
return(0);
|
|
||||||
#endif
|
#endif
|
||||||
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user