Skip to content

Commit

Permalink
fix pointers of dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Jan 10, 2025
1 parent e396fb5 commit acfcf21
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,17 @@ static void settings_generate_internal_dirs(settings_t *settings)

settings_resolve_dir(&settings->internal.librarydirfull, settings->core.librarydir, settings->internal.datadirfull);

settings_get_by_name_id("internal.basedirfull", settings->internal.overlayNumber)->ptr = &settings->internal.basedirfull;
settings_get_by_name_id("internal.certdirfull", settings->internal.overlayNumber)->ptr = &settings->internal.certdirfull;
settings_get_by_name_id("internal.configdirfull", settings->internal.overlayNumber)->ptr = &settings->internal.configdirfull;
settings_get_by_name_id("internal.contentdirrel", settings->internal.overlayNumber)->ptr = &settings->internal.contentdirrel;
settings_get_by_name_id("internal.contentdirfull", settings->internal.overlayNumber)->ptr = &settings->internal.contentdirfull;
settings_get_by_name_id("internal.librarydirfull", settings->internal.overlayNumber)->ptr = &settings->internal.librarydirfull;
settings_get_by_name_id("internal.datadirfull", settings->internal.overlayNumber)->ptr = &settings->internal.datadirfull;
settings_get_by_name_id("internal.wwwdirfull", settings->internal.overlayNumber)->ptr = &settings->internal.wwwdirfull;
settings_get_by_name_id("internal.firmwaredirfull", settings->internal.overlayNumber)->ptr = &settings->internal.firmwaredirfull;
settings_get_by_name_id("internal.cachedirfull", settings->internal.overlayNumber)->ptr = &settings->internal.cachedirfull;

osFreeMem(tmpPath);
}

Expand Down Expand Up @@ -1334,7 +1345,6 @@ bool settings_set_float_ovl(const char *item, float value, const char *overlay_n
}
bool settings_set_float_id(const char *item, float value, uint8_t settingsId)
{

if (!item)
{
return false;
Expand Down

0 comments on commit acfcf21

Please sign in to comment.