Hum having a bit of trouble since upgrading to the latest version.
Basically what the problem is, is that in my config system im registering variables with it like this...
And i would write several lines like this to register a my variables.
And then when the config system parses the file it would assign the values it finds to the correct variables like so...
Unfortunatly i cant do that now as pointers to objects are invalid so i was wandering if anyone knew of another way of doing this, as i really dont want to have a large select block to check what each variable each value should be assigned to.
Basically what the problem is, is that in my config system im registering variables with it like this...
' Adds a new string configuration variable Method BindStringCfgVar:TConfigVar(Path:String,Variable:String Var,Index:Int = 0) ' Create new variable Local CVar:TConfigVar = New TConfigVar CVar.Path = Path CVar.VarType = TConfigVar._STRING CVar.StringVariable = VarPtr(Variable) CVar.Index = Index ' Add it to the list ListAddLast(VariableList,CVar:TConfigVar) ' Return the new config variable Return CVar:TConfigVar End Method
And i would write several lines like this to register a my variables.
BindStringCfgVar("Settings::Audio::API",_audio_api,0)
And then when the config system parses the file it would assign the values it finds to the correct variables like so...
For Local CfgVar:TConfigVar = EachIn VariableList ' Set value depending on variable type Select CfgVar.VarType ' String value Case TConfigVar._STRING CfgVar.StringVariable[0] = Scf.GetNodeAsString(CfgVar.Path,CfgVar.Index) End Select Next
Unfortunatly i cant do that now as pointers to objects are invalid so i was wandering if anyone knew of another way of doing this, as i really dont want to have a large select block to check what each variable each value should be assigned to.