mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-13 13:37:02 +00:00
Add Firmware Directory
This commit is contained in:
parent
4d4f0c8490
commit
b552608b83
2 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue