• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.12 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.

Instantiate of abstract MVRScript's when using *.cslist's

MacGruber

Invaluable member
Developer
Wiki Contributor
Featured Contributor
Messages
1,648
Reactions
3,297
Points
143
In some cases it would make sense to have an abstract base class. For example an improved script base class that provides some utility methods, derived from MVRScript. It would need to be abstract, so it does not actually create a script instance. Some other class in the *.cslist would derive from it and provide the actual script instance.

Currently trying something like that causes an error message.

This should be a simple check for ScriptType.RawType.IsAbstract in MVRPluginManager.SyncPluginUrl before calling CreateScriptController (two locations). The warning "No MVRScript types found" would need to be triggered also when the array turns out to be only containing abstract classes.
 
Last edited:
Back
Top Bottom