Squashed 'deps/nostalgia/' changes from be518387..5dce9dd3

5dce9dd3 [studio] Suppress context menu for root dir in ProjectExplorer
0570f762 [ox/fs] Fix PassThroughFS::stripSlash
e22b658a [studio] Fix isParentOf check in Project to ensure child dir path ends with /
56b9cb6e [studio] Fix file explorer to treat empty directories as directories
eaa9a241 [keel] Make reloadAsset check if file is loaded
95256a9a [studio] Make rename file give error message if the file already exists
2286238a [studio] Make rename file accept input upon pressing Enter if text input is focused
13f0bf57 [studio] Make deleting a file close tabs associated with it
8eb1ac21 [studio] Fix not to try moving a parent directory to its child
e132f2fd [studio] Make file move do nothing if the file already exists
12f6b22c [nostalgia/gfx/studio/palette] Cleanup
6c858e0c [nostalgia/gfx/studio/tilesheet] UI cleanup
c6b58f7c [nostalgia] Update release notes
a22aafaf [nostalgia/gfx/studio/palette] Add ability to reorder Palette pages
6298ac3a [nostalgia] Update release notes
cd63afac [studio] Remove Ctrl-0 tab shortcut
28591837 [nostalgia/gfx/studio/tilesheet] Add the ability to move subsheets
05516597 [nostalgia/sample_project] Update test assets

git-subtree-dir: deps/nostalgia
git-subtree-split: 5dce9dd3773e5cde7cc98ea6ba26426f01e79b7d
This commit is contained in:
2025-01-28 01:32:41 -06:00
parent ab760b064f
commit b212d4b73c
31 changed files with 394 additions and 67 deletions

View File

@@ -185,8 +185,7 @@ Error PassThroughFS::writeFileInode(uint64_t, const void*, uint64_t, FileType) n
}
std::string_view PassThroughFS::stripSlash(StringView path) noexcept {
const auto pathLen = ox::strlen(path);
for (auto i = 0u; i < pathLen && path[0] == '/'; i++) {
for (auto i = 0u; i < path.len() && path[0] == '/'; i++) {
path = substr(path, 1);
}
return {path.data(), path.bytes()};