LitDev Extension API
LDResources
![](images/IntellisenseObject.png)
Save and load resources to a binary file.
The resources are stored in a single file with the same name and location as the source, with extension sbres.
Resources indlude all ImageList images, all sounds played with Sound.Play, as well as optionally other files or variables.
AddFile
![]() |
AddText
![]() |
CleanTemp
![]() |
ExtractFile
![]() |
Files
![]() |
Images
![]() |
Load
![]() |
Save
![]() |
Sounds
![]() |
Texts
![]() |
AddFile(fileName)
![](images/IntellisenseMethod.png)
Add any file to the resources to be stored.
fileName The full path to the file.
returns "SUCCESS" or "FAILED".
AddText(text)
![](images/IntellisenseMethod.png)
Add text, or may be variable (including arrays) to the resources to be stored.
text The text or a Small Basic variable to add to the resources.
CleanTemp()
![](images/IntellisenseMethod.png)
Delete temporary sound files.
ExtractFile(fileName)
![](images/IntellisenseMethod.png)
Extract a saved file to the current directory (Program.Directory).
fileName The filename returned by Files method.
returns "SUCCESS" or "FAILED".
Files
![](images/IntellisenseProperty.png)
Get an array of loaded files, that may be extracted with ExtractFile method.
Images
![](images/IntellisenseProperty.png)
Get an array of loaded images, pre-loaded for use with ImageList.
Load()
![](images/IntellisenseMethod.png)
Load all previously saved resources from the sbres file.
ImageList and sounds are all auto loaded ready for use.
Sound files are re-created in your %temp% folder since they are required by Sound.Play.
returns "SUCCESS" or "FAILED".
Save()
![](images/IntellisenseMethod.png)
Save all resource to the sbres file.
This includes all ImageList images, pre-run sounds (Sound.Play) as well as any added files or text/variables.
returns "SUCCESS" or "FAILED".
Sounds
![](images/IntellisenseProperty.png)
Get an array of loaded sounds, pre-loaded for use with Sound.Play.
Texts
![](images/IntellisenseProperty.png)
Get an array list of all loaded text/variables.