Squashed 'deps/nostalgia/' changes from be518387..804d78e1

804d78e1 [nostalgia/gfx/studio] Cleanup
5351e9aa [nostalgia/core/studio/tilesheet] Add line drawing tool
b5954f15 [studio] Restore context menu for root dir, but exclude Delete
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: 804d78e116ca07a13f0a3bd053875657fb6dfbcd
This commit is contained in:
2025-02-01 22:55:46 -06:00
parent ab760b064f
commit c42adc290c
35 changed files with 537 additions and 78 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()};