Major project restructuring

Remove unecessary files and made the tree much more cleaner.

Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
Ronald Caesar 2025-08-23 17:23:33 -04:00
parent 13b2e741b9
commit 05c4f7025f
62 changed files with 2698 additions and 2453 deletions

View file

@ -1,55 +0,0 @@
// Copyright 2025 Xenon Emulator Project. All rights reserved.
#pragma once
#include <filesystem>
#include <vector>
namespace fs = std::filesystem;
namespace Base {
namespace FS {
enum class PathType {
BinaryDir, // Binary Path
FirmwareDir, // Where log files are stored
RootDir, // Execution Path
LogDir, // Where log files are stored
};
enum FileType {
Directory,
File
};
// Represents a given file inside a directory.
typedef struct _FileInfo {
fs::path fileName; // The file name and extension
fs::path filePath; // The file path
size_t fileSize; // File size
FileType fileType; // File Type (directory/file)
} FileInfo;
constexpr auto FW_DIR = "firmware";
constexpr auto LOG_DIR = "log";
constexpr auto LOG_FILE = "pound_log.txt";
// Converts a given fs::path to a UTF8 string.
[[nodiscard]] std::string PathToUTF8String(const fs::path &path);
// Returns a fs::path object containing the current 'User' path.
[[nodiscard]] const fs::path &GetUserPath(PathType user_path);
// Returns a string containing the current 'User' path.
[[nodiscard]] std::string GetUserPathString(PathType user_path);
// Returns a container with a list of the files inside the specified path.
[[nodiscard]] std::vector<FileInfo> ListFilesFromPath(const fs::path &path);
// Sets the current Path for a given PathType.
void SetUserPath(PathType user_path, const fs::path &new_path);
} // namespace FS
} // namespace Base