// TODO:
uiInfo->vmName = QString(get_emul_vm_name()).trimmed();
+ qDebug() << "VM name :" << uiInfo->vmName;
+
uiInfo->resolution.setWidth(get_emul_resolution_width());
uiInfo->resolution.setHeight(get_emul_resolution_height());
uiInfo->basePort = get_emul_vm_base_port();
- uiInfo->vmDataPath = get_emul_vm_data_path();
+ uiInfo->vmDataPath = QDir(get_emul_vm_data_path()).canonicalPath();
if (uiInfo->vmDataPath.endsWith(QDir::separator()) == false) {
uiInfo->vmDataPath += QDir::separator();
}
+ qDebug() << "VM path :" << uiInfo->vmDataPath;
uiInfo->skinPath = QDir(get_emul_skin_path()).canonicalPath();
if (uiInfo->skinPath.endsWith(QDir::separator()) == false) {
uiInfo->skinPath += QDir::separator();
}
+ qDebug() << "skin path :" << uiInfo->skinPath;
/* read skin information */
QSettings skinInfo(uiInfo->skinPath + SKIN_INFO_FILE_NAME,
const char* get_emul_vm_data_path(void)
{
+ if (_emul_info.vm_data_path) {
+ return _emul_info.vm_data_path;
+ }
+
+ // FIXME: we should support commandline users
+ _emul_info.vm_data_path = g_strdup_printf("%s/%s",
+ get_variable("vms_path"), get_emul_vm_name());
+
return _emul_info.vm_data_path;
}