Changes between Version 1 and Version 2 of Exposed_VFS_Functions


Ignore:
Timestamp:
May 4, 2014, 6:48:27 AM (10 years ago)
Author:
leper
Comment:

Update

Legend:

Unmodified
Added
Removed
Modified
  • Exposed_VFS_Functions

    v1 v2  
    1010These stateless functions provide basic file system access within the VFS sandbox. Expected use is in map/saved game selection dialogs; more complex tasks should utilize the complete vfs.h native code interface.
    1111
    12 == buildFileList ==
     12== !BuildFileList ==
    1313 * '''Overview:'''
    1414  * Return an array of pathname strings, one for each matching entry in the specified directory.
    1515 * '''Syntax:'''
    16   * pathnames = buildFileList(directory [, filter_string [, recurse]]);
     16  * pathnames = Engine.!BuildFileList(directory [, filter_string [, recurse]]);
    1717 * '''Parameters:'''
    1818  * directory: VFS path
     
    2424  * Full pathnames of each file/subdirectory are returned, ready for use as a "filename" for the other functions.
    2525
    26 == getFileMTime ==
     26== !FileExists ==
     27 * '''Overview:'''
     28  * Return true iff the specified file exits.
     29 * '''Syntax:'''
     30  * filexists = Engine.!FileExists(filename);
     31 * '''Parameters:'''
     32   * filename: VFS filename (may include path)
     33 * '''Returns:'''
     34   * true iff file exists, false otherwise
     35 * '''Notes:'''
     36
     37== GetFileMTime ==
    2738 * '''Overview:'''
    2839  * Return time [seconds since 1970] of the last modification to the specified file.
    2940 * '''Syntax:'''
    30   * mtime = getFileMTime(filename);
     41  * mtime = Engine.GetFileMTime(filename);
    3142 * '''Parameters:'''
    3243  * filename: VFS filename (may include path)
     
    3546 * '''Notes:'''
    3647
    37 == getFileSize ==
     48== !GetFileSize ==
    3849 * '''Overview:'''
    3950  * Return current size of file.
    4051 * '''Syntax:'''
    41   * size = getFileSize(filename);
     52  * size = Engine.!GetFileSize(filename);
    4253 * '''Parameters:'''
    4354  * filename: VFS filename (may include path)
     
    4657 * '''Notes:'''
    4758
    48 == readFile ==
     59== !ReadFile ==
    4960 * '''Overview:'''
    5061  * Return file contents in a string.
    5162 * '''Syntax:'''
    52   * contents = readFile(filename);
     63  * contents = Engine.!ReadFile(filename);
    5364 * '''Parameters:'''
    5465  * filename: VFS filename (may include path)
     
    5768 * '''Notes:'''
    5869
    59 == readFileLines ==
     70== !ReadFileLines ==
    6071 * '''Overview:'''
    6172  * Return file contents as an array of lines.
    6273 * '''Syntax:'''
    63   * lines = readFileLines(filename);
     74  * lines = Engine.!ReadFileLines(filename);
    6475 * '''Parameters:'''
    6576  * filename: VFS filename (may include path)