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 47616ece38
commit ba7f1b6037
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
*/
#include <stdlib.h>
#include <string.h>
#include "debug.h"
#include "ARM9.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 */
void list_files(char *fpath, int fileLevel) {
void list_files(char *fpath) {
void * hFind;
FsEntry entry;
char DirSpec[255 + 1],SubDir[255+1];
u32 dwError;
char *fname;
int i,j;
int fileLevel;
fileLevel++;
if (fileLevel > maxLevel) {
maxLevel = fileLevel;
}
maxLevel++;
fileLevel = maxLevel;
strncpy(DirSpec, fpath, strlen(fpath)+1);
@ -214,7 +213,7 @@ void list_files(char *fpath, int fileLevel) {
// FIXME: Unix filenames can start with a .
if ((entry.flags & FS_IS_DIR) && (fname[0] != '.')) {
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;
}
list_files(sRomPath, fileLevel);
list_files(sRomPath);
k = 0;
clusterNum = rootCluster = (SECRESV + SECPERFAT)/SECPERCLUS;