anthony.liot Posted November 7, 2012 Share Posted November 7, 2012 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 Link to comment
ulf.schroeter Posted November 7, 2012 Share Posted November 7, 2012 Couldn't you simply pass some command-line parameter e.g. "-shop <name>" and evaluate this during init () engine.getArg() or getenv() system function ? Link to comment
frustum Posted November 28, 2012 Share Posted November 28, 2012 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 Link to comment
anthony.liot Posted November 28, 2012 Author Share Posted November 28, 2012 Ok, sorry i doesn't know, was be possible to do that, :) Link to comment
Recommended Posts