#endif
#include "block/block_int.h"
+//#include "sysemu/block-backend.h"
#include "emulator_options.h"
#include "skin/maruskin_server.h"
if (drive_image_file) {
return drive_image_file;
}
-
-#if 0
// we should parse from "drive" parameter.
// so qemu_main() had to be called before.
- BlockBackend *bb = blk_by_name("drive");
- if (bb) {
- BlockDriverState *bs = blk_bs(bb);
- set_variable("drive_image_file", bs->filename, true);
+ else {
+ BlockDriverState *bs = bdrv_find("drive");
+ if (bs != NULL) {
+ set_variable("drive_image_file", bs->filename, true);
- return bs->filename;
+ return bs->filename;
+ }
}
// called before device initialized
// or very weired situation
-#endif
LOG_SEVERE("Can not identify main drive image file !!!\n");
-
return "";
}