mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-03-12 18:59:15 +02:00
main: validate args before loading everything else
This commit is contained in:
parent
f9665e2661
commit
c343fc1f73
@ -210,10 +210,6 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state.basedir_ctx = sfdo_basedir_ctx_create();
|
|
||||||
|
|
||||||
dp_config_load(&state, config_path);
|
|
||||||
|
|
||||||
if (state.output_format == DP_FILE_UNKNOWN) {
|
if (state.output_format == DP_FILE_UNKNOWN) {
|
||||||
if (state.output_path != NULL) {
|
if (state.output_path != NULL) {
|
||||||
const char *ext = dp_ext_from_path(state.output_path);
|
const char *ext = dp_ext_from_path(state.output_path);
|
||||||
@ -227,6 +223,10 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state.basedir_ctx = sfdo_basedir_ctx_create();
|
||||||
|
|
||||||
|
dp_config_load(&state, config_path);
|
||||||
|
|
||||||
wl_list_init(&state.outputs);
|
wl_list_init(&state.outputs);
|
||||||
wl_list_init(&state.seats);
|
wl_list_init(&state.seats);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user