- Timestamp:
- Mar 30, 2010 2:04:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r27823 r27830 2804 2804 } 2805 2805 2806 const struct { 2807 const char *pcszOld; 2808 const char *pcszNew; 2809 } aConvertOSTypes[] = 2810 { 2811 { "unknown", "Other" }, 2812 { "dos", "DOS" }, 2813 { "win31", "Windows31" }, 2814 { "win95", "Windows95" }, 2815 { "win98", "Windows98" }, 2816 { "winme", "WindowsMe" }, 2817 { "winnt4", "WindowsNT4" }, 2818 { "win2k", "Windows2000" }, 2819 { "winxp", "WindowsXP" }, 2820 { "win2k3", "Windows2003" }, 2821 { "winvista", "WindowsVista" }, 2822 { "win2k8", "Windows2008" }, 2823 { "os2warp3", "OS2Warp3" }, 2824 { "os2warp4", "OS2Warp4" }, 2825 { "os2warp45", "OS2Warp45" }, 2826 { "ecs", "OS2eCS" }, 2827 { "linux22", "Linux22" }, 2828 { "linux24", "Linux24" }, 2829 { "linux26", "Linux26" }, 2830 { "archlinux", "ArchLinux" }, 2831 { "debian", "Debian" }, 2832 { "opensuse", "OpenSUSE" }, 2833 { "fedoracore", "Fedora" }, 2834 { "gentoo", "Gentoo" }, 2835 { "mandriva", "Mandriva" }, 2836 { "redhat", "RedHat" }, 2837 { "ubuntu", "Ubuntu" }, 2838 { "xandros", "Xandros" }, 2839 { "freebsd", "FreeBSD" }, 2840 { "openbsd", "OpenBSD" }, 2841 { "netbsd", "NetBSD" }, 2842 { "netware", "Netware" }, 2843 { "solaris", "Solaris" }, 2844 { "opensolaris", "OpenSolaris" }, 2845 { "l4", "L4" } 2846 }; 2847 2806 2848 void MachineConfigFile::convertOldOSType_pre1_5(Utf8Str &str) 2807 2849 { 2808 if (str == "unknown") str = "Other"; 2809 else if (str == "dos") str = "DOS"; 2810 else if (str == "win31") str = "Windows31"; 2811 else if (str == "win95") str = "Windows95"; 2812 else if (str == "win98") str = "Windows98"; 2813 else if (str == "winme") str = "WindowsMe"; 2814 else if (str == "winnt4") str = "WindowsNT4"; 2815 else if (str == "win2k") str = "Windows2000"; 2816 else if (str == "winxp") str = "WindowsXP"; 2817 else if (str == "win2k3") str = "Windows2003"; 2818 else if (str == "winvista") str = "WindowsVista"; 2819 else if (str == "win2k8") str = "Windows2008"; 2820 else if (str == "os2warp3") str = "OS2Warp3"; 2821 else if (str == "os2warp4") str = "OS2Warp4"; 2822 else if (str == "os2warp45") str = "OS2Warp45"; 2823 else if (str == "ecs") str = "OS2eCS"; 2824 else if (str == "linux22") str = "Linux22"; 2825 else if (str == "linux24") str = "Linux24"; 2826 else if (str == "linux26") str = "Linux26"; 2827 else if (str == "archlinux") str = "ArchLinux"; 2828 else if (str == "debian") str = "Debian"; 2829 else if (str == "opensuse") str = "OpenSUSE"; 2830 else if (str == "fedoracore") str = "Fedora"; 2831 else if (str == "gentoo") str = "Gentoo"; 2832 else if (str == "mandriva") str = "Mandriva"; 2833 else if (str == "redhat") str = "RedHat"; 2834 else if (str == "ubuntu") str = "Ubuntu"; 2835 else if (str == "xandros") str = "Xandros"; 2836 else if (str == "freebsd") str = "FreeBSD"; 2837 else if (str == "openbsd") str = "OpenBSD"; 2838 else if (str == "netbsd") str = "NetBSD"; 2839 else if (str == "netware") str = "Netware"; 2840 else if (str == "solaris") str = "Solaris"; 2841 else if (str == "opensolaris") str = "OpenSolaris"; 2842 else if (str == "l4") str = "L4"; 2850 for (unsigned u = 0; 2851 u < RT_ELEMENTS(aConvertOSTypes); 2852 ++u) 2853 { 2854 if (str == aConvertOSTypes[u].pcszOld) 2855 { 2856 str = aConvertOSTypes[u].pcszNew; 2857 break; 2858 } 2859 } 2843 2860 } 2844 2861
Note:
See TracChangeset
for help on using the changeset viewer.