File SMCore-Updater.mys
SMCore Updater VERSION: 2025.04.05
- Sylvain Machefert
Summary
Return type | Function and summary |
---|---|
int | SMCoreRequireVersion(int version) Ask for a minimal version of SMCore, download update if necessary. |
Function
SMCoreRequireVersion(int version)
Ask for a minimal version of SMCore, download update if necessary.
If SMCore files were never downlodaded nor distributed, or existing files are too old, then new files are downloaded in user's Scripts/Includes folder.
Then, unit tests run. In cas of error displayed in the console, please contact me on the Myriad forum.
Parameter | Type | Default | Description |
---|---|---|---|
version | int | Required version, e.g. 20231101 for November 1st, 2023 |
- Return
- int: The installed version of SMCore files
- Error
- If version is not a valid number
- Example
Include("SMCore-Updater") SMCoreRequireVersion(20231101)