summary refs log tree commit diff stats
path: root/system/datadir.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/datadir.c')
-rw-r--r--system/datadir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/datadir.c b/system/datadir.c
index c9237cb5d4..f96f8fc264 100644
--- a/system/datadir.c
+++ b/system/datadir.c
@@ -30,7 +30,7 @@
 static const char *data_dir[16];
 static int data_dir_idx;
 
-char *qemu_find_file(int type, const char *name)
+char *qemu_find_file(QemuFileType type, const char *name)
 {
     int i;
     const char *subdir;
@@ -46,6 +46,9 @@ char *qemu_find_file(int type, const char *name)
     case QEMU_FILE_TYPE_BIOS:
         subdir = "";
         break;
+    case QEMU_FILE_TYPE_DTB:
+        subdir = "dtb/";
+        break;
     case QEMU_FILE_TYPE_KEYMAP:
         subdir = "keymaps/";
         break;