# refactoring

- color: the sse codepath is now detected and activated from within
color.cpp, which avoids making ia32 dependent on the color header. it's
called from gamesetup!InitRenderer.
- move VFSUtil::EnumDirEnts to vfs.cpp!vfs_dir_enum - allows it to be
used from within lib/ without dependency on ps (annoying for other
projects)

This was SVN commit r3764.
This commit is contained in:
janwas
2006-04-14 06:32:05 +00:00
parent 099e860915
commit 6fbce9c355
16 changed files with 136 additions and 142 deletions
+2 -2
View File
@@ -99,12 +99,12 @@ JSBool JSI_VFS::BuildFileList( JSContext* cx, JSObject* UNUSED(obj), uintN argc,
if( !ToPrimitive<bool>( cx, argv[2], recursive ) )
return( JS_FALSE );
}
int flags = recursive? VFSUtil::RECURSIVE : 0;
int flags = recursive? VFS_DIR_RECURSIVE : 0;
// build array in the callback function
BuildFileListState state(cx);
VFSUtil::EnumDirEnts( path, flags, filter, BuildFileListCB, &state );
vfs_dir_enum( path, flags, filter, BuildFileListCB, &state );
*rval = OBJECT_TO_JSVAL( state.filename_array );
return( JS_TRUE );