Subversion Repositories SvarDOS

Rev

Rev 817 | Rev 868 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 817 Rev 865
Line 868... Line 868...
868
 SelectLang:
868
 SelectLang:
869
  action = selectlang(&locales); /* welcome to svardos, select your language */
869
  action = selectlang(&locales); /* welcome to svardos, select your language */
870
  if (action != MENUNEXT) goto Quit;
870
  if (action != MENUNEXT) goto Quit;
871
  loadcp(&locales);
871
  loadcp(&locales);
872
  svarlang_load("INSTALL", locales.lang, NULL); /* NLS support */
872
  svarlang_load("INSTALL", locales.lang, NULL); /* NLS support */
-
 
873
 
-
 
874
 SelectKeyb:
873
  action = selectkeyb(&locales);  /* what keyb layout should we use? */
875
  action = selectkeyb(&locales);  /* what keyb layout should we use? */
874
  if (action == MENUQUIT) goto Quit;
876
  if (action == MENUQUIT) goto Quit;
875
  if (action == MENUPREV) goto SelectLang;
877
  if (action == MENUPREV) goto SelectLang;
876
 
878
 
877
 WelcomeScreen:
879
 WelcomeScreen:
878
  action = welcomescreen(); /* what svardos is, ask whether to run live dos or install */
880
  action = welcomescreen(); /* what svardos is, ask whether to run live dos or install */
879
  if (action == MENUQUIT) goto Quit;
881
  if (action == MENUQUIT) goto Quit;
880
  if (action == MENUPREV) goto SelectLang;
882
  if (action == MENUPREV) {
-
 
883
    if (locales.keyblen > 1) goto SelectKeyb; /* if there is a choice of more than 1 layout, ask for it */
-
 
884
    goto SelectLang;
-
 
885
  }
881
  targetdrv = preparedrive(sourcedrv); /* what drive should we install from? check avail. space */
886
  targetdrv = preparedrive(sourcedrv); /* what drive should we install from? check avail. space */
882
  if (targetdrv == MENUQUIT) goto Quit;
887
  if (targetdrv == MENUQUIT) goto Quit;
883
  if (targetdrv == MENUPREV) goto WelcomeScreen;
888
  if (targetdrv == MENUPREV) goto WelcomeScreen;
884
  bootfilesgen(targetdrv, &locales); /* generate boot files and other configurations */
889
  bootfilesgen(targetdrv, &locales); /* generate boot files and other configurations */
885
  if (installpackages(targetdrv, sourcedrv, &locales) != 0) goto Quit;    /* install packages */
890
  if (installpackages(targetdrv, sourcedrv, &locales) != 0) goto Quit;    /* install packages */