X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvoglgen%2Fvoglgen.cpp;h=add362de62ff74b339839037e3f8f99a00a93653;hb=a04c975ec589b8d1fb10baa3953cfcac4a29f8ed;hp=aa8eb96e75ca07734e13c2955c3fdef14dcb0f03;hpb=efdbc27f2074c559c8bbd4c118c45fda53e7aa7a;p=vogl diff --git a/src/voglgen/voglgen.cpp b/src/voglgen/voglgen.cpp index aa8eb96..add362d 100644 --- a/src/voglgen/voglgen.cpp +++ b/src/voglgen/voglgen.cpp @@ -63,6 +63,7 @@ static command_line_param_desc g_command_line_param_descs[] = { "ctype_regex", 1, false, NULL }, { "namespace_regex", 1, false, NULL }, { "srcdir", 1, false, NULL }, + { "specdir", 1, false, NULL }, }; //----------------------------------------------------------------------------------------------------------------------- @@ -2019,7 +2020,14 @@ public: bool init() { // TODO: I'm going to move the "glspec" dir from under bin to raddebugger/glspec (or whatever) - if (!file_utils::does_file_exist("gl.spec")) + dynamic_string specdir; + + if (g_command_line_params.get_value_as_string(specdir, "specdir")) + { + file_utils::change_directory(specdir.c_str()); + console::warning("Changing current directory to %s\n", specdir.c_str()); + } + else if (!file_utils::does_file_exist("gl.spec")) { if (file_utils::does_file_exist("glspec/gl.spec")) {