Jump to content

[SOLVED] add extern_variable


photo

Recommended Posts

Posted

Will be great if we can define an external variable.

Like extern_define but with an value -extern_variable UID=666.

 

Like that i can launch my bin with custom bat.

 

In my concrete case, i have the same script for launching different 3D shop, each shop have an unique id.

 

At this time i can't launch the bat without change the value before.

 

Thanks

Posted

Couldn't you simply pass some command-line parameter e.g. "-shop <name>" and evaluate this during init () engine.getArg() or getenv() system function ?

  • 3 weeks later...
Posted

You can pass command line values via -extern_define "A=B,C=D" console command:

int a = TEST;
log.message("%d\n",a);

./main -extern_define TEST=42

Posted

Ok, sorry i doesn't know, was be possible to do that, :)

×
×
  • Create New...