Fixed the fix that didn't fixed cflash... but it's still not working

right...
Added some #include in SPU
This commit is contained in:
yabause 2006-11-17 21:33:59 +00:00
parent f0b477235f
commit b6a69effda
2 changed files with 9 additions and 7 deletions

View File

@ -19,6 +19,9 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <stdlib.h>
#include <string.h>
#include "debug.h" #include "debug.h"
#include "ARM9.h" #include "ARM9.h"
#include "MMU.h" #include "MMU.h"

View File

@ -181,18 +181,17 @@ void add_file(char *fname, FsEntry * entry, int fileLevel) {
/* List all files and subdirectories recursively */ /* List all files and subdirectories recursively */
void list_files(char *fpath, int fileLevel) { void list_files(char *fpath) {
void * hFind; void * hFind;
FsEntry entry; FsEntry entry;
char DirSpec[255 + 1],SubDir[255+1]; char DirSpec[255 + 1],SubDir[255+1];
u32 dwError; u32 dwError;
char *fname; char *fname;
int i,j; int i,j;
int fileLevel;
fileLevel++; maxLevel++;
if (fileLevel > maxLevel) { fileLevel = maxLevel;
maxLevel = fileLevel;
}
strncpy(DirSpec, fpath, strlen(fpath)+1); strncpy(DirSpec, fpath, strlen(fpath)+1);
@ -214,7 +213,7 @@ void list_files(char *fpath, int fileLevel) {
// FIXME: Unix filenames can start with a . // FIXME: Unix filenames can start with a .
if ((entry.flags & FS_IS_DIR) && (fname[0] != '.')) { if ((entry.flags & FS_IS_DIR) && (fname[0] != '.')) {
sprintf(SubDir, "%s%c%s", fpath, FS_SEPARATOR, fname); sprintf(SubDir, "%s%c%s", fpath, FS_SEPARATOR, fname);
list_files(SubDir, fileLevel); list_files(SubDir);
} }
} }
@ -263,7 +262,7 @@ BOOL cflash_build_fat() {
numExtraEntries[i] = 0; numExtraEntries[i] = 0;
} }
list_files(sRomPath, fileLevel); list_files(sRomPath);
k = 0; k = 0;
clusterNum = rootCluster = (SECRESV + SECPERFAT)/SECPERCLUS; clusterNum = rootCluster = (SECRESV + SECPERFAT)/SECPERCLUS;