Home away from home
Joined: 2007/9/11 12:31 Last Login
: 11/23 8:41
From Russia
Group:
Registered Users
|
@Andy,Dan Yeah, SetVar is what i need indeed, thanks!
EDIT: should it works for the current process from which is set ?
I.e. i have a game, for which i need special environment set, so i do set it right at begining of main(), but it seems it didn't take action for that binary, while in system it all looks like environment was set.
I.e. i just do it like this:
IDOS->SetVar("MYENV", "40", 2, GVF_GLOBAL_ONLY);
And while when i do in another shell "getenv MYENV" while game is running, i have correct "40" in otuput, but it seems that it didn't taken in action for the binary from which i run it.
Just in case i tried and GVF_LOCAL_ONLY mode too, same result..
EDIT2:
Same if i just tried "IDOS->System("setenv LIBGL_BATCH 0-40", NULL);" , it also didn't takes in action when i run it from begining of main() before actual code which want to check on that environment (but when i run second time, it then take it).
Test cases works fine through, but inside of game it is not. Strange ! Like it use code which is check variable way before main()
EDIT3:
Oh sorry for spam , found why it didn't works : check on that environment was indeed in constructor, so before main().
Edited by kas1e on 2019/10/17 15:47:32 Edited by kas1e on 2019/10/17 15:51:47 Edited by kas1e on 2019/10/17 18:11:36 Edited by kas1e on 2019/10/17 18:19:50 Edited by kas1e on 2019/10/17 18:53:33
|