vl: relocate paths to data directories

As an additional advantage, the logic is now unified between
POSIX and Win32 systems.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini
2020-08-18 11:57:56 +02:00
parent 63c4db4c2e
commit ea1edcd7da
6 changed files with 32 additions and 47 deletions

View File

@ -57,17 +57,6 @@ void os_setup_early_signal_handling(void)
atexit(os_undo_timer_resolution);
}
/*
* Look for support files in the same directory as the executable.
*
* The caller must use g_free() to free the returned data when it is
* no longer required.
*/
char *os_find_datadir(void)
{
return g_strdup(qemu_get_exec_dir());
}
void os_set_line_buffering(void)
{
setbuf(stdout, NULL);