early-access version 4017

This commit is contained in:
pineappleEA
2023-12-12 23:52:27 +01:00
parent 29cac37e95
commit 76fa9cc8e2
10 changed files with 45 additions and 34 deletions

View File

@@ -104,11 +104,7 @@ Result VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) con
const auto components = Common::FS::SplitPathComponents(path);
std::string relative_path;
for (const auto& component : components) {
// Skip empty path components
if (component.empty()) {
continue;
}
relative_path = Common::FS::SanitizePath(relative_path + '/' + component);
relative_path = Common::FS::SanitizePath(fmt::format("{}/{}", relative_path, component));
auto new_dir = backing->CreateSubdirectory(relative_path);
if (new_dir == nullptr) {
// TODO(DarkLordZach): Find a better error code for this

View File

@@ -204,8 +204,9 @@ Result FbShareBufferManager::Initialize(u64* out_buffer_id, u64* out_layer_id, u
// Record the display id.
m_display_id = display_id;
// Create a layer for the display.
// Create and open a layer for the display.
m_layer_id = m_flinger.CreateLayer(m_display_id).value();
m_flinger.OpenLayer(m_layer_id);
// Set up the buffer.
m_buffer_id = m_next_buffer_id++;

View File

@@ -66,7 +66,7 @@ public:
/// Whether or not this display has any layers added to it.
bool HasLayers() const {
return !layers.empty();
return GetNumLayers() > 0;
}
/// Gets a layer for this display based off an index.