Welcome to the Rockbox Technical Forums!
struct entry* tree_get_entry_at(struct tree_context *t, int index){ if(index < 0 || index >= t->cache.max_entries) return NULL; /* no entry */
struct entry *entry = tree_get_entry_at(local_tc, selected_item); if (!entry) panicf("Invalid tree entry");
cache->max_entries = global_settings.max_files_in_dir;
struct tagentry *dptr = core_get_data(c->cache.entries_handle); #(...) for (i = 0; i < menu->itemcount; i++) { dptr->name = menu->items[i]->name; #(...) dptr++; }
cache->max_entries = global_settings.max_files_in_dir; cache->entries_handle = core_alloc_ex("tree entries", cache->max_entries*(sizeof(struct entry)), &ops);
if (current_entry_count >= c->cache.max_entries) { logf("chunk mode #3: %d", current_entry_count); c->dirfull = true; sort = false; break ; }
ptrdiff_t diff = (int32_t *) new - (int32_t *) current;
ptrdiff_t diff = new - current;
Huh I find it odd that casting them to int32* would cause issues how did you decide to try removing the casts?I'll update the code
Page created in 0.037 seconds with 17 queries.