feat!: reorganised stuff

This commit is contained in:
CT5
2026-01-26 12:05:08 +11:00
parent cbc0f68f94
commit c984fd7fd0
59 changed files with 147 additions and 46 deletions

View File

@@ -1,35 +1,39 @@
#include "WinDurango.Implementation.WinRT/Interfaces/Storage/Directory.h"
namespace wd::impl::winrt::interfaces::storage {
bool WinRTDirectory::open() {
return false;
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::open() {
StorageFolder sf = ApplicationData::Current().LocalFolder();
if (sf) {
dir = &sf;
return true;
}
return false;
}
wd::common::interfaces::storage::File* WinRTDirectory::CreateFile(std::filesystem::path path) {
return nullptr;
}
wd::common::interfaces::storage::File* wd::impl::winrt::interfaces::storage::WinRTDirectory::CreateFile(std::filesystem::path path) {
auto file = localFolder.CreateFileAsync(winrt::hstring(path.wstring()), winrt::Windows::Storage::CreationCollisionOption::FailIfExists).get();
return nullptr;
}
wd::common::interfaces::storage::Directory* WinRTDirectory::CreateDirectory(std::filesystem::path path) {
return nullptr;
}
wd::common::interfaces::storage::Directory* wd::impl::winrt::interfaces::storage::WinRTDirectory::CreateDirectory(std::filesystem::path path) {
return nullptr;
}
std::filesystem::path WinRTDirectory::dirpath() {
return path;
}
std::filesystem::path wd::impl::winrt::interfaces::storage::WinRTDirectory::dirpath() {
return path;
}
bool WinRTDirectory::rename(std::string) {
return false;
}
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::rename(std::string) {
return false;
}
bool WinRTDirectory::remove() {
return false;
}
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::remove() {
return false;
}
bool WinRTDirectory::move(std::filesystem::path path) {
return false;
}
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::move(std::filesystem::path path) {
return false;
}
bool WinRTDirectory::copy(std::filesystem::path path) {
return false;
}
bool wd::impl::winrt::interfaces::storage::WinRTDirectory::copy(std::filesystem::path path) {
return false;
}