File SMCore-Updater.mys

SMCore Updater

Author
Sylvain Machefert

Summary

Return typeFunction and summary
intSMCoreRequireVersion(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.

ParameterTypeDefaultDescription
versionint 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
SMCoreRequireVersion(20231101)