Commit a5069565 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

config: add localedir

parent 7d3abba9
......@@ -289,6 +289,7 @@ typedef enum vlc_system_dir
VLC_LIBEXEC_DIR, /**< Global executable read-only directory
(e.g. /usr/local/libexec). */
VLC_INCLUDE_DIR_RESERVED,
VLC_LOCALE_DIR, /**< Base directory for package read-only locale data. */
} vlc_sysdir_t;
/**
......
......@@ -122,6 +122,9 @@ char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
break;
case VLC_SYSDATA_DIR:
break;
case VLC_LOCALE_DIR:
dir = config_GetSysPath(VLC_PKG_DATA_DIR, "locale");
break;
default:
vlc_assert_unreachable();
}
......
......@@ -78,6 +78,9 @@ char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
break;
case VLC_SYSDATA_DIR:
break;
case VLC_LOCALE_DIR:
dir = config_GetSysPath(VLC_PKG_DATA_DIR, "locale");
break;
default:
vlc_assert_unreachable();
}
......
......@@ -73,6 +73,7 @@ char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
[VLC_SYSDATA_DIR] = SYSDATADIR,
[VLC_LIB_DIR] = LIBDIR,
[VLC_LIBEXEC_DIR] = LIBEXECDIR,
[VLC_LOCALE_DIR] = LOCALEDIR,
};
assert(type < ARRAY_SIZE(dirs));
......
......@@ -226,6 +226,9 @@ char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
break;
case VLC_SYSDATA_DIR:
break;
case VLC_LOCALE_DIR:
dir = config_GetSysPath(VLC_PKG_DATA_DIR, "locale");
break;
default:
vlc_assert_unreachable();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment