File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 111111 # '#include "src/controller/controller.cpp"',
112112 'int main(int argc, char *argv[]){' ,
113113 ' if (argc < 2) {' ,
114+ ' program_invocation_short_name = (char *)"MistController";'
114115 ' return ControllerMain(argc, argv);' ,
115116 ' }' ,
116117 ' // Create a new argv array without argv[1]' ,
129130for cap in capabilities :
130131 entrypoint_lines .extend ([
131132 ' else if (strcmp(argv[1], "' + cap ['binary_name' ] + '") == 0) {' ,
133+ ' program_invocation_short_name = argv[1];'
132134 ' return ' + cap ['func_name' ] + '<' + cap ['class_name' ] + '>(new_argc, new_argv);' ,
133135 ' }' ,
134136 ])
138140 ' return SessionMain(new_argc, new_argv);' ,
139141 ' }' ,
140142 ' else {' ,
143+ ' program_invocation_short_name = (char *)"MistController";' ,
141144 ' return ControllerMain(argc, argv);' ,
142145 ' }' ,
143146 ' INFO_MSG("binary not found: %s", argv[1]);' ,
You can’t perform that action at this time.
0 commit comments