Subversion Repositories SvarDOS

Rev

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

Rev 1672 Rev 1673
Line 47... Line 47...
47
 
47
 
48
/* color scheme (preset for color) */
48
/* color scheme (preset for color) */
49
static unsigned char COLOR_TITLEBAR  = 0x70;
49
static unsigned char COLOR_TITLEBAR  = 0x70;
50
static unsigned char COLOR_TITLEVER  = 0x78;
50
static unsigned char COLOR_TITLEVER  = 0x78;
51
static unsigned char COLOR_BODY      = 0x17;
51
static unsigned char COLOR_BODY      = 0x17;
-
 
52
static unsigned char COLOR_BODYWARN  = 0x1F;
52
static unsigned char COLOR_SELECT    = 0x70;
53
static unsigned char COLOR_SELECT    = 0x70;
53
static unsigned char COLOR_SELECTCUR = 0x1F;
54
static unsigned char COLOR_SELECTCUR = 0x1F;
54
 
55
 
55
/* build release string, populated at startup by reading floppy's label */
56
/* build release string, populated at startup by reading floppy's label */
56
static char BUILDSTRING[13];
57
static char BUILDSTRING[13];
Line 908... Line 909...
908
              "SET COMSPEC=C:\\COMMAND.COM\r\n"
909
              "SET COMSPEC=C:\\COMMAND.COM\r\n"
909
              "DEL \\CMD.COM\r\n");
910
              "DEL \\CMD.COM\r\n");
910
  /* print out the "installation over" message */
911
  /* print out the "installation over" message */
911
  fprintf(fd, "ECHO.\r\n"
912
  fprintf(fd, "ECHO.\r\n"
912
              "ECHO ");
913
              "ECHO ");
913
  fprintf(fd, svarlang_strid(0x0501), BUILDSTRING); /* "SvarDOS installation is over. Please restart your computer now" */
914
  fprintf(fd, svarlang_strid(0x0502), BUILDSTRING); /* "SvarDOS installation is over. Please restart your computer now" */
914
  fprintf(fd, "\r\n"
915
  fprintf(fd, "\r\n"
915
              "ECHO.\r\n");
916
              "ECHO.\r\n");
916
  fclose(fd);
917
  fclose(fd);
917
 
918
 
918
  /* prepare a dummy autoexec.bat that will call temp\postinst.bat */
919
  /* prepare a dummy autoexec.bat that will call temp\postinst.bat */
Line 932... Line 933...
932
 
933
 
933
 
934
 
934
static void finalreboot(void) {
935
static void finalreboot(void) {
935
  int y = 9;
936
  int y = 9;
936
  newscreen(2);
937
  newscreen(2);
-
 
938
  y += putstringnls(y, 1, COLOR_BODY, 5, 0); /* "Your computer will reboot now." */
937
  y += putstringnls(y, 1, COLOR_BODY, 5, 0); /* "Your computer will reboot now.\nPlease remove the installation disk from your drive" */
939
  y += putstringnls(y, 1, COLOR_BODYWARN, 5, 1); /* Please remove the installation disk from your drive" */
938
  putstringnls(++y, 1, COLOR_BODY, 0, 5); /* "Press any key..." */
940
  putstringnls(++y, 1, COLOR_BODY, 0, 5); /* "Press any key..." */
939
  mdr_dos_getkey();
941
  mdr_dos_getkey();
940
  reboot();
942
  reboot();
941
}
943
}
942
 
944
 
Line 1018... Line 1020...
1018
  if (mdr_cout_init(NULL, NULL) == 0) {
1020
  if (mdr_cout_init(NULL, NULL) == 0) {
1019
    /* overload color scheme with mono settings */
1021
    /* overload color scheme with mono settings */
1020
    COLOR_TITLEBAR = 0x70;
1022
    COLOR_TITLEBAR = 0x70;
1021
    COLOR_TITLEVER = 0x70;
1023
    COLOR_TITLEVER = 0x70;
1022
    COLOR_BODY = 0x07;
1024
    COLOR_BODY = 0x07;
-
 
1025
    COLOR_BODYWARN = 0x07;
1023
    COLOR_SELECT = 0x70;
1026
    COLOR_SELECT = 0x70;
1024
    COLOR_SELECTCUR = 0x07;
1027
    COLOR_SELECTCUR = 0x07;
1025
  }
1028
  }
1026
 
1029
 
1027
 SelectLang:
1030
 SelectLang: