A helper for the Lua APIs available in PsxSplash https://github.com/psxsplash/psxsplash
This is a very early release of this lua definitions file, so a lot of things may change. This was tested only in the Sumneko Lua Language Server for Visual Studio Code. Also PsxSplash is in active development, so this definitions file may lag behind.
If you're using the Sumneko Lua Language Server extension for Visual Studio Code, you'll need to add the lua file to the list of libraries.
- Press
CTRL+,(comma) on your keyboard - Based on your preference, select User or Workspace on the tabs on top. User should be pre-selected
- Search for the option
Lua.workspace.libraryor Lua > Workspace: Library - Add the path to the
psxsplash.d.luafile you previously downloaded. It's the only file you'll need.
Since this definitions file follows the PsxSplash API, I decided to use the same version number, plus the revision value, which is the version number of this definitions. For example, 2.3.0.1 stands for:
- Version 2.3.0 of PsxSplash
- Version 1 of the psxsplash.d.lua file
- Some functions may be missing. They'll be added as soon as possible
- Some functions may have the wrong signature or description. For the first releases, the descriptions are copied from the PsxSplash Lua API Reference page
- Numeric and Floating Point values are both currently defined as integers. Some functions may require a specific type and may not work with both.
- Most functions, arguments and return values needs better descriptions
- Some issues are reported with a TODO comment inside the lua definitions.