diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-02-14 15:08:40 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-02-14 15:08:40 -0500 |
commit | 07b1259caa4337bc86110f9460b0b1b1b5854224 (patch) | |
tree | 658b109af80e9d98afa51bc272b8839c12d0a6dd /src/lib/delivery/delivery_init.c | |
parent | bfad582dafe3cd9f2b66e44fc094ddef49c33c23 (diff) | |
download | stasis-07b1259caa4337bc86110f9460b0b1b1b5854224.tar.gz |
Enable codenames outside of HSTcodename-for-all-missions
* Return from the bootstrap function when an error occurs
Diffstat (limited to 'src/lib/delivery/delivery_init.c')
-rw-r--r-- | src/lib/delivery/delivery_init.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/delivery/delivery_init.c b/src/lib/delivery/delivery_init.c index fe60075..56c591a 100644 --- a/src/lib/delivery/delivery_init.c +++ b/src/lib/delivery/delivery_init.c @@ -289,10 +289,18 @@ int bootstrap_build_info(struct Delivery *ctx) { struct Delivery local = {0}; local._stasis_ini_fp.cfg = ini_open(ctx->_stasis_ini_fp.cfg_path); local._stasis_ini_fp.delivery = ini_open(ctx->_stasis_ini_fp.delivery_path); - delivery_init_platform(&local); - populate_delivery_cfg(&local, INI_READ_RENDER); - populate_delivery_ini(&local, INI_READ_RENDER); - populate_info(&local); + if (delivery_init_platform(&local)) { + return -1; + } + if (populate_delivery_cfg(&local, INI_READ_RENDER)) { + return -1; + } + if (populate_delivery_ini(&local, INI_READ_RENDER)) { + return -1; + } + if (populate_info(&local)) { + return -1; + } ctx->info.build_name = strdup(local.info.build_name); ctx->info.build_number = strdup(local.info.build_number); ctx->info.release_name = strdup(local.info.release_name); |