The windows version expects data to be in the same dir as the qemu executable so i came up with a small fix.
`diff -urN qemu-2.9.0.old/os-win32.c qemu-2.9.0/os-win32.c
--- qemu-2.9.0.old/os-win32.c 2017-04-20 16:57:01.000000000 +0200
+++ qemu-2.9.0/os-win32.c 2017-07-27 11:21:36.421593700 +0200
@@ -77,11 +77,48 @@
atexit(os_undo_timer_resolution);
}
+/* Find a likely location for support files using the location of the binary.
For MinGW-W64 installed binaries this will be "$bindir/../etc/qemu". When
running from the build tree this will be "$bindir/../pc-bios". /
+#ifdef MINGW32
+#define DATA_SUFFIX "/etc/qemu"
+#define BUILD_SUFFIX "/pc-bios"
+char os_find_datadir(void)
+{
return res;
+}
+#undef DATA_SUFFIX
+#undef BUILD_SUFFIX
+#else
/ Look for support files in the same directory as the executable. /
char *os_find_datadir(void)
{
return qemu_get_exec_dir();
}
+#endif
void os_set_line_buffering(void)
{
`
Most of this was taken from the posix version with the only diff being that the posix version defaults to /share/qemu and not /etc/qemu. All tests shows it to work fine :) enjoy
The windows version expects data to be in the same dir as the qemu executable so i came up with a small fix. `diff -urN qemu-2.9.0.old/os-win32.c qemu-2.9.0/os-win32.c --- qemu-2.9.0.old/os-win32.c 2017-04-20 16:57:01.000000000 +0200 +++ qemu-2.9.0/os-win32.c 2017-07-27 11:21:36.421593700 +0200 @@ -77,11 +77,48 @@ atexit(os_undo_timer_resolution); }
+/* Find a likely location for support files using the location of the binary.
return res; +} +#undef DATA_SUFFIX +#undef BUILD_SUFFIX +#else / Look for support files in the same directory as the executable. / char *os_find_datadir(void) { return qemu_get_exec_dir(); } +#endif
void os_set_line_buffering(void) { ` Most of this was taken from the posix version with the only diff being that the posix version defaults to /share/qemu and not /etc/qemu. All tests shows it to work fine :) enjoy