X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=netinstall%2Fdesktop.cc;h=eb4a7186c3cf8561e6460218e9764ab969299058;hb=3062d425fac0473eb5aa2efc0bb002f6ce0cb028;hp=10e195abd9c49844bb4810507bc0e14659f24b8f;hpb=0c693dc08f0794304711787b2eb47c144ea4bef1;p=chise%2Fxemacs-chise.git diff --git a/netinstall/desktop.cc b/netinstall/desktop.cc index 10e195a..eb4a718 100644 --- a/netinstall/desktop.cc +++ b/netinstall/desktop.cc @@ -110,7 +110,11 @@ find_xemacs_exe_path () static char* find_xemacs_exe_name () { - if (xemacs_package->type == TY_CYGWIN) + /* Hack to support older versions. */ + if (strncmp (xemacs_package->info[xemacs_package->trust].version, + "21.1", 4) == 0) + return strdup ("runemacs.exe"); + else if (xemacs_package->type == TY_CYGWIN) return backslash (concat ("xemacs-", xemacs_package->info[xemacs_package->trust].version, ".exe", 0)); @@ -420,11 +424,7 @@ do_desktop (HINSTANCE h) if (xemacs_package != 0 && xemacs_package->type != TY_GENERIC) { batname = concat (find_xemacs_exe_path (), "\\", -#if 0 find_xemacs_exe_name (), -#else - "runemacs.exe", -#endif 0); root_desktop = check_desktop ("XEmacs", batname); root_menu = check_startmenu ("XEmacs", batname);