#50 closed task (fixed)
Virtual File System
Reported by: | Stuart Walpole | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description (last modified by )
Additional parameter to extract folder names.
- on-demand loading = assimilate changed files without restarting game
- GUI Hotload.
Scope/cache management
VFS should handle newline conversion (recognize all \r\n \n \r combinations and treat them as newlines) when reading files.
Change History (4)
comment:1 by , 18 years ago
Description: | modified (diff) |
---|
comment:2 by , 18 years ago
Rather cryptic, I apologise. :)
I was referring to an addition to your VFS JS functions:
http://www.wildfiregames.com/users/code/wiki/index.php?title=Exposed_VFS_Functions
buildFileList() returns an array of filenames in the specified directory. Sometimes we'd like to extract a list of *folder* names within a directory (possibly recursing). For example, a function to list the player profile subfolders under profiles/ so the player can select a profile from a combobox.
(I hacked around it by searching for an identical file within each folder, then concatenating the strings; which is why there are some files in profiles/ that don't do anything :).)
Perhaps do it as a separate buildDirList() function, so buildFileList() doesn't get cluttered with extra parameters?
comment:3 by , 18 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Oh dear, I didn't "accept" this ticket and so didn't see or receive notification of your comment :/ Fortunately the existing API supports this via vfs_dir_next_ent's "filter" mechanism: passing a filter of "/" returns only subdirectories. buildFileList has been renamed to buildDirEntList to emphasize that directories can be returned as well.
I'll mark this as closed because no further VFS support is needed for hotloading.
comment:4 by , 14 years ago
Milestone: | Advanced Playability Demo |
---|
Milestone Advanced Playability Demo deleted
Request for clarification: what is meant by "Additional parameter to extract folder names."?
I'm going to mark "scope/cache" management and "newline conversion" as complete; those have since been added (the former in v2 of the file code - it's now handled automagically and works well enough for now).
Moving preloading to new ticket #78.