1
0
Fork 0
forked from len0rd/rockbox

dbtool: More fixes to dbtool operation

Now properly treats current directory as "/"

Change-Id: I54357a65f2fda7d2cfb56ff18a044ae10b87bbce
This commit is contained in:
Solomon Peachy 2023-05-25 16:03:33 -04:00
parent e803daae0a
commit 8bc7ba5d22
3 changed files with 8 additions and 35 deletions

View file

@ -23,41 +23,10 @@ int main(int argc, char **argv)
/* / is actually ., will get translated in io.c
* (with the help of sim_root_dir below */
const char *paths[] = { "./", NULL };
const char *paths[] = { "/", NULL };
tagcache_init();
do_tagcache_build(paths);
tagcache_reverse_scan();
return 0;
}
/* needed for io.c */
const char *sim_root_dir = ".";
/* stubs to avoid including thread-sdl.c */
#include "kernel.h"
void mutex_init(struct mutex *m)
{
(void)m;
}
void mutex_lock(struct mutex *m)
{
(void)m;
}
void mutex_unlock(struct mutex *m)
{
(void)m;
}
void sim_thread_lock(void *me)
{
(void)me;
}
void * sim_thread_unlock(void)
{
return (void*)1;
}