mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-12-30 13:26:49 +02:00
main: validate args before loading everything else
This commit is contained in:
@@ -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_path != NULL) {
|
||||
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.seats);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user