The lib i am making needs to know in which directory he is.
It can be etmain, foobar, mymod, …
For the moment he reads a file to know that but i am looking for an other solution.
I want to know the fs_game var. “/fs_game” works in the console, but when i use:
// get the name with fs_game cvar
char fs_game[MAX_STRING_CHARS];
trap_Cvar_VariableStringBuffer("fs_game", fs_game, sizeof(fs_game));
G_Printf ("fs_game=%s
",fs_game);
Et crashes 
Received signal 11, exiting...
I can not send the console command: “/fs_game” because the mod lib isn’t launched.
Do you have an idea ?
Thanks
Alan
