diff --git a/core/Base/PathUtil.cpp b/core/Base/PathUtil.cpp index dcb6db7..373b8d8 100644 --- a/core/Base/PathUtil.cpp +++ b/core/Base/PathUtil.cpp @@ -63,10 +63,12 @@ static auto UserPaths = [] { if (nixos) { currentDir /= "files"; insert_path(PathType::RootDir, currentDir); + insert_path(PathType::FirmwareDir, currentDir / FW_DIR); insert_path(PathType::LogDir, currentDir / LOG_DIR); } else { insert_path(PathType::RootDir, currentDir, false); + insert_path(PathType::FirmwareDir, binaryDir / FW_DIR); insert_path(PathType::LogDir, binaryDir / LOG_DIR); } return paths; diff --git a/core/Base/PathUtil.h b/core/Base/PathUtil.h index 6fa1dd1..c02f10a 100644 --- a/core/Base/PathUtil.h +++ b/core/Base/PathUtil.h @@ -11,9 +11,10 @@ namespace Base { namespace FS { enum class PathType { - BinaryDir, // Binary Path - RootDir, // Execution Path - LogDir, // Where log files are stored + BinaryDir, // Binary Path + FirmwareDir, // Where log files are stored + RootDir, // Execution Path + LogDir, // Where log files are stored }; enum FileType { @@ -29,6 +30,8 @@ typedef struct _FileInfo { FileType fileType; // File Type (directory/file) } FileInfo; +constexpr auto FW_DIR = "firmware"; + constexpr auto LOG_DIR = "log"; constexpr auto LOG_FILE = "pound_log.txt";