}
config.addVariable(opt_resolution, width + "x" + height); //$NON-NLS-1$
- config.addSkinOption("resolution", varForm(opt_resolution)); //$NON-NLS-1$
- config.addSkinOption("skin.path", varForm(OPTION_KEY.VAR_SKIN_PATH)); //$NON-NLS-1$
- config.addSkinOption("vm.path", varForm(OPTION_KEY.VAR_VMS_PATH) + File.separator //$NON-NLS-1$
- + varForm(OPTION_KEY.VAR_VM_NAME));
+
+ if (islesserThan(property.getImageVersion(), "3.0")) {
+ config.addSkinOption("resolution", varForm(opt_resolution)); //$NON-NLS-1$
+ config.addSkinOption("skin.path", varForm(OPTION_KEY.VAR_SKIN_PATH)); //$NON-NLS-1$
+ config.addSkinOption("vm.path", varForm(OPTION_KEY.VAR_VMS_PATH) + File.separator //$NON-NLS-1$
+ + varForm(OPTION_KEY.VAR_VM_NAME));
+ }
config.addKernelOption("video", "LVDS-1:" + varForm(opt_resolution) //$NON-NLS-1$ //$NON-NLS-2$
+ "-32@60"); //$NON-NLS-1$
bw.newLine();
// Write skin options.
- bw.newLine();
- bw.write(SKIN_OPTIONS);
- bw.newLine();
- for (String str : skinOptions) {
- bw.write(str);
+ if (skinOptions.size() > 0) {
bw.newLine();
+ bw.write(SKIN_OPTIONS);
+ bw.newLine();
+ for (String str : skinOptions) {
+ bw.write(str);
+ bw.newLine();
+ }
}
// Write qemu options.