fix: fix ramdisk readdir inconsistency.
This commit is contained in:
@@ -258,7 +258,7 @@ inline void wallpaper_scan_dir(const char* dir_path, WallpaperFileList* list,
|
||||
int total = montauk::readdir(dir_path, raw_names, 64);
|
||||
if (total <= 0) return;
|
||||
|
||||
// Compute prefix to strip (readdir returns full paths from VFS root)
|
||||
// Retain support for older ramdisks that returned paths from the VFS root.
|
||||
const char* after_drive = dir_path;
|
||||
for (int k = 0; after_drive[k]; k++) {
|
||||
if (after_drive[k] == ':' && after_drive[k + 1] == '/') {
|
||||
|
||||
Reference in New Issue
Block a user