[UI] Redesigned "Install Content" window

- Added ID for each ImGui window
- Added filesystem::CreateFolder function
This commit is contained in:
Gliniak
2025-03-26 20:52:11 +01:00
committed by Radosław Gliński
parent 5d5eb03127
commit 56703e52e2
18 changed files with 346 additions and 151 deletions

View File

@@ -15,7 +15,8 @@
namespace xe {
namespace vfs {
std::unique_ptr<Device> XContentContainerDevice::CreateContentDevice(
std::unique_ptr<XContentContainerDevice>
XContentContainerDevice::CreateContentDevice(
const std::string_view mount_path, const std::filesystem::path& host_path) {
if (!std::filesystem::exists(host_path)) {
XELOGE("Path to XContent container does not exist: {}", host_path);

View File

@@ -31,7 +31,7 @@ class XContentContainerDevice : public Device {
public:
constexpr static uint32_t kBlockSize = 0x1000;
static std::unique_ptr<Device> CreateContentDevice(
static std::unique_ptr<XContentContainerDevice> CreateContentDevice(
const std::string_view mount_path,
const std::filesystem::path& host_path);
@@ -74,6 +74,10 @@ class XContentContainerDevice : public Device {
return final_license;
}
const XContentContainerHeader* GetContainerHeader() const {
return header_.get();
}
protected:
XContentContainerDevice(const std::string_view mount_path,
const std::filesystem::path& host_path);
@@ -106,10 +110,6 @@ class XContentContainerDevice : public Device {
const std::filesystem::path& GetHostPath() const { return host_path_; }
const XContentContainerHeader* GetContainerHeader() const {
return header_.get();
}
std::string name_;
std::filesystem::path host_path_;