dialog.js
/* Dialog.file_construct_ref(filename, usage, gameid) -- create a fileref
 *
 * Create a fileref. This does not create a file; it's just a thing you can use
 * to read an existing file or create a new one. Any unspecified arguments are
 * assumed to be the empty string.
 */
Dialog.file_construct_ref(filename, usage, gameid) -- create a fileref
Create a fileref. This does not create a file; it's just a thing you can use
to read an existing file or create a new one. Any unspecified arguments are
assumed to be the empty string.
Dialog . file_construct_ref ( filename usage gameid ) -- create a fileref Create a fileref . This does not create a file ; it ' s just a thing you can use to read an existing file or create a new one . Any unspecified arguments are assumed to be the empty string .
function file_construct_ref(filename, usage, gameid) {
    if (!filename)
        filename = '';
    if (!usage)
        usage = '';
    if (!gameid)
        gameid = '';
    var key = usage + ':' + gameid + ':' + filename;
    var ref = { dirent: 'dirent:'+key, content: 'content:'+key,
                filename: filename, usage: usage, gameid: gameid };
    return ref;
}
function file_construct_ref ( filename , usage , gameid ) { if ( ! filename ) filename = '' ; if ( ! usage ) usage = '' ; if ( ! gameid ) gameid = '' ; var key = usage + ':' + gameid + ':' + filename ; var ref = { dirent : 'dirent:' + key , content : 'content:' + key , filename : filename , usage : usage , gameid : gameid } ; return ref ; }
Dialog.file_construct_ref(filename, usage, gameid) -- create a fileref
 Create a fileref.
Dialog . file_construct_ref ( filename usage gameid ) -- create a fileref Create a fileref .