Archives
The Archives
scripting namespace contains functions for managing archives.
Functions
all
Returns
Returns an array of all currently open archives.
create
string format_id : TheArchiveFormat id to create
Returns
Creates a new archive of the format specified in nil
if the archive could not be created (generally if the
Note
Currently only wad
and zip
formats are supported for creation
openFile
string path : The full path + name of the archive file to open
Returns
Attempts to open the file at nil
if it could not be opened.
If opening fails, the error that occurred should be available via slade.globalError()
.
close
(1)
Archive archive : The archive to close
Returns
Closes the given false
if
close
(2)
number index : The index of the archive to close
Returns
Closes the archive at all
). Returns false
if the given
closeAll
Closes all currently open archives.
fileExtensionsString
Returns
Returns a string with the extension filter for all supported archive file types.
See slade.browseFile
and the Open Archive example for more information.
baseResource
Returns
Returns the currently loaded base resource archive.
baseResourcePaths
Returns
Returns an array of configured base resource archive file paths.
TODO
Needs a better description
openBaseResource
number index : The base resource path index to open
Returns
Opens the base resource archive from the path at baseResourcePaths
).
TODO
Needs a better description
programResource
Returns
Returns the program resource archive (either slade.pk3
or the res
folder if you are running a dev build).
recentFiles
Returns
Returns an array of file paths to recently opened archives.
bookmarks
Returns [
]
Returns an array of all currently bookmarked entries.
addBookmark
ArchiveEntry entry : The entry to bookmark
Adds
removeBookmark
ArchiveEntry entry : The entry to un-bookmark
Returns
Removes false
if the given