twn_util: final cleaning up, introducton of powerful file_read()
This commit is contained in:
@ -265,7 +265,7 @@ static void resolve_pack_dependencies(const char *pack_name) {
|
||||
/* no package manifest provided, abort */
|
||||
goto OK_NO_MANIFEST;
|
||||
|
||||
char *manifest_file = file_to_str(path);
|
||||
char *manifest_file = file_to_str(path, NULL);
|
||||
if (!manifest_file) {
|
||||
CRY_PHYSFS("Pack manifest file loading failed");
|
||||
goto ERR_PACK_MANIFEST_FILE_LOADING;
|
||||
@ -375,7 +375,7 @@ static bool initialize(void) {
|
||||
|
||||
/* load the config file into an opaque table */
|
||||
{
|
||||
char *config_file = file_to_str("/twn.toml");
|
||||
char *config_file = file_to_str("/twn.toml", NULL);
|
||||
if (config_file == NULL) {
|
||||
CRY("Configuration file loading failed", "Cannot access /twn.toml");
|
||||
goto fail;
|
||||
|
Reference in New Issue
Block a user