Open main menu

Difference between revisions of "Wintermute/Plugins"

517 bytes added ,  23:00, 18 February 2020
Line 97: Line 97:


GetSupportedClasses() exports one class: '''CommandLineHelper'''.
GetSupportedClasses() exports one class: '''CommandLineHelper'''.
Usage:
<nowiki>
global HelperObject = new CommandLineHelper();
global CommandLineParams = HelperObject.Parameters;
global TestLength = 0;
CommandLineParams = new String(CommandLineParams);
...
var paramArray = CommandLineParams.Split(" ");
DEBUG(("params" + CommandLineParams));
var arrayLength = paramArray.Length;
DEBUG(("paramArray[1]: " + paramArray[(arrayLength - 1)]));
switch(paramArray[(arrayLength - 1)]) {
case "FULL":
TestLength = 1;
Game.RegWriteNumber("Registered", 1);
...
</nowiki>


TODO: reimplement this for ResidualVM.
TODO: reimplement this for ResidualVM.
234

edits