mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-27 07:11:01 +00:00
Fix directory enumation with filesystem mappings
This commit is contained in:
@@ -224,6 +224,16 @@ class windows_path
|
||||
return {this->drive_, std::move(folders)};
|
||||
}
|
||||
|
||||
std::u16string leaf() const
|
||||
{
|
||||
if (this->folders_.empty())
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
return this->folders_.back();
|
||||
}
|
||||
|
||||
void serialize(utils::buffer_serializer& buffer) const
|
||||
{
|
||||
buffer.write_optional(this->drive_);
|
||||
|
||||
Reference in New Issue
Block a user