• R/O
  • SSH
  • HTTPS

svardos: Commit


Commit MetaInfo

Revision626 (tree)
Time2022-02-05 06:06:41
Authormateuszviste

Log Message

frozen ver 20220204 to tags

Change Summary

Incremental Difference

--- install/tags/20220204/nls/de_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/de_utf8.txt (revision 626)
@@ -0,0 +1,51 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: German
5+# Translator: Jörg Jenderek, Robert Riebisch
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:SVARDOS INSTALLATION
10+0.1:SvarDOS installieren
11+0.2:Zurück zu DOS
12+0.3:Erstelle eine Partition automatisch
13+0.4:Partitionierungswerkzeug FDISK ausführen
14+0.5:Drücken Sie eine beliebige Taste...
15+0.7:Laufwerk %c: formatieren
16+# Every string below must be at most 78 characters long! (used in status bar)
17+0.10:Hoch/Runter=Eintrag wählen | Enter=Bestätigen | ESC=Vorheriger Bildschirm
18+0.11:Hoch/Runter=Eintrag wählen | Enter=Bestätigen | ESC=Zurück zu DOS
19+
20+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
21+1.0:Willkommen bei SvarDOS
22+1.1:Bitte wählen Sie Ihre bevorzugte Sprache aus der folgenden Liste:
23+1.5:SvarDOS unterstützt verschiedene Tastaturlayouts. Wählen Sie das gewünschte Tastaturlayout aus.
24+
25+### WELCOME SCREEN ###
26+2.0:Sie sind dabei, SvarDOS zu installieren: ein freies und quelloffenes, MS-DOS-kompatibles Betriebssystem basierend auf FreeDOS. SvarDOS kommt mit einer Vielzahl von Anwendungen von Drittanbietern.\n\nWARNUNG: Wenn auf Ihrem PC bereits ein anderes Betriebssystem installiert ist, startet dieses möglicherweise nicht mehr, sobald SvarDOS installiert ist.
27+
28+### DISK SETUP ###
29+3.0:FEHLER: Laufwerk %c: konnte nicht gefunden werden. Vielleicht muss die Festplatte zuerst partitioniert werden. Bitte erstellen Sie mindestens eine primäre Partition auf Ihrer Festplatte, so dass SvarDOS darauf installiert werden kann. Beachten Sie, dass SvarDOS mindestens %d MiB des verfügbaren Speicherplatzes benötigt.\n\nSie können das Partitionierungswerkzeug FDISK verwenden, um die erforderliche Partition manuell zu erstellen, oder Sie können das Installationsprogramm die Festplatte automatisch partitionieren lassen. Sie können auch die Installation abbrechen, um einen anderen Partitionsmanager Ihrer Wahl zu verwenden.
30+3.1:Ihr Computer wird jetzt neu gestartet.
31+3.2:FEHLER: Laufwerk %c: ist ein Wechseldatenträger. Installation abgebrochen.
32+3.3:FEHLER: Laufwerk %c: scheint unformatiert zu sein.
33+3.4:FEHLER: Laufwerk %c: ist nicht groß genug! SvarDOS benötigt mindestens %d MiB.
34+3.5:FEHLER: Laufwerk %c: ist nicht leer. SvarDOS muss auf einem leeren Datenträger installiert werden.\n\nSie können den Datenträger jetzt formatieren, um ihn zu leeren. Beachten Sie jedoch, dass dies ALLE AKTUELLEN DATEN auf Ihrer Festplatte löscht.
35+3.6:Die Installation von SvarDOS auf Laufwerk %c: beginnt nun.
36+
37+### PACKAGES INSTALLATION ###
38+# example: "Installing package 4/50: FDISK"
39+4.0:Installiere Paket %d von %d: %s
40+4.1:*** LEGEN SIE DEN DATENTRÄGER, DER DIE BENÖTIGTE DATEI ENTHÄLT, EIN UND DRÜCKEN SIE EINE BELIEBIGE TASTE ***
41+
42+### END SCREEN ###
43+5.0:Ihr Computer wird jetzt neu gestartet.\nBitte entfernen Sie den Installationsdatenträger.
44+5.1:Installation von SvarDOS abgeschlossen. Bitte starten Sie Ihren Computer neu.
45+
46+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
47+6.0:Willkommen bei SvarDOS! Geben Sie 'HELP' ein, wenn Sie Hilfe benötigen.
48+
49+# Local Variables:
50+# coding:cp850-dos
51+# End:
--- install/tags/20220204/nls/en_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/en_utf8.txt (revision 626)
@@ -0,0 +1,47 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: English
5+# Translator: Mateusz Viste
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:SVARDOS INSTALLATION
10+0.1:Install SvarDOS
11+0.2:Quit to DOS
12+0.3:Create a partition automatically
13+0.4:Run the FDISK partitioning tool
14+0.5:Press any key...
15+0.7:Format drive %c:
16+# Every string below must be at most 78 characters long! (used in status bar)
17+0.10:Up/Down = Select entry | Enter = Confirm choice | ESC = Previous screen
18+0.11:Up/Down = Select entry | Enter = Confirm choice | ESC = Quit to DOS
19+
20+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
21+1.0:Welcome to SvarDOS
22+1.1:Please select your preferred language from the list below:
23+1.5:SvarDOS supports different keyboard layouts. Choose the keyboard layout that you want.
24+
25+### WELCOME SCREEN ###
26+2.0:You are about to install SvarDOS: a free, MS-DOS compatible operating system based on FreeDOS. SvarDOS comes with a variety of third-party applications.\n\nWARNING: If your PC has another operating system installed, this other system might be unable to boot once SvarDOS is installed.
27+
28+### DISK SETUP ###
29+3.0:ERROR: Drive %c: could not be found. Perhaps your hard disk needs to be partitioned first. Please create at least one primary partition on your hard disk, so SvarDOS can be installed on it. Note, that SvarDOS requires at least %d MiB of available disk space.\n\nYou can use the FDISK partitioning tool for creating the required partition manually, or you can let the installer partitioning your disk automatically. You can also abort the installation to use any other partition manager of your choice.
30+3.1:Your computer will reboot now.
31+3.2:ERROR: Drive %c: is a removable device. Installation aborted.
32+3.3:ERROR: Drive %c: seems to be unformated.
33+3.4:ERROR: Drive %c: is not big enough! SvarDOS requires a disk of at least %d MiB.
34+3.5:ERROR: Drive %c: is not empty. SvarDOS must be installed on an empty disk.\n\nYou can format the disk now, to make it empty. Note however, that this will ERASE ALL CURRENT DATA on your disk.
35+3.6:The installation of SvarDOS to %c: is about to begin.
36+
37+### PACKAGES INSTALLATION ###
38+# example: "Installing package 4/50: FDISK"
39+4.0:Installing package %d/%d: %s
40+4.1:*** INSERT THE DISK THAT CONTAINS THE REQUIRED FILE AND PRESS ANY KEY ***
41+
42+### END SCREEN ###
43+5.0:Your computer will reboot now.\nPlease remove the installation disk from your drive.
44+5.1:SvarDOS installation is over. Please restart your computer now.
45+
46+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
47+6.0:Welcome to SvarDOS! Type 'HELP' if you need help.
--- install/tags/20220204/nls/fr_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/fr_utf8.txt (revision 626)
@@ -0,0 +1,45 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: French
5+# Translator: anonymous
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:INSTALLATION DE SVARDOS
10+0.1:Installer SvarDOS
11+0.2:Quitter vers DOS
12+0.3:Créer une partition automatiquement
13+0.4:Exécuter l'outil de partitionnement FDISK
14+0.5:Appuyez sur une touche quelconque...
15+# Every string below must be at most 78 characters long! (used in status bar)
16+0.10:Haut/Bas = Choisir l'élément | Entrée = Valider | Échap = Écran précédent
17+0.11:Haut/Bas = Choisir l'élément | Entrée = Valider | Échap = Quitter vers DOS
18+
19+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
20+1.0:Bienvenue sur SvarDOS
21+1.1:Veuillez choisir votre langue sur la liste ci-dessous :
22+1.5:SvarDOS prend en charge différents claviers. Choisissez le clavier que vous préférez.
23+
24+### WELCOME SCREEN ###
25+2.0:Vous êtes sur le point d'installer SvarDOS : un système d'exploitation libre, compatible avec MS-DOS et basé sur le noyau FreeDOS. SvarDOS offre une multitude d'applications tierces.\n\nATTENTION : s'il y a un autre système d'exploitation installé sur votre PC, cet autre système pourrait ne plus démarrer une fois que SvarDOS sera installé.
26+
27+### DISK SETUP ###
28+3.0:ERREUR: le lecteur %c: n'a pu être trouvé. Peut-être que votre disque a d'abord besoin d'être partitionné. Veuillez créer au moins une partition sur votre disque dur pour que SvarDOS puisse y être installé. Notez que SvarDOS nécessite au moins %d Mio d'espace disque disponible.\n\nVous pouvez utiliser l'outil de partitionnement FDISK pour créer manuellement la partition nécessaire, ou bien vous pouvez laisser l'installeur partitionner votre disque automatiquement. Vous pouvez aussi annuler l'installation pour utiliser un autre outil.
29+3.1:Votre ordinateur va maintenant redémarrer.
30+3.2:ERREUR: le lecteur %c: est un périphérique amovible. Installation annulée.
31+3.3:ERREUR: le lecteur %c: ne semble pas être formaté.
32+3.4:ERREUR: le lecteur %c: n'a pas assez d'espace ! SvarDOS nécessite un disque d'au moins %d Mio.
33+3.5:ERREUR: le lecteur %c: n'est pas vide. SvarDOS doit être installé sur un disque vide.\n\nVous pouvez formater le disque maintenant afin de le vider. Veuillez noter cependant que cela EFFACERA TOUTES LES DONNÉES ACTUELLES de votre disque.
34+3.6:L'installation de SvarDOS sur %c: est sur le point de commencer.
35+
36+### PACKAGES INSTALLATION ###
37+# example: "Installing package 4/50: FDISK"
38+4.0:Installation du paquet %d/%d: %s
39+
40+### END SCREEN ###
41+5.0:Votre ordinateur va maintenant redémarrer.\nVeuillez enlever le disque d'installation de votre lecteur.
42+5.1:L'installation de SvarDOS est terminée. Veuillez svp redémarrer votre ordinateur.
43+
44+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
45+6.0:Bienvenue sur SvarDOS ! Tapez 'HELP' si vous avez besoin d'aide.
--- install/tags/20220204/nls/it_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/it_utf8.txt (revision 626)
@@ -0,0 +1,47 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: Italian
5+# Codepage..: 850/858/437
6+# Translator: Roberto Mariottini
7+# Revision..: 2
8+#
9+
10+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
11+0.0:INSTALLAZIONE DI SVARDOS
12+0.1:Installa SvarDOS
13+0.2:Esci al DOS
14+0.3:Crea automaticamente una partizione
15+0.4:Esegui lo strumento di partizionamento FDISK
16+0.5:Premi un tasto...
17+# Every string below must be at most 78 characters long! (used in status bar)
18+0.10:Su/Giù = Seleziona | Invio = Conferma la scelta | ESC = Precedente
19+0.11:Su/Giù = Seleziona | Invio = Conferma la scelta | ESC = Esci al DOS
20+
21+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
22+1.0:Benvenuto in SvarDOS
23+1.1:Seleziona la lingua desiderata dalla lista seguente:
24+1.5:SvarDOS supporta le tastiere usate in paesi differenti. Scegli la tastiera che stai usando.
25+
26+### WELCOME SCREEN ###
27+2.0:Stai per installare SvarDOS: un sistema operativo libero, compatibile con MSDOS, basato sul kernel di FreeDOS. SvarDOS include una varietà di applicazioni di terze parti.\n\nATTENZIONE: Se il tuo PC ha già un altro sistema operativo installato, l'altro sistema operativo potrebbe non essere in grado di ripartire dopo aver installato SvarDOS.
28+
29+### DISK SETUP ###
30+3.0:ERRORE: L'unità %c: non è stata trovata. Forse perché l'hard disk deve essere prima partizionato. Occorre creare almeno una partizione sull'hard disk per poterci installare SvarDOS. Notare che SvarDOS richiede almeno %d MiB di spazio libero su disco.\n\nPuoi usare lo strumento di partizionamento FDISK per creare la partizione manualmente, o lasciare che il programma di installazione partizioni il disco automaticamente. Puoi anche annullare l'installazione per usare lo strumento di partizionamento che preferisci.
31+3.1:Il computer sarà ora riavviato.
32+3.2:ERRORE: L'unità %c: è un disco rimovibile. Installazione annullata.
33+3.3:ERRORE: L'unità %c: non sembra essere formattata.
34+3.4:ERRORE: L'unità %c: non è abbastanza capiente! SvarDOS richiede un disco di almeno %d MiB.
35+3.5:ERRORE: L'unità %c: non è vuota. SvarDOS deve essere installato su un disco vuoto.\n\nPuoi formattare il disco adesso, per svuotarlo. Nota che questa operazione CANCELLERA' TUTTI I DATI presenti sul disco.
36+3.6:L'installazione di SvarDOS in %c: sta per cominciare.
37+
38+### PACKAGES INSTALLATION ###
39+# example: "Installing package 4/50: FDISK"
40+4.0:Installazione del pacchetto %d/%d: %s
41+
42+### END SCREEN ###
43+5.0:Il computer sarà riavviato.\nRimuovere il disco di installazione dall'unità.
44+5.1:L'installazione di SvarDOS è terminata. Please restart your computer now.
45+
46+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
47+6.0:Benvenuto in SvarDOS! Scrivi 'HELP' se hai bisogno di aiuto.
--- install/tags/20220204/nls/pl_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/pl_utf8.txt (revision 626)
@@ -0,0 +1,47 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: Polish
5+# Translator: Mateusz Viste
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:INSTALACJA SVARDOS
10+0.1:Instaluj SvarDOS
11+0.2:Wyjdź do DOS
12+0.3:Stwórz partycję automatycznie
13+0.4:Uruchom narzędzie partycjonowania FDISK
14+0.5:Naciśnij dowolny klawisz...
15+0.7:Formatuj dysk %c:
16+# Every string below must be at most 78 characters long! (used in status bar)
17+0.10:Góra/Dół = Wybór pozycji | Enter = Zatwierdź wybór | ESC = Poprzedni ekran
18+0.11:Góra/Dół = Wybór pozycji | Enter = Zatwierdź wybór | ESC = Wyjdź do DOS
19+
20+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
21+1.0:Witaj w systemie SvarDOS
22+1.1:Wybierz swój język z poniższej listy:
23+1.5:SvarDOS wspiera różne układy klawiatury. Wybierz układ, który ci odpowiada.
24+
25+### WELCOME SCREEN ###
26+2.0:Za chwilę rozpocznie się instalacja systemu SvarDOS: bezpłatnego systemu operacyjnego opartego na jądrze FreeDOS, i kompatybilnego z MSDOS. SvarDOS zawiera mnóstwo aplikacji dodatkowych.\n\nUWAGA: Jeśli twój komputer posiada już inny system operacyjny, system ten może nie zdołać uruchomić się po instalacji SvarDOS.
27+
28+### DISK SETUP ###
29+3.0:BŁĄD: Nie wykryto dysku %c:. Być może twój dysk powinien zostać najpierw spartycjonowany. Utwórz co najmniej jedną partycję na twoim dysku, aby SvarDOS mógł zostać na nią zainstalowany. SvarDOS wymaga co najmniej %d MiB miejsca.\n\nMożesz skorzystać z narzędzia FDISK aby stworzyć wymaganą partycję ręcznie, lub pozwolić instalatorowi stworzyć ją automatycznie. Możesz także wstrzymać instalację aby użyć jakiegokolwiek innego narzędzia do partycjonowania.
30+3.1:Twój komputer zostanie teraz uruchomiony ponownie.
31+3.2:BŁĄD: Dysk %c: jest nośnikiem wymiennym. Instalacja zatrzymana.
32+3.3:BŁĄD: Dysk %c: zdaje się nie być sformatowany.
33+3.4:BŁĄD: Dysk %c: jest za mały! SvarDOS wymaga co najmniej %d MiB miejsca.
34+3.5:BŁĄD: Dysk %c: nie jest pusty. SvarDOS może być zainstalowany wyłącznie na pustym dysku.\n\nMożesz sformatować dysk teraz, aby go opróżnić. Operacja ta sprawi jednak że WSZYSTKIE OBECNE DANE ZOSTANĄ UTRACONE.
35+3.6:Za chwilę rozpocznie się instalacja systemu SvarDOS na dysk %c:.
36+
37+### PACKAGES INSTALLATION ###
38+# example: "Installing package 4/50: FDISK"
39+4.0:Instalacja pakietu %d/%d: %s
40+4.1:*** WŁÓŻ DYSK ZAWIERAJĄCY POTRZEBNY PLIK I NACIŚNIJ DOWOLNY KLAWISZ ***
41+
42+### END SCREEN ###
43+5.0:Twój komputer zostanie teraz uruchomiony ponownie.\nWyjmij dysk instalacyjny z napędu.
44+5.1:Instalacja SvarDOS jest zakończona. Proszę zrestartować teraz komputer.
45+
46+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
47+6.0:Witaj w systemie SvarDOS! Wpisz 'HELP' jeśli potrzebujesz pomocy.
--- install/tags/20220204/nls/ru_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/ru_utf8.txt (revision 626)
@@ -0,0 +1,45 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: Russian
5+# Translator: Mateusz Viste
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:УСТАНОВКА SVARDOS
10+0.1:Установить SvarDOS
11+0.2:Выход в DOS
12+0.3:Создание раздела автоматически
13+0.4:Запуск FDISK
14+0.5:Нажмите любую кнопку...
15+# Every string below must be at most 78 characters long! (used in status bar)
16+0.10:Вверх/вниз = выбор входа | Enter = Подтвердить выбор | ESC = Предыдущий экран
17+0.11:Вверх/вниз = выбор входа | Enter = Подтвердить выбор | ESC = Выход в DOS
18+
19+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
20+1.0:Добро пожаловать в SvarDOS
21+1.1:Пожалуйста, выберите язык из списка ниже:
22+1.5:SvarDOS поддерживает раскладки клавиатуры. Выберите раскладки клавиатуры вы хотите.
23+
24+### WELCOME SCREEN ###
25+2.0:Вы собираетесь установить SvarDOS: свободный, MSDOS-совместимая операционная система, основанная на ядре FreeDOS. SvarDOS поставляется с множеством сторонних пакетов.\n\nВНИМАНИЕ: Если ваш компьютер имеет другую операционную систему, это другая система может оказаться не в состоянии загрузиться после установки SvarDOS.
26+
27+### DISK SETUP ###
28+3.0:ОШИБКА: Диск %c: не может быть найден. Возможно, ваш диск должен первый быть разбит на разделы. Пожалуйста, создайте по крайней мере один раздел на диске, поэтому SvarDOS может быть установлен на нем. Обратите внимание, что SvarDOS требует по крайней мере %d МиБ свободного места на диске.\n\nВы можете использовать FDISK для создания требуемого раздела вручную, или вы можете позволить программе установки разбиения вашего диска автоматически. Вы также можете отменить установку использовать любой другой менеджер разделов по вашему выбору.
29+3.1:Ваш компьютер будет сейчас перезагружен.
30+3.2:ОШИБКА: Диск %c: является съемным. Установка прервана.
31+3.3:ОШИБКА: Диск %c:, кажется, не отформатирован.
32+3.4:ОШИБКА: Диск %c: слишком мал! SvarDOS требует диск не менее %d МиБ.
33+3.5:ОШИБКА: Диск %c: не является пустым. SvarDOS должен быть установлен на пустой диск.\n\nВы можете отформатировать диск сейчас, чтобы сделать его пустым. Отметим, однако, что это приведет к УДАЛЕНИЮ ВСЕХ ДАННЫХ на жестком диске.
34+3.6:Установка SvarDOS до %c: вот-вот начнется.
35+
36+### PACKAGES INSTALLATION ###
37+# example: "Installing package 4/50: FDISK"
38+4.0:Установка пакета %d/%d: %s
39+
40+### END SCREEN ###
41+5.0:Ваш компьютер будет сейчас перезагружен.\nПожалуйста, удалите установочный диск из дисковода.
42+5.1:Установка SvarDOS закончена. Please restart your computer now.
43+
44+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
45+6.0:Добро пожаловать в SvarDOS! Введите слово "HELP", если вам нужна помощь.
--- install/tags/20220204/nls/si_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/si_utf8.txt (revision 626)
@@ -0,0 +1,45 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: Slovene
5+# Translator: Matej Horvat
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:NAMESTITEV SVARDOS
10+0.1:Namesti SvarDOS
11+0.2:Izhod v DOS
12+0.3:Samodejno ustvari particijo
13+0.4:Zaženi program za particioniranje FDISK
14+0.5:Pritisnite tipko...
15+# Every string below must be at most 78 characters long! (used in status bar)
16+0.10:Gor/dol = izbira | Enter = potrdi izbiro | Esc = prejšnji zaslon
17+0.11:Gor/dol = izbira | Enter = potrdi izbiro | Esc = izhod v DOS
18+
19+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
20+1.0:Dobrodošli v SvarDOS!
21+1.1:Izberite svoj jezik s spodnjega seznama:
22+1.5:SvarDOS podpira razporede tipkovnic več držav. Izberite, katerega želite uporabljati.
23+
24+### WELCOME SCREEN ###
25+2.0:Ta program bo namestil SvarDOS - brezplačen in odprtokoden operacijski sistem, združljiv z MS-DOS, ki uporablja jedro projekta FreeDOS. SvarDOS vključuje veliko aplikacij tretjih oseb.\n\nOPOZORILO: Če ima računalnik že nameščen operacijski sistem, tega morda ne bo več mogoče zagnati, ko boste namestili SvarDOS.
26+
27+### DISK SETUP ###
28+3.0:NAPAKA: Pogon %c: ni bil najden. Morda je treba najprej ustvariti particijo na trdem disku. Prosimo, ustvarite vsaj eno particijo, da lahko namestite SvarDOS. Velika mora biti vsaj %d MB.\n\nUstvarite jo lahko sami s programom FDISK, lahko pa jo program za namestitev ustvari samodejno. Namestitev lahko tudi prekinete in uporabite svoj program za particioniranje.
29+3.1:Računalnik se bo zdaj ponovno zagnal.
30+3.2:NAPAKA: Pogon %c: je odstranljiv medij. Namestitev bo prekinjena.
31+3.3:NAPAKA: Pogon %c: ni formatiran.
32+3.4:NAPAKA: Pogon %c: je premajhen. SvarDOS zahteva vsaj %d MB prostora.
33+3.5:NAPAKA: Pogon %c: ni prazen. SvarDOS mora biti nameščen na prazen pogon.\n\nLahko ga formatirate in s tem izpraznite, vendar bo to IZBRISALO VSE PODATKE na njem.
34+3.6:Namestitev operacijskega sistema SvarDOS na pogon %c: se bo začela.
35+
36+### PACKAGES INSTALLATION ###
37+# example: "Installing package 4/50: FDISK"
38+4.0:Nameščanje paketa %d/%d: %s
39+
40+### END SCREEN ###
41+5.0:Računalnik se bo zdaj ponovno zagnal.\nProsimo, odstranite namestitveni medij.
42+5.1:SvarDOS je nameščen. Please restart your computer now.
43+
44+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
45+6.0:Dobrodošli v SvarDOS! Če potrebujete pomoč, vtipkajte HELP.
--- install/tags/20220204/nls/sv_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/sv_utf8.txt (revision 626)
@@ -0,0 +1,79 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+# Detta är en localiseringsfil för SvarDOSs INSTALLprogram
4+#
5+# Language..: Swedish
6+# Translator: Martin Strömberg
7+#
8+
9+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
10+### GEMENSAMMA SAKER: TITLE-BAR AND MULTIPLA-VALSTRÄNGAR ###
11+#0.0:SVARDOS INSTALLATION
12+0.0:SVARDOS INSTALLATION
13+#0.1:Install SvarDOS
14+0.1:Installera SvarDOS
15+#0.2:Quit to DOS
16+0.2:Avsluta till DOS
17+#0.3:Create a partition automatically
18+0.3:Skapa en partition automatiskt
19+#0.4:Run the FDISK partitioning tool
20+0.4:Kör FDISK-partitioneringsverktyget
21+#0.5:Press any key...
22+0.5:Tryck på en tangent...
23+# Every string below must be at most 78 characters long! (used in status bar)
24+# Varje sträng nedan måste vara som mest 78 bokstäver lång (används i statusbaren)
25+#0.10:Up/Down = Select entry | Enter = Confirm choice | ESC = Previous screen
26+0.10:Upp/Ner = Välj rad | Enter = Bekräfta val | ESC = Föregående skärm
27+#0.11:Up/Down = Select entry | Enter = Confirm choice | ESC = Quit to DOS
28+0.11:Up/Down = Välj rad | Enter = Bekräfta val | ESC = Avsluta till DOS
29+
30+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
31+### SPRÅKVAL & TANGENTBORDSLAYOUTSKÄRMAR ###
32+#1.0:Welcome to SvarDOS
33+1.0:Välkommen till SvarDOS
34+#1.1:Please select your preferred language from the list below:
35+1.1:Vänligen välj språket du vill använda från listan nedan:
36+#1.5:SvarDOS supports different keyboard layouts. Choose the keyboard layout that you want.
37+1.5:SvarDOS stödjer olika tangentbordslayouter. Välj tangentbordslayouten som du vill ha.
38+
39+### WELCOME SCREEN ###
40+### VÄLKOMSTSKÄRM ###
41+#2.0:You are about to install SvarDOS: a free, MS-DOS compatible operating system based on FreeDOS. SvarDOS comes with a variety of third-party applications.\n\nWARNING: If your PC has another operating system installed, this other system might be unable to boot once SvarDOS is installed.
42+2.0:Du ska just till att installera SvarDOS: ett fritt, MS-DOS-kompatibelt operativsystem baserat på FreeDOS. SvarDOS kommer med en samling olika tredjepartsapplikationer.\n\nVARNING: Om din PC har ett annat operativsystem intstallerat, kanske detta andra system inte kan boota när väl SvarDOS har installerats.
43+
44+### DISK SETUP ###
45+### DISKSETUP ###
46+#3.0:ERROR: Drive %c: could not be found. Perhaps your hard disk needs to be partitioned first. Please create at least one primary partition on your hard disk, so SvarDOS can be installed on it. Note, that SvarDOS requires at least %d MiB of available disk space.\n\nYou can use the FDISK partitioning tool for creating the required partition manually, or you can let the installer partitioning your disk automatically. You can also abort the installation to use any other partition manager of your choice.
47+3.0:FEL: Enhet %c: kunde inte hittas. Kanske din hårddisk behöver partitioneras först. Vänligen skapa minst en primär partition på din hårddisk, så SvarDOS kan installeras på den. N.B. att SvarDOS behöver minst %d MiB ledigt diskutrymme.\n\nDu kan använda FDISK-partitioneringsverktyget för att skapa den nödvändiga partitionen manuellt, eller så kan du låta installationsprogrammet partitioner din disk automatiskt. Du kan också avbryta installationen för att använda en annan valfri partitionsmanager.
48+#3.1:Your computer will reboot now.
49+3.1:Din dator kommer att boota om nu.
50+#3.2:ERROR: Drive %c: is a removable device. Installation aborted.
51+3.2:FEL: Enhet %c: är ett removable device. Installationen avbryts.
52+#3.3:ERROR: Drive %c: seems to be unformated. Do you wish to format it?
53+3.3:FEL: Enhet %c: verkar vara oformaterad.
54+#3.4:ERROR: Drive %c: is not big enough! SvarDOS requires a disk of at least %d MiB.
55+3.4:FEL: Enhet %c: är inte tillräckligt stor! SvarDOS behöver en disk som är minst %d MiB.
56+#3.5:ERROR: Drive %c: is not empty. SvarDOS must be installed on an empty disk.\n\nYou can format the disk now, to make it empty. Note however, that this will ERASE ALL CURRENT DATA on your disk.
57+3.5:FEL: Enhet %c: är inte tom. SvarDOS måste installeras på en tom disk.\n\nDu kan formatera disken nu, för att tömma den. N.B. detta kommer att RADERA ALLT NUVARANDE DATA på din disk.
58+#3.6:The installation of SvarDOS to %c: is about to begin.
59+3.6:Installationen av SvarDOS till %c: ska just börja.
60+
61+### PACKAGES INSTALLATION ###
62+### PAKETINSTALLATION ###
63+# example: "Installing package 4/50: FDISK"
64+# exempel: "Installerar paketet 4/50: FDISK"
65+#4.0:Installing package %d/%d: %s
66+4.0:Installerar paketet %d/%d: %s
67+
68+### END SCREEN ###
69+### AVSLUTNINGSSKÄRM ###
70+#(5.0:SvarDOS installation is over. Your computer will reboot now.\nPlease remove the installation disk from your drive.)
71+#5.0:Your computer will reboot now.\nPlease make sure to remove the installation media.
72+5.0:Din dator kommer att reboota nu.\nVänligen se till att ta bort installationsmediet.
73+#5.1:SvarDOS installation is over. Please restart your computer now.
74+5.1:SvarDOS-installationen är klar. Please restart your computer now.
75+
76+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
77+### LOGINVÄLKOMSTTEXT NÄR SYSTEMET ÄR INSTALLERAT ###
78+#6.0:Welcome to SvarDOS! Type 'HELP' if you need help.
79+6.0:Välkommen till SvarDOS! Skriv 'HELP' om du behöver hjälp.
--- install/tags/20220204/nls/tr_utf8.txt (nonexistent)
+++ install/tags/20220204/nls/tr_utf8.txt (revision 626)
@@ -0,0 +1,45 @@
1+#
2+# This is a localization file for the SvarDOS INSTALL program
3+#
4+# Language..: Turkish
5+# Translator: anonymous
6+#
7+
8+### COMMON STUFF: TITLE BAR AND MULTIPLE CHOICE STRINGS ###
9+0.0:SVARDOS KURULUMU
10+0.1:SvarDOS'yı kur
11+0.2:DOS'a çık
12+0.3:Disk bölümünü otomatik olarak oluştur
13+0.4:FDISK disk bölümü oluşturma aracını çalıştır
14+0.5:Herhangi bir tuşa basın...
15+# Every string below must be at most 78 characters long! (used in status bar)
16+0.10:Yukarı/Aşağı = Unsur seç | Enter = Seçimi doğrula | ESC = Önceki ekran
17+0.11:Yukarı/Aşağı = Unsur seç | Enter = Seçimi doğrula | ESC = Dos'a çık
18+
19+### LANGUAGE SELECTION & KEYBOARD LAYOUT SCREENS ###
20+1.0:SvarDOS'ya hoş geldiniz
21+1.1:Dilinizi aşağıdaki listeden seçiniz:
22+1.5:SvarDOS değişik ülkelerde kullanılan klavye düzenlerini destekler. İstediğiniz klavye düzenini seçiniz.
23+
24+### WELCOME SCREEN ###
25+2.0:FreeDOS çekirdeğine dayalı, ücretsiz ve MS-DOS uyumlu bir işletim sistemi olan SvarDOS'yı kurmak üzeresiniz. SvarDOS çeşitli üçüncü parti uygulamaları sunar.\n\nİKAZ: Eğer PC'nizde başka bir işletim sistemi kuruluysa, bu sistem SvarDOS kurulduktan sonra başlamayabilir.
26+
27+### DISK SETUP ###
28+3.0:HATA: %c: sürücüsü bulunamadı. Belki sabit diskinizde önce bölüm oluşturmanız gerekmektedir. Lütfen sabit diskinizde en az bir bölüm oluşturun ki SvarDOS o bölüme kurulabilsin. SvarDOS'nın en az %d MiB disk alanına ihtiyaç duyduğunu unutmayın.\n\nGerekli bölümü elle oluşturmak için FDISK bölüm oluşturma aracını kullanabilir ya da kurulumun diskinizde otomatik olarak bölüm oluşturmasına izin verebilirsiniz. Başka bir bölüm yöneticisi kullanmak için kurulumu iptal de edebilirsiniz.
29+3.1:Bilgisayarınız şimdi yeniden başlayacaktır.
30+3.2:HATA: %c: sürücüsü çıkarılabilir bir cihazdır. Kurulum iptal edilmiştir.
31+3.3:HATA: %c: biçimlendirilmemiş gözükmektedir.
32+3.4:HATA: %c: sürücüsü yeteri kadar büyük değildir! SvarDOS en az %d MiB boyutunda bir diske ihtiyaç duyar.
33+3.5:HATA: %c: sürücüsü boş değildir. SvarDOS, boş bir diske kurulmalıdır.\n\nDiski boşaltmak için şimdi biçimlendirebilirsiniz. Bununla beraber, bunun diskinizdeki TÜM GÜNCEL VERİLERİ SİLECEĞİNİ unutmayınız.
34+3.6:SvarDOS'nın %c: sürücüsüne kurulumu başlamak üzeredir.
35+
36+### PACKAGES INSTALLATION ###
37+# example: "Installing package 4/50: FDISK"
38+4.0:Şu paket kuruluyor: %d/%d: %s
39+
40+### END SCREEN ###
41+5.0:Bilgisayarınız şimdi yeniden başlayacaktır.\nLütfen kurulum diskini sürücünüzden çıkarın.
42+5.1:SvarDOS kurulumu sona ermiştir. Please restart your computer now.
43+
44+### LOG IN WELCOME TEXT ONCE SYSTEM IS INSTALLED ###
45+6.0:SvarDOS'ya hoş geldiniz! Yardıma ihtiyacınız varsa 'HELP' yazınız.
--- install/tags/20220204/cdrom.c (nonexistent)
+++ install/tags/20220204/cdrom.c (revision 626)
@@ -0,0 +1,30 @@
1+/*
2+ * CD-ROM detection routines
3+ * Copyright (C) 2016 Mateusz Viste
4+ */
5+
6+#include <dos.h>
7+#include "cdrom.h" /* include self for control */
8+
9+/* returns 1 if drive drv is a valid CDROM, zero if not, negative if no MSCDEX (0=A:, etc) */
10+int cdrom_drivecheck(int drv) {
11+ union REGS r;
12+ r.x.ax = 0x150B;
13+ r.x.cx = drv;
14+ int86(0x2F, &r, &r);
15+ if (r.x.bx != 0xADAD) return(-1); /* look for the MSCDEX signature */
16+ if (r.x.ax == 0) return(0);
17+ return(1);
18+}
19+
20+/* returns the identifier of the first CDROM drive (0=A:, etc), or a negative value on error */
21+int cdrom_findfirst(void) {
22+ int i;
23+ for (i = 2; i < 26; i++) { /* check drives from C to Z */
24+ int cdres = cdrom_drivecheck(i);
25+ if (cdres == 0) continue;
26+ if (cdres == 1) return(i);
27+ break;
28+ }
29+ return(-1);
30+}
--- install/tags/20220204/cdrom.h (nonexistent)
+++ install/tags/20220204/cdrom.h (revision 626)
@@ -0,0 +1,15 @@
1+/*
2+ * CD-ROM detection routines
3+ * Copyright (C) 2016 Mateusz Viste
4+ */
5+
6+#ifndef CDROM_H_SENTINEL
7+#define CDROM_H_SENTINEL
8+
9+/* returns 1 if drive drv is a valid CDROM, zero if not, negative if no MSCDEX (0=A:, etc) */
10+int cdrom_drivecheck(int drv);
11+
12+/* returns the identifier of the first CDROM drive (0=A:, etc), or a negative value on error */
13+int cdrom_findfirst(void);
14+
15+#endif
--- install/tags/20220204/deflang.c (nonexistent)
+++ install/tags/20220204/deflang.c (revision 626)
@@ -0,0 +1,135 @@
1+/* THIS FILE HAS BEEN AUTOGENERATE BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */
2+const unsigned short svarlang_memsz = 4212u;
3+char svarlang_mem[4212] = {
4+0,0,21,0,83,86,65,82,68,79,83,32,73,78,83,84,
5+65,76,76,65,84,73,79,78,0,1,0,16,0,73,110,115,
6+116,97,108,108,32,83,118,97,114,68,79,83,0,2,0,12,
7+0,81,117,105,116,32,116,111,32,68,79,83,0,3,0,33,
8+0,67,114,101,97,116,101,32,97,32,112,97,114,116,105,116,
9+105,111,110,32,97,117,116,111,109,97,116,105,99,97,108,108,
10+121,0,4,0,32,0,82,117,110,32,116,104,101,32,70,68,
11+73,83,75,32,112,97,114,116,105,116,105,111,110,105,110,103,
12+32,116,111,111,108,0,5,0,17,0,80,114,101,115,115,32,
13+97,110,121,32,107,101,121,46,46,46,0,7,0,17,0,70,
14+111,114,109,97,116,32,100,114,105,118,101,32,37,99,58,0,
15+10,0,72,0,85,112,47,68,111,119,110,32,61,32,83,101,
16+108,101,99,116,32,101,110,116,114,121,32,124,32,69,110,116,
17+101,114,32,61,32,67,111,110,102,105,114,109,32,99,104,111,
18+105,99,101,32,124,32,69,83,67,32,61,32,80,114,101,118,
19+105,111,117,115,32,115,99,114,101,101,110,0,11,0,68,0,
20+85,112,47,68,111,119,110,32,61,32,83,101,108,101,99,116,
21+32,101,110,116,114,121,32,124,32,69,110,116,101,114,32,61,
22+32,67,111,110,102,105,114,109,32,99,104,111,105,99,101,32,
23+124,32,69,83,67,32,61,32,81,117,105,116,32,116,111,32,
24+68,79,83,0,0,1,19,0,87,101,108,99,111,109,101,32,
25+116,111,32,83,118,97,114,68,79,83,0,1,1,59,0,80,
26+108,101,97,115,101,32,115,101,108,101,99,116,32,121,111,117,
27+114,32,112,114,101,102,101,114,114,101,100,32,108,97,110,103,
28+117,97,103,101,32,102,114,111,109,32,116,104,101,32,108,105,
29+115,116,32,98,101,108,111,119,58,0,5,1,87,0,83,118,
30+97,114,68,79,83,32,115,117,112,112,111,114,116,115,32,100,
31+105,102,102,101,114,101,110,116,32,107,101,121,98,111,97,114,
32+100,32,108,97,121,111,117,116,115,46,32,67,104,111,111,115,
33+101,32,116,104,101,32,107,101,121,98,111,97,114,100,32,108,
34+97,121,111,117,116,32,116,104,97,116,32,121,111,117,32,119,
35+97,110,116,46,0,0,2,29,1,89,111,117,32,97,114,101,
36+32,97,98,111,117,116,32,116,111,32,105,110,115,116,97,108,
37+108,32,83,118,97,114,68,79,83,58,32,97,32,102,114,101,
38+101,44,32,77,83,45,68,79,83,32,99,111,109,112,97,116,
39+105,98,108,101,32,111,112,101,114,97,116,105,110,103,32,115,
40+121,115,116,101,109,32,98,97,115,101,100,32,111,110,32,70,
41+114,101,101,68,79,83,46,32,83,118,97,114,68,79,83,32,
42+99,111,109,101,115,32,119,105,116,104,32,97,32,118,97,114,
43+105,101,116,121,32,111,102,32,116,104,105,114,100,45,112,97,
44+114,116,121,32,97,112,112,108,105,99,97,116,105,111,110,115,
45+46,92,110,92,110,87,65,82,78,73,78,71,58,32,73,102,
46+32,121,111,117,114,32,80,67,32,104,97,115,32,97,110,111,
47+116,104,101,114,32,111,112,101,114,97,116,105,110,103,32,115,
48+121,115,116,101,109,32,105,110,115,116,97,108,108,101,100,44,
49+32,116,104,105,115,32,111,116,104,101,114,32,115,121,115,116,
50+101,109,32,109,105,103,104,116,32,98,101,32,117,110,97,98,
51+108,101,32,116,111,32,98,111,111,116,32,111,110,99,101,32,
52+83,118,97,114,68,79,83,32,105,115,32,105,110,115,116,97,
53+108,108,101,100,46,0,0,3,246,1,69,82,82,79,82,58,
54+32,68,114,105,118,101,32,37,99,58,32,99,111,117,108,100,
55+32,110,111,116,32,98,101,32,102,111,117,110,100,46,32,80,
56+101,114,104,97,112,115,32,121,111,117,114,32,104,97,114,100,
57+32,100,105,115,107,32,110,101,101,100,115,32,116,111,32,98,
58+101,32,112,97,114,116,105,116,105,111,110,101,100,32,102,105,
59+114,115,116,46,32,80,108,101,97,115,101,32,99,114,101,97,
60+116,101,32,97,116,32,108,101,97,115,116,32,111,110,101,32,
61+112,114,105,109,97,114,121,32,112,97,114,116,105,116,105,111,
62+110,32,111,110,32,121,111,117,114,32,104,97,114,100,32,100,
63+105,115,107,44,32,115,111,32,83,118,97,114,68,79,83,32,
64+99,97,110,32,98,101,32,105,110,115,116,97,108,108,101,100,
65+32,111,110,32,105,116,46,32,78,111,116,101,44,32,116,104,
66+97,116,32,83,118,97,114,68,79,83,32,114,101,113,117,105,
67+114,101,115,32,97,116,32,108,101,97,115,116,32,37,100,32,
68+77,105,66,32,111,102,32,97,118,97,105,108,97,98,108,101,
69+32,100,105,115,107,32,115,112,97,99,101,46,92,110,92,110,
70+89,111,117,32,99,97,110,32,117,115,101,32,116,104,101,32,
71+70,68,73,83,75,32,112,97,114,116,105,116,105,111,110,105,
72+110,103,32,116,111,111,108,32,102,111,114,32,99,114,101,97,
73+116,105,110,103,32,116,104,101,32,114,101,113,117,105,114,101,
74+100,32,112,97,114,116,105,116,105,111,110,32,109,97,110,117,
75+97,108,108,121,44,32,111,114,32,121,111,117,32,99,97,110,
76+32,108,101,116,32,116,104,101,32,105,110,115,116,97,108,108,
77+101,114,32,112,97,114,116,105,116,105,111,110,105,110,103,32,
78+121,111,117,114,32,100,105,115,107,32,97,117,116,111,109,97,
79+116,105,99,97,108,108,121,46,32,89,111,117,32,99,97,110,
80+32,97,108,115,111,32,97,98,111,114,116,32,116,104,101,32,
81+105,110,115,116,97,108,108,97,116,105,111,110,32,116,111,32,
82+117,115,101,32,97,110,121,32,111,116,104,101,114,32,112,97,
83+114,116,105,116,105,111,110,32,109,97,110,97,103,101,114,32,
84+111,102,32,121,111,117,114,32,99,104,111,105,99,101,46,0,
85+1,3,31,0,89,111,117,114,32,99,111,109,112,117,116,101,
86+114,32,119,105,108,108,32,114,101,98,111,111,116,32,110,111,
87+119,46,0,2,3,62,0,69,82,82,79,82,58,32,68,114,
88+105,118,101,32,37,99,58,32,105,115,32,97,32,114,101,109,
89+111,118,97,98,108,101,32,100,101,118,105,99,101,46,32,73,
90+110,115,116,97,108,108,97,116,105,111,110,32,97,98,111,114,
91+116,101,100,46,0,3,3,41,0,69,82,82,79,82,58,32,
92+68,114,105,118,101,32,37,99,58,32,115,101,101,109,115,32,
93+116,111,32,98,101,32,117,110,102,111,114,109,97,116,101,100,
94+46,0,4,3,80,0,69,82,82,79,82,58,32,68,114,105,
95+118,101,32,37,99,58,32,105,115,32,110,111,116,32,98,105,
96+103,32,101,110,111,117,103,104,33,32,83,118,97,114,68,79,
97+83,32,114,101,113,117,105,114,101,115,32,97,32,100,105,115,
98+107,32,111,102,32,97,116,32,108,101,97,115,116,32,37,100,
99+32,77,105,66,46,0,5,3,191,0,69,82,82,79,82,58,
100+32,68,114,105,118,101,32,37,99,58,32,105,115,32,110,111,
101+116,32,101,109,112,116,121,46,32,83,118,97,114,68,79,83,
102+32,109,117,115,116,32,98,101,32,105,110,115,116,97,108,108,
103+101,100,32,111,110,32,97,110,32,101,109,112,116,121,32,100,
104+105,115,107,46,92,110,92,110,89,111,117,32,99,97,110,32,
105+102,111,114,109,97,116,32,116,104,101,32,100,105,115,107,32,
106+110,111,119,44,32,116,111,32,109,97,107,101,32,105,116,32,
107+101,109,112,116,121,46,32,78,111,116,101,32,104,111,119,101,
108+118,101,114,44,32,116,104,97,116,32,116,104,105,115,32,119,
109+105,108,108,32,69,82,65,83,69,32,65,76,76,32,67,85,
110+82,82,69,78,84,32,68,65,84,65,32,111,110,32,121,111,
111+117,114,32,100,105,115,107,46,0,6,3,54,0,84,104,101,
112+32,105,110,115,116,97,108,108,97,116,105,111,110,32,111,102,
113+32,83,118,97,114,68,79,83,32,116,111,32,37,99,58,32,
114+105,115,32,97,98,111,117,116,32,116,111,32,98,101,103,105,
115+110,46,0,0,4,29,0,73,110,115,116,97,108,108,105,110,
116+103,32,112,97,99,107,97,103,101,32,37,100,47,37,100,58,
117+32,37,115,0,1,4,74,0,42,42,42,32,73,78,83,69,
118+82,84,32,84,72,69,32,68,73,83,75,32,84,72,65,84,
119+32,67,79,78,84,65,73,78,83,32,84,72,69,32,82,69,
120+81,85,73,82,69,68,32,70,73,76,69,32,65,78,68,32,
121+80,82,69,83,83,32,65,78,89,32,75,69,89,32,42,42,
122+42,0,0,5,85,0,89,111,117,114,32,99,111,109,112,117,
123+116,101,114,32,119,105,108,108,32,114,101,98,111,111,116,32,
124+110,111,119,46,92,110,80,108,101,97,115,101,32,114,101,109,
125+111,118,101,32,116,104,101,32,105,110,115,116,97,108,108,97,
126+116,105,111,110,32,100,105,115,107,32,102,114,111,109,32,121,
127+111,117,114,32,100,114,105,118,101,46,0,1,5,64,0,83,
128+118,97,114,68,79,83,32,105,110,115,116,97,108,108,97,116,
129+105,111,110,32,105,115,32,111,118,101,114,46,32,80,108,101,
130+97,115,101,32,114,101,115,116,97,114,116,32,121,111,117,114,
131+32,99,111,109,112,117,116,101,114,32,110,111,119,46,0,0,
132+6,50,0,87,101,108,99,111,109,101,32,116,111,32,83,118,
133+97,114,68,79,83,33,32,84,121,112,101,32,39,72,69,76,
134+80,39,32,105,102,32,121,111,117,32,110,101,101,100,32,104,
135+101,108,112,46,0,0,0,0,0,0};
--- install/tags/20220204/input.c (nonexistent)
+++ install/tags/20220204/input.c (revision 626)
@@ -0,0 +1,37 @@
1+/*
2+ * input keyboard routines used by the SvarDOS installer.
3+ * Copyright (C) 2016 Mateusz Viste
4+ */
5+
6+#ifndef input_h_sentinel
7+#define input_h_sentinel
8+
9+#include <dos.h>
10+#include "input.h" /* include self for control */
11+
12+/* waits for a keypress and return it. Returns 0x1xx for extended keys */
13+int input_getkey(void) {
14+ union REGS regs;
15+ int res;
16+ regs.h.ah = 0x08;
17+ int86(0x21, &regs, &regs);
18+ res = regs.h.al;
19+ if (res == 0) { /* extended key - poll again */
20+ regs.h.ah = 0x08;
21+ int86(0x21, &regs, &regs);
22+ res = regs.h.al | 0x100;
23+ }
24+ return(res);
25+}
26+
27+
28+/* poll the keyboard, and return the next input key in buffer, or -1 if none */
29+int input_getkeyifany(void) {
30+ union REGS regs;
31+ regs.h.ah = 0x0B;
32+ int86(0x21, &regs, &regs);
33+ if (regs.h.al == 0xFF) return(input_getkey());
34+ return(-1);
35+}
36+
37+#endif
--- install/tags/20220204/input.h (nonexistent)
+++ install/tags/20220204/input.h (revision 626)
@@ -0,0 +1,11 @@
1+/*
2+ * input keyboard routines used by the SvarDOS installer.
3+ * Copyright (C) 2016 Mateusz Viste
4+ */
5+
6+/* waits for a keypress and return it. Returns 0 for extended keystroke, then
7+ function must be called again to return scan code. */
8+int input_getkey(void);
9+
10+/* poll the keyboard, and return the next input key if any, or -1 */
11+int input_getkeyifany(void);
--- install/tags/20220204/install.c (nonexistent)
+++ install/tags/20220204/install.c (revision 626)
@@ -0,0 +1,894 @@
1+/*
2+ * SVARDOS INSTALL PROGRAM
3+ *
4+ * PUBLISHED UNDER THE TERMS OF THE MIT LICENSE
5+ *
6+ * COPYRIGHT (C) 2016-2022 MATEUSZ VISTE, ALL RIGHTS RESERVED.
7+ *
8+ * Permission is hereby granted, free of charge, to any person obtaining a
9+ * copy of this software and associated documentation files (the "Software"),
10+ * to deal in the Software without restriction, including without limitation
11+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12+ * and/or sell copies of the Software, and to permit persons to whom the
13+ * Software is furnished to do so, subject to the following conditions:
14+ *
15+ * The above copyright notice and this permission notice shall be included in
16+ * all copies or substantial portions of the Software.
17+ *
18+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24+ * DEALINGS IN THE SOFTWARE.
25+ *
26+ * http://svardos.osdn.io
27+ */
28+
29+#include <dos.h>
30+#include <direct.h> /* mkdir() */
31+#include <stdio.h> /* printf() and friends */
32+#include <stdlib.h> /* system() */
33+#include <string.h> /* memcpy() */
34+#include <unistd.h>
35+
36+#include "svarlang.lib\svarlang.h"
37+
38+#include "input.h"
39+#include "video.h"
40+
41+/* keyboard layouts and locales */
42+#include "keylay.h"
43+#include "keyoff.h"
44+
45+/* color scheme (color, mono) */
46+static unsigned short COLOR_TITLEBAR[2] = {0x7000,0x7000};
47+static unsigned short COLOR_BODY[2] = {0x1700,0x0700};
48+static unsigned short COLOR_SELECT[2] = {0x7000,0x7000};
49+static unsigned short COLOR_SELECTCUR[2] = {0x1F00,0x0700};
50+
51+/* mono flag */
52+static int mono = 0;
53+
54+/* how much disk space does SvarDOS require (in MiB) */
55+#define SVARDOS_DISK_REQ 8
56+
57+/* menu screens can output only one of these: */
58+#define MENUNEXT 0
59+#define MENUPREV -1
60+#define MENUQUIT -2
61+
62+/* a convenience 'function' used for debugging */
63+#define DBG(x) { video_putstringfix(24, 0, 0x4F00u, x, 80); }
64+
65+struct slocales {
66+ char lang[4];
67+ const char *keybcode;
68+ unsigned int codepage;
69+ int egafile;
70+ int keybfile;
71+ int keyboff;
72+ int keyblen;
73+ unsigned int keybid;
74+};
75+
76+
77+/* reboot the computer */
78+static void reboot(void) {
79+ void ((far *bootroutine)()) = (void (far *)()) 0xFFFF0000L;
80+ int far *rstaddr = (int far *)0x00400072L; /* BIOS boot flag is at 0040:0072 */
81+ *rstaddr = 0x1234; /* 0x1234 = warm boot, 0 = cold boot */
82+ (*bootroutine)(); /* jump to the BIOS reboot routine at FFFF:0000 */
83+}
84+
85+
86+/* outputs a string to screen with taking care of word wrapping. returns amount of lines. */
87+static int putstringwrap(int y, int x, unsigned short attr, const char *s) {
88+ int linew, lincount;
89+ linew = 80;
90+ if (x >= 0) linew -= (x << 1);
91+
92+ for (lincount = 1; y+lincount < 25; lincount++) {
93+ int i, len = linew;
94+ for (i = 0; i <= linew; i++) {
95+ if (s[i] == ' ') len = i;
96+ if (s[i] == '\n') {
97+ len = i;
98+ break;
99+ }
100+ if (s[i] == 0) {
101+ len = i;
102+ break;
103+ }
104+ }
105+ video_putstring(y++, x, attr, s, len);
106+ s += len;
107+ if (*s == 0) break;
108+ s += 1; /* skip the whitespace char */
109+ }
110+ return(lincount);
111+}
112+
113+
114+/* an NLS wrapper around video_putstring(), also performs line wrapping when
115+ * needed. returns the amount of lines that were output */
116+static int putstringnls(int y, int x, unsigned short attr, int nlsmaj, int nlsmin) {
117+ const char *s = svarlang_str(nlsmaj, nlsmin);
118+ if (s == NULL) s = "";
119+ return(putstringwrap(y, x, attr, s));
120+}
121+
122+
123+/* copy file f1 to f2 using buff as a buffer of buffsz bytes. f2 will be overwritten if it
124+ * exists already! returns 0 on success. */
125+static int fcopy(const char *f2, const char *f1, void *buff, size_t buffsz) {
126+ FILE *fd1, *fd2;
127+ size_t sz;
128+ int res = -1; /* assume failure */
129+
130+ /* open files */
131+ fd1 = fopen(f1, "rb");
132+ fd2 = fopen(f2, "wb");
133+ if ((fd1 == NULL) || (fd2 == NULL)) goto QUIT;
134+
135+ /* copy data */
136+ for (;;) {
137+ sz = fread(buff, 1, buffsz, fd1);
138+ if (sz == 0) {
139+ if (feof(fd1) != 0) break;
140+ goto QUIT;
141+ }
142+ if (fwrite(buff, 1, sz, fd2) != sz) goto QUIT;
143+ }
144+
145+ res = 0; /* success */
146+
147+ QUIT:
148+ if (fd1 != NULL) fclose(fd1);
149+ if (fd2 != NULL) fclose(fd2);
150+ return(res);
151+}
152+
153+
154+static int menuselect(int ypos, int xpos, int height, const char **list, int listlen) {
155+ int i, offset = 0, res = 0, count, width = 0;
156+ /* count how many positions there is, and check their width */
157+ for (count = 0; (list[count] != NULL) && (count != listlen); count++) {
158+ int len = strlen(list[count]);
159+ if (len > width) width = len;
160+ }
161+
162+ /* if xpos negative, means 'center out' */
163+ if (xpos < 0) xpos = 39 - (width >> 1);
164+
165+ video_putchar(ypos, xpos+width+2, COLOR_SELECT[mono], 0xBF); /* \ */
166+ video_putchar(ypos, xpos-1, COLOR_SELECT[mono], 0xDA); /* / */
167+ video_putchar(ypos+height-1, xpos-1, COLOR_SELECT[mono], 0xC0); /* \ */
168+ video_putchar(ypos+height-1, xpos+width+2, COLOR_SELECT[mono], 0xD9);/* / */
169+ video_putcharmulti(ypos, xpos, COLOR_SELECT[mono], 0xC4, width + 2, 1);
170+ video_putcharmulti(ypos+height-1, xpos, COLOR_SELECT[mono], 0xC4, width + 2, 1);
171+ video_putcharmulti(ypos+1, xpos-1, COLOR_SELECT[mono], 0xB3, height - 2, 80);
172+ video_putcharmulti(ypos+1, xpos+width+2, COLOR_SELECT[mono], 0xB3, height - 2, 80);
173+
174+ for (;;) {
175+ int key;
176+ /* list of selectable items */
177+ for (i = 0; i < height - 2; i++) {
178+ if (i + offset == res) {
179+ video_putchar(ypos + 1 + i, xpos, COLOR_SELECTCUR[mono], 16);
180+ video_putchar(ypos + 1 + i, xpos+width+1, COLOR_SELECTCUR[mono], 17);
181+ video_movecursor(ypos + 1 + i, xpos);
182+ video_putstringfix(ypos + 1 + i, xpos+1, COLOR_SELECTCUR[mono], list[i + offset], width);
183+ } else if (i + offset < count) {
184+ video_putchar(ypos + 1 + i, xpos, COLOR_SELECT[mono], ' ');
185+ video_putchar(ypos + 1 + i, xpos+width+1, COLOR_SELECT[mono], ' ');
186+ video_putstringfix(ypos + 1 + i, xpos+1, COLOR_SELECT[mono], list[i + offset], width);
187+ } else {
188+ video_putcharmulti(ypos + 1 + i, xpos, COLOR_SELECT[mono], ' ', width+2, 1);
189+ }
190+ }
191+ key = input_getkey();
192+ if (key == 0x0D) { /* ENTER */
193+ return(res);
194+ } else if (key == 0x148) { /* up */
195+ if (res > 0) {
196+ res--;
197+ if (res < offset) offset = res;
198+ }
199+ } else if (key == 0x150) { /* down */
200+ if (res+1 < count) {
201+ res++;
202+ if (res > offset + height - 3) offset = res - (height - 3);
203+ }
204+ } else if (key == 0x147) { /* home */
205+ res = 0;
206+ offset = 0;
207+ } else if (key == 0x14F) { /* end */
208+ res = count - 1;
209+ if (res > offset + height - 3) offset = res - (height - 3);
210+ } else if (key == 0x1B) { /* ESC */
211+ return(-1);
212+ }/* else {
213+ char buf[8];
214+ snprintf(buf, sizeof(buf), "0x%02X ", key);
215+ video_putstring(1, 0, COLOR_BODY[mono], buf, -1);
216+ }*/
217+ }
218+}
219+
220+static void newscreen(int statusbartype) {
221+ const char *msg;
222+ msg = svarlang_strid(0x00); /* "SVARDOS INSTALLATION" */
223+ video_putcharmulti(0, 0, COLOR_TITLEBAR[mono], ' ', 80, 1);
224+ video_putstring(0, 40 - (strlen(msg) >> 1), COLOR_TITLEBAR[mono], msg, -1);
225+ video_clear(COLOR_BODY[mono], 80, -80);
226+ switch (statusbartype) {
227+ case 1:
228+ msg = svarlang_strid(0x000B); /* "Up/Down = Select entry | Enter = Validate your choice | ESC = Quit to DOS" */
229+ break;
230+ case 2:
231+ msg = svarlang_strid(0x0005); /* "Press any key..." */
232+ break;
233+ case 3:
234+ msg = "";
235+ break;
236+ default:
237+ msg = svarlang_strid(0x000A); /* "Up/Down = Select entry | Enter = Validate your choice | ESC = Previous screen" */
238+ break;
239+ }
240+ video_putchar(24, 0, COLOR_TITLEBAR[mono], ' ');
241+ video_putstringfix(24, 1, COLOR_TITLEBAR[mono], msg, 79);
242+ video_movecursor(25,0);
243+}
244+
245+/* fills a slocales struct accordingly to the value of its keyboff member */
246+static void kblay2slocal(struct slocales *locales) {
247+ const char *m;
248+ for (m = kblayouts[locales->keyboff]; *m != 0; m++); /* skip layout name */
249+ m++;
250+ /* skip keyb code and copy it to locales.keybcode */
251+ locales->keybcode = m;
252+ for (; *m != 0; m++);
253+ /* */
254+ locales->codepage = ((unsigned short)m[1] << 8) | m[2];
255+ locales->egafile = m[3];
256+ locales->keybfile = m[4];
257+ locales->keybid = ((unsigned short)m[5] << 8) | m[6];
258+}
259+
260+static int selectlang(struct slocales *locales) {
261+ int choice, x;
262+ const char *msg;
263+ const char *langlist[] = {
264+ "English",
265+ "French",
266+ "German",
267+ "Italian",
268+ "Polish",
269+ "Russian",
270+ "Slovene",
271+ "Swedish",
272+ "Turkish",
273+ NULL
274+ };
275+
276+ newscreen(1);
277+ msg = svarlang_strid(0x0100); /* "Welcome to SvarDOS" */
278+ x = 40 - (strlen(msg) >> 1);
279+ video_putstring(4, x, COLOR_BODY[mono], msg, -1);
280+ video_putcharmulti(5, x, COLOR_BODY[mono], '=', strlen(msg), 1);
281+ putstringnls(8, -1, COLOR_BODY[mono], 1, 1); /* "Please select your language from the list below:" */
282+ choice = menuselect(11, -1, 11, langlist, -1);
283+ if (choice < 0) return(MENUPREV);
284+ /* populate locales with default values */
285+ memset(locales, 0, sizeof(struct slocales));
286+ switch (choice) {
287+ case 1:
288+ strcpy(locales->lang, "FR");
289+ locales->keyboff = OFFLOC_FR;
290+ locales->keyblen = OFFLEN_FR;
291+ break;
292+ case 2:
293+ strcpy(locales->lang, "DE");
294+ locales->keyboff = OFFLOC_DE;
295+ locales->keyblen = OFFLEN_DE;
296+ break;
297+ case 3:
298+ strcpy(locales->lang, "IT");
299+ locales->keyboff = OFFLOC_IT;
300+ locales->keyblen = OFFLEN_IT;
301+ break;
302+ case 4:
303+ strcpy(locales->lang, "PL");
304+ locales->keyboff = OFFLOC_PL;
305+ locales->keyblen = OFFLEN_PL;
306+ break;
307+ case 5:
308+ strcpy(locales->lang, "RU");
309+ locales->keyboff = OFFLOC_RU;
310+ locales->keyblen = OFFLEN_RU;
311+ break;
312+ case 6:
313+ strcpy(locales->lang, "SI");
314+ locales->keyboff = OFFLOC_SI;
315+ locales->keyblen = OFFLEN_SI;
316+ break;
317+ case 7:
318+ strcpy(locales->lang, "SV");
319+ locales->keyboff = OFFLOC_SV;
320+ locales->keyblen = OFFLEN_SV;
321+ break;
322+ case 8:
323+ strcpy(locales->lang, "TR");
324+ locales->keyboff = OFFLOC_TR;
325+ locales->keyblen = OFFLEN_TR;
326+ break;
327+ default:
328+ strcpy(locales->lang, "EN");
329+ locales->keyboff = 0;
330+ locales->keyblen = OFFCOUNT;
331+ break;
332+ }
333+ /* populate the slocales struct accordingly to the keyboff member */
334+ kblay2slocal(locales);
335+ /* */
336+ return(MENUNEXT);
337+}
338+
339+
340+static int selectkeyb(struct slocales *locales) {
341+ int menuheight, choice;
342+ if (locales->keyblen == 1) return(MENUNEXT); /* do not ask for keyboard layout if only one is available for given language */
343+ newscreen(0);
344+ putstringnls(5, 1, COLOR_BODY[mono], 1, 5); /* "SvarDOS supports different keyboard layouts */
345+ menuheight = locales->keyblen + 2;
346+ if (menuheight > 13) menuheight = 13;
347+ choice = menuselect(10, -1, menuheight, &(kblayouts[locales->keyboff]), locales->keyblen);
348+ if (choice < 0) return(MENUPREV);
349+ /* (re)load the keyboard layout & codepage setup */
350+ locales->keyboff += choice;
351+ kblay2slocal(locales);
352+ return(MENUNEXT);
353+}
354+
355+
356+/* returns 0 if installation must proceed, non-zero otherwise */
357+static int welcomescreen(void) {
358+ int c;
359+ const char *choice[3];
360+ choice[0] = svarlang_strid(0x0001);
361+ choice[1] = svarlang_strid(0x0002);
362+ choice[2] = NULL;
363+ newscreen(0);
364+ putstringnls(4, 1, COLOR_BODY[mono], 2, 0); /* "You are about to install SvarDOS */
365+ c = menuselect(13, -1, 4, choice, -1);
366+ if (c < 0) return(MENUPREV);
367+ if (c == 0) return(MENUNEXT);
368+ return(MENUQUIT);
369+}
370+
371+
372+/* returns 1 if drive is removable, 0 if not, -1 on error */
373+static int isdriveremovable(int drv) {
374+ union REGS r;
375+ r.x.ax = 0x4408;
376+ r.h.bl = drv;
377+ int86(0x21, &r, &r);
378+ /* CF set on error, AX set to 0 if removable, 1 if fixed */
379+ if (r.x.cflag != 0) return(-1);
380+ if (r.x.ax == 0) return(1);
381+ return(0);
382+}
383+
384+
385+/* returns total disk space of drive drv (in MiB, max 2048), or -1 if drive invalid */
386+static int disksize(int drv) {
387+ long res;
388+ union REGS r;
389+ r.h.ah = 0x36; /* DOS 2+ get free disk space */
390+ r.h.dl = drv; /* A=1, B=2, etc */
391+ int86(0x21, &r, &r);
392+ if (r.x.ax == 0xffffu) return(-1); /* AX set to FFFFh if drive invalid */
393+ res = r.x.ax; /* sectors per cluster */
394+ res *= r.x.dx; /* dx contains total clusters, bx contains free clusters */
395+ res *= r.x.cx; /* bytes per sector */
396+ res >>= 20; /* convert bytes to MiB */
397+ return(res);
398+}
399+
400+
401+/* returns 0 if disk is empty, non-zero otherwise */
402+static int diskempty(int drv) {
403+ unsigned int rc;
404+ int res;
405+ char buff[8];
406+ struct find_t fileinfo;
407+ snprintf(buff, sizeof(buff), "%c:\\*.*", 'A' + drv - 1);
408+ rc = _dos_findfirst(buff, _A_NORMAL | _A_SUBDIR | _A_HIDDEN | _A_SYSTEM, &fileinfo);
409+ if (rc == 0) {
410+ res = 1; /* call successfull means disk is not empty */
411+ } else {
412+ res = 0;
413+ }
414+ /* _dos_findclose(&fileinfo); */ /* apparently required only on OS/2 */
415+ return(res);
416+}
417+
418+#ifdef DEADCODE
419+/* set new DOS "current drive" to drv ('A', 'B', etc). returns 0 on success */
420+static int set_cur_drive(char drv) {
421+ union REGS r;
422+ if ((drv < 'A') || (drv > 'Z')) return(-1);
423+ r.h.ah = 0x0E; /* DOS 1+ SELECT DEFAULT DRIVE */
424+ r.h.dl = drv - 'A';
425+ int86(0x21, &r, &r);
426+ if (r.h.al < drv - 'A') return(-1);
427+ return(0);
428+}
429+#endif
430+
431+
432+/* get the DOS "current drive" (0=A:, 1=B:, etc) */
433+static int get_cur_drive(void) {
434+ union REGS r;
435+ r.h.ah = 0x19; /* DOS 1+ GET CURRENT DEFAULT DRIVE */
436+ int86(0x21, &r, &r);
437+ return(r.h.al);
438+}
439+
440+
441+/* returns 0 if file exists, non-zero otherwise */
442+static int fileexists(const char *fname) {
443+ FILE *fd;
444+ fd = fopen(fname, "rb");
445+ if (fd == NULL) return(-1);
446+ fclose(fd);
447+ return(0);
448+}
449+
450+
451+static int preparedrive(char sourcedrv) {
452+ int driveremovable;
453+ int selecteddrive = 3; /* default to 'C:' */
454+ int cselecteddrive;
455+ int ds;
456+ int choice;
457+ char buff[1024];
458+ int driveid = 1; /* fdisk runs on first drive (unless USB boot) */
459+ if (selecteddrive == get_cur_drive() + 1) { /* get_cur_drive() returns 0-based values (A=0) while selecteddrive is 1-based (A=1) */
460+ selecteddrive = 4; /* use D: if install is run from C: (typically because it was booted from USB?) */
461+ driveid = 2; /* primary drive is the emulated USB storage */
462+ }
463+ cselecteddrive = 'A' + selecteddrive - 1;
464+ for (;;) {
465+ driveremovable = isdriveremovable(selecteddrive);
466+ if (driveremovable < 0) {
467+ const char *list[4];
468+ newscreen(0);
469+ list[0] = svarlang_str(0, 3); /* Create a partition automatically */
470+ list[1] = svarlang_str(0, 4); /* Run the FDISK tool */
471+ list[2] = svarlang_str(0, 2); /* Quit to DOS */
472+ list[3] = NULL;
473+ snprintf(buff, sizeof(buff), svarlang_strid(0x0300), cselecteddrive, SVARDOS_DISK_REQ); /* "ERROR: Drive %c: could not be found. Note, that SvarDOS requires at least %d MiB of available disk space */
474+ switch (menuselect(6 + putstringwrap(4, 1, COLOR_BODY[mono], buff), -1, 5, list, -1)) {
475+ case 0:
476+ sprintf(buff, "FDISK /AUTO %d", driveid);
477+ system(buff);
478+ break;
479+ case 1:
480+ video_clear(0x0700, 0, 0);
481+ video_movecursor(0, 0);
482+ sprintf(buff, "FDISK %d", driveid);
483+ system(buff);
484+ break;
485+ case 2:
486+ return(MENUQUIT);
487+ default:
488+ return(-1);
489+ }
490+ /* write a temporary MBR which only skips the drive (in case BIOS would
491+ * try to boot off the not-yet-ready C: disk) */
492+ sprintf(buff, "FDISK /AMBR %d", driveid);
493+ system(buff); /* writes BOOT.MBR into actual MBR */
494+ newscreen(2);
495+ putstringnls(10, 10, COLOR_BODY[mono], 3, 1); /* "Your computer will reboot now." */
496+ putstringnls(12, 10, COLOR_BODY[mono], 0, 5); /* "Press any key..." */
497+ input_getkey();
498+ reboot();
499+ return(MENUQUIT);
500+ } else if (driveremovable > 0) {
501+ newscreen(2);
502+ snprintf(buff, sizeof(buff), svarlang_strid(0x0302), cselecteddrive); /* "ERROR: Drive %c: is a removable device */
503+ video_putstring(9, 1, COLOR_BODY[mono], buff, -1);
504+ putstringnls(11, 2, COLOR_BODY[mono], 0, 5); /* "Press any key..." */
505+ return(MENUQUIT);
506+ }
507+ /* if not formatted, propose to format it right away (try to create a directory) */
508+ snprintf(buff, sizeof(buff), "%c:\\SVWRTEST.123", cselecteddrive);
509+ if (mkdir(buff) == 0) {
510+ rmdir(buff);
511+ } else {
512+ const char *list[3];
513+ newscreen(0);
514+ snprintf(buff, sizeof(buff), svarlang_str(3, 3), cselecteddrive); /* "ERROR: Drive %c: seems to be unformated. Do you wish to format it?") */
515+ video_putstring(7, 1, COLOR_BODY[mono], buff, -1);
516+
517+ snprintf(buff, sizeof(buff), svarlang_strid(0x0007), cselecteddrive); /* "Format drive %c:" */
518+ list[0] = buff;
519+ list[1] = svarlang_strid(0x0002); /* "Quit to DOS" */
520+ list[2] = NULL;
521+
522+ choice = menuselect(12, -1, 4, list, -1);
523+ if (choice < 0) return(MENUPREV);
524+ if (choice == 1) return(MENUQUIT);
525+ video_clear(0x0700, 0, 0);
526+ video_movecursor(0, 0);
527+ snprintf(buff, sizeof(buff), "FORMAT %c: /Q /U /Z:seriously /V:SVARDOS", cselecteddrive);
528+ system(buff);
529+ continue;
530+ }
531+ /* check total disk space */
532+ ds = disksize(selecteddrive);
533+ if (ds < SVARDOS_DISK_REQ) {
534+ int y = 9;
535+ newscreen(2);
536+ snprintf(buff, sizeof(buff), svarlang_strid(0x0304), cselecteddrive, SVARDOS_DISK_REQ); /* "ERROR: Drive %c: is not big enough! SvarDOS requires a disk of at least %d MiB." */
537+ y += putstringwrap(y, 1, COLOR_BODY[mono], buff);
538+ putstringnls(++y, 1, COLOR_BODY[mono], 0, 5); /* "Press any key..." */
539+ input_getkey();
540+ return(MENUQUIT);
541+ }
542+ /* is the disk empty? */
543+ newscreen(0);
544+ if (diskempty(selecteddrive) != 0) {
545+ const char *list[3];
546+ int y = 6;
547+ snprintf(buff, sizeof(buff), svarlang_strid(0x0305), cselecteddrive); /* "ERROR: Drive %c: not empty" */
548+ y += putstringwrap(y, 1, COLOR_BODY[mono], buff);
549+
550+ snprintf(buff, sizeof(buff), svarlang_strid(0x0007), cselecteddrive); /* "Format drive %c:" */
551+ list[0] = buff;
552+ list[1] = svarlang_strid(0x0002); /* "Quit to DOS" */
553+ list[2] = NULL;
554+
555+ choice = menuselect(++y, -1, 4, list, -1);
556+ if (choice < 0) return(MENUPREV);
557+ if (choice == 1) return(MENUQUIT);
558+ video_clear(0x0700, 0, 0);
559+ video_movecursor(0, 0);
560+ snprintf(buff, sizeof(buff), "FORMAT %c: /Q /U /Z:seriously /V:SVARDOS", cselecteddrive);
561+ system(buff);
562+ continue;
563+ } else {
564+ /* final confirmation */
565+ const char *list[3];
566+ list[0] = svarlang_strid(0x0001); /* Install SvarDOS */
567+ list[1] = svarlang_strid(0x0002); /* Quit to DOS */
568+ list[2] = NULL;
569+ snprintf(buff, sizeof(buff), svarlang_strid(0x0306), cselecteddrive); /* "The installation of SvarDOS to %c: is about to begin." */
570+ video_putstring(7, -1, COLOR_BODY[mono], buff, -1);
571+ choice = menuselect(10, -1, 4, list, -1);
572+ if (choice < 0) return(MENUPREV);
573+ if (choice == 1) return(MENUQUIT);
574+ snprintf(buff, sizeof(buff), "SYS %c: %c: > NUL", sourcedrv, cselecteddrive);
575+ system(buff);
576+ sprintf(buff, "FDISK /MBR %d", driveid);
577+ system(buff);
578+ snprintf(buff, sizeof(buff), "%c:\\TEMP", cselecteddrive);
579+ mkdir(buff);
580+ return(cselecteddrive);
581+ }
582+ }
583+}
584+
585+
586+/* generates locales-related configurations and writes them to file (this
587+ * is used to compute autoexec.bat content) */
588+static void genlocalesconf(FILE *fd, const struct slocales *locales) {
589+ if (locales == NULL) return;
590+
591+ fprintf(fd, "SET LANG=%s\r\n", locales->lang);
592+
593+ if (locales->egafile > 0) {
594+ fprintf(fd, "DISPLAY CON=(EGA,,1)\r\n");
595+ if (locales->egafile == 1) {
596+ fprintf(fd, "MODE CON CP PREPARE=((%u) %%DOSDIR%%\\CPI\\EGA.CPX)\r\n", locales->codepage);
597+ } else {
598+ fprintf(fd, "MODE CON CP PREPARE=((%u) %%DOSDIR%%\\CPI\\EGA%d.CPX)\r\n", locales->codepage, locales->egafile);
599+ }
600+ fprintf(fd, "MODE CON CP SELECT=%u\r\n", locales->codepage);
601+ }
602+
603+ if (locales->keybfile > 0) {
604+ fprintf(fd, "KEYB %s,%d,%%DOSDIR%%\\BIN\\", locales->keybcode, locales->codepage);
605+ if (locales->keybfile == 1) {
606+ fprintf(fd, "KEYBOARD.SYS");
607+ } else {
608+ fprintf(fd, "KEYBRD%d.SYS", locales->keybfile);
609+ }
610+ if (locales->keybid != 0) fprintf(fd, " /ID:%d", locales->keybid);
611+ fprintf(fd, "\r\n");
612+ }
613+}
614+
615+
616+static void bootfilesgen(char targetdrv, const struct slocales *locales) {
617+ char buff[128];
618+ FILE *fd;
619+ /*** CONFIG.SYS ***/
620+ snprintf(buff, sizeof(buff), "%c:\\TEMP\\CONFIG.SYS", targetdrv);
621+ fd = fopen(buff, "wb");
622+ if (fd == NULL) return;
623+ fprintf(fd, "DOS=UMB,HIGH\r\n"
624+ "LASTDRIVE=Z\r\n"
625+ "FILES=50\r\n");
626+ fprintf(fd, "DEVICE=C:\\SVARDOS\\BIN\\HIMEMX.EXE\r\n");
627+ if (strcmp(locales->lang, "EN") == 0) {
628+ strcpy(buff, "COMMAND");
629+ } else {
630+ snprintf(buff, sizeof(buff), "CMD-%s", locales->lang);
631+ }
632+ fprintf(fd, "SHELLHIGH=C:\\SVARDOS\\BIN\\%s.COM /E:512 /P\r\n", buff);
633+ fprintf(fd, "REM COUNTRY=001,%u,C:\\SVARDOS\\CFG\\COUNTRY.SYS\r\n", locales->codepage);
634+ fprintf(fd, "REM DEVICE=C:\\DRIVERS\\UDVD2\\UDVD2.SYS /D:SVCD0001 /H\r\n");
635+ fclose(fd);
636+ /*** AUTOEXEC.BAT ***/
637+ snprintf(buff, sizeof(buff), "%c:\\TEMP\\AUTOEXEC.BAT", targetdrv);
638+ fd = fopen(buff, "wb");
639+ if (fd == NULL) return;
640+ fprintf(fd, "@ECHO OFF\r\n");
641+ fprintf(fd, "SET TEMP=C:\\TEMP\r\n");
642+ fprintf(fd, "SET DOSDIR=C:\\SVARDOS\r\n");
643+ fprintf(fd, "SET NLSPATH=%%DOSDIR%%\\NLS\r\n");
644+ fprintf(fd, "SET DIRCMD=/OGNE/P/4\r\n");
645+ fprintf(fd, "SET WATTCP.CFG=%%DOSDIR%%\\CFG\r\n");
646+ fprintf(fd, "PATH %%DOSDIR%%\\BIN\r\n");
647+ fprintf(fd, "PROMPT $P$G\r\n");
648+ fprintf(fd, "ALIAS REBOOT=FDAPM COLDBOOT\r\n");
649+ fprintf(fd, "ALIAS HALT=FDAPM POWEROFF\r\n");
650+ fprintf(fd, "FDAPM APMDOS\r\n");
651+ fprintf(fd, "\r\n");
652+ genlocalesconf(fd, locales);
653+ fprintf(fd, "\r\n");
654+ fprintf(fd, "REM Uncomment the line below for CDROM support\r\n");
655+ fprintf(fd, "REM SHSUCDX /d:SVCD0001\r\n");
656+ fprintf(fd, "\r\n");
657+ fprintf(fd, "REM Uncomment the line below for automatic mouse support\r\n");
658+ fprintf(fd, "REM CTMOUSE\r\n");
659+ fprintf(fd, "\r\n");
660+ fprintf(fd, "ECHO.\r\n");
661+ fprintf(fd, "ECHO %s\r\n", svarlang_strid(0x0600)); /* "Welcome to SvarDOS!" */
662+ fclose(fd);
663+ /*** CREATE DIRECTORY FOR CONFIGURATION FILES ***/
664+ snprintf(buff, sizeof(buff), "%c:\\SVARDOS", targetdrv);
665+ mkdir(buff);
666+ snprintf(buff, sizeof(buff), "%c:\\SVARDOS\\CFG", targetdrv);
667+ mkdir(buff);
668+ /*** PKG.CFG ***/
669+ snprintf(buff, sizeof(buff), "%c:\\SVARDOS\\CFG\\PKG.CFG", targetdrv);
670+ fd = fopen(buff, "wb");
671+ if (fd == NULL) return;
672+ fprintf(fd, "# pkg config file - specifies locations where packages should be installed\r\n"
673+ "\r\n"
674+ "# Programs\r\n"
675+ "DIR PROGS C:\\\r\n"
676+ "\r\n"
677+ "# Games \r\n"
678+ "DIR GAMES C:\\\r\n"
679+ "\r\n"
680+ "# Drivers\r\n"
681+ "DIR DRIVERS C:\\DRIVERS\r\n"
682+ "\r\n"
683+ "# Development tools\r\n"
684+ "DIR DEVEL C:\\DEVEL\r\n");
685+ fclose(fd);
686+ /*** COUNTRY.SYS ***/
687+ /*** PICOTCP ***/
688+ /*** WATTCP ***/
689+ snprintf(buff, sizeof(buff), "%c:\\SVARDOS\\CFG\\WATTCP.CFG", targetdrv);
690+ fd = fopen(buff, "wb");
691+ if (fd == NULL) return;
692+ fprintf(fd, "my_ip = dhcp\r\n"
693+ "#my_ip = 192.168.0.7\r\n"
694+ "#netmask = 255.255.255.0\r\n"
695+ "#nameserver = 192.168.0.1\r\n"
696+ "#nameserver = 192.168.0.2\r\n"
697+ "#gateway = 192.168.0.1\r\n");
698+ fclose(fd);
699+}
700+
701+
702+static int installpackages(char targetdrv, char srcdrv, const struct slocales *locales) {
703+ char pkglist[512];
704+ int i, pkglistlen;
705+ size_t pkglistflen;
706+ char buff[1024]; /* must be *at least* 1 sector big for efficient file copying */
707+ FILE *fd = NULL;
708+ char *pkgptr;
709+ newscreen(3);
710+ /* load pkg list */
711+ fd = fopen("install.lst", "rb");
712+ if (fd == NULL) {
713+ video_putstring(10, 30, COLOR_BODY[mono], "ERROR: INSTALL.LST NOT FOUND", -1);
714+ input_getkey();
715+ return(-1);
716+ }
717+ pkglistflen = fread(pkglist, 1, sizeof(pkglist), fd);
718+ fclose(fd);
719+ if (pkglistflen == sizeof(pkglist)) {
720+ video_putstring(10, 30, COLOR_BODY[mono], "ERROR: INSTALL.LST TOO LARGE", -1);
721+ input_getkey();
722+ return(-1);
723+ }
724+ pkglist[pkglistflen] = 0xff; /* mark the end of list */
725+ /* replace all \r and \n chars by 0 bytes, and count the number of packages */
726+ pkglistlen = 0;
727+ for (i = 0; i < pkglistflen; i++) {
728+ switch (pkglist[i]) {
729+ case '\n':
730+ pkglistlen++;
731+ /* FALLTHRU */
732+ case '\r':
733+ pkglist[i] = 0;
734+ break;
735+ }
736+ }
737+ /* copy pkg.exe to the new drive, along with all packages */
738+ snprintf(buff, sizeof(buff), "%c:\\TEMP\\pkg.exe", targetdrv);
739+ snprintf(buff + 64, sizeof(buff) - 64, "%c:\\pkg.exe", srcdrv);
740+ fcopy(buff, buff + 64, buff, sizeof(buff));
741+
742+ /* open the post-install autoexec.bat and prepare initial instructions */
743+ snprintf(buff, sizeof(buff), "%c:\\temp\\postinst.bat", targetdrv);
744+ fd = fopen(buff, "wb");
745+ if (fd == NULL) return(-1);
746+ fprintf(fd, "@ECHO OFF\r\n");
747+
748+ /* copy packages */
749+ pkgptr = pkglist;
750+ for (i = 0;; i++) {
751+ /* move forward to nearest entry or end of list */
752+ while (*pkgptr == 0) pkgptr++;
753+ if (*pkgptr == 0xff) break;
754+ /* install the package */
755+ snprintf(buff, sizeof(buff), svarlang_strid(0x0400), i+1, pkglistlen, pkgptr); /* "Installing package %d/%d: %s" */
756+ strcat(buff, " ");
757+ video_putstringfix(10, 1, COLOR_BODY[mono], buff, sizeof(buff));
758+ /* wait for new diskette if package not found */
759+ snprintf(buff, sizeof(buff), "%c:\\%s.zip", srcdrv, pkgptr);
760+ while (fileexists(buff) != 0) {
761+ putstringnls(12, 1, COLOR_BODY[mono], 4, 1); /* "INSERT THE DISK THAT CONTAINS THE REQUIRED FILE AND PRESS ANY KEY" */
762+ input_getkey();
763+ video_putstringfix(12, 1, COLOR_BODY[mono], "", 80); /* erase the 'insert disk' message */
764+ }
765+ /* proceed with package copy (buff contains the src filename already) */
766+ snprintf(buff + 32, sizeof(buff) - 32, "%c:\\temp\\%s.zip", targetdrv, pkgptr);
767+ if (fcopy(buff + 32, buff, buff, sizeof(buff)) != 0) {
768+ video_putstring(10, 30, COLOR_BODY[mono], "READ ERROR", -1);
769+ input_getkey();
770+ fclose(fd);
771+ return(-1);
772+ }
773+ /* write install instruction to post-install script */
774+ fprintf(fd, "pkg install %s.zip\r\ndel %s.zip\r\n", pkgptr, pkgptr);
775+ /* jump to next entry or end of list */
776+ while ((*pkgptr != 0) && (*pkgptr != 0xff)) pkgptr++;
777+ if (*pkgptr == 0xff) break;
778+ }
779+ /* set up locales so the "installation over" message is nicely displayed */
780+ genlocalesconf(fd, locales);
781+ /* replace autoexec.bat and config.sys now and write some nice message on screen */
782+ fprintf(fd, "DEL pkg.exe\r\n"
783+ "COPY CONFIG.SYS C:\\\r\n"
784+ "DEL CONFIG.SYS\r\n"
785+ "DEL C:\\AUTOEXEC.BAT\r\n"
786+ "COPY AUTOEXEC.BAT C:\\\r\n"
787+ "DEL AUTOEXEC.BAT\r\n");
788+ /* print out the "installation over" message */
789+ fprintf(fd, "ECHO.\r\n"
790+ "ECHO %s\r\n"
791+ "ECHO.\r\n", svarlang_strid(0x0501)); /* "SvarDOS installation is over. Please restart your computer now" */
792+ fclose(fd);
793+
794+ /* prepare a dummy autoexec.bat that will call temp\postinst.bat */
795+ snprintf(buff, sizeof(buff), "%c:\\autoexec.bat", targetdrv);
796+ fd = fopen(buff, "wb");
797+ if (fd == NULL) return(-1);
798+ fprintf(fd, "@ECHO OFF\r\n"
799+ "SET DOSDIR=C:\\SVARDOS\r\n"
800+ "SET NLSPATH=%%DOSDIR%%\\NLS\r\n"
801+ "PATH %%DOSDIR%%\\BIN\r\n");
802+ fprintf(fd, "CD TEMP\r\n"
803+ "postinst.bat\r\n");
804+ fclose(fd);
805+
806+ return(0);
807+}
808+
809+
810+static void finalreboot(void) {
811+ int y = 9;
812+ newscreen(2);
813+ y += putstringnls(y, 1, COLOR_BODY[mono], 5, 0); /* "Your computer will reboot now.\nPlease remove the installation disk from your drive" */
814+ putstringnls(++y, 1, COLOR_BODY[mono], 0, 5); /* "Press any key..." */
815+ input_getkey();
816+ reboot();
817+}
818+
819+
820+static void loadcp(const struct slocales *locales) {
821+ char buff[64];
822+ if (locales->codepage == 437) return;
823+ video_movecursor(1, 0);
824+ if (locales->egafile == 1) {
825+ snprintf(buff, sizeof(buff), "MODE CON CP PREP=((%u) EGA.CPX) > NUL", locales->codepage);
826+ } else {
827+ snprintf(buff, sizeof(buff), "MODE CON CP PREP=((%u) EGA%d.CPX) > NUL", locales->codepage, locales->egafile);
828+ }
829+ system(buff);
830+ snprintf(buff, sizeof(buff), "MODE CON CP SEL=%u > NUL", locales->codepage);
831+ system(buff);
832+ /* below I re-init the video controller - apparently this is required if
833+ * I want the new glyph symbols to be actually applied, at least some
834+ * (broken?) BIOSes, like VBox, apply glyphs only at next video mode change */
835+ {
836+ union REGS r;
837+ r.h.ah = 0x0F; /* get current video mode */
838+ int86(0x10, &r, &r); /* r.h.al contains the current video mode now */
839+ r.h.al |= 128; /* set the high bit of AL to instruct BIOS not to flush VRAM's content (EGA+) */
840+ r.h.ah = 0; /* re-set video mode (to whatever is set in AL) */
841+ int86(0x10, &r, &r);
842+ }
843+}
844+
845+
846+#ifdef DEADCODE
847+/* checks that drive drv contains SvarDOS packages
848+ * returns 0 if found, non-zero otherwise */
849+static int checkinstsrc(char drv) {
850+ char fname[16];
851+ snprintf(fname, sizeof(fname), "%c:\\ATTRIB.ZIP", drv);
852+ return(fileexists(fname));
853+}
854+#endif
855+
856+
857+int main(void) {
858+ struct slocales locales;
859+ int targetdrv;
860+ int sourcedrv;
861+ int action;
862+
863+ sourcedrv = get_cur_drive() + 'A';
864+
865+ /* init screen and detect mono status */
866+ mono = video_init();
867+
868+ SelectLang:
869+ action = selectlang(&locales); /* welcome to svardos, select your language */
870+ if (action != MENUNEXT) goto Quit;
871+ loadcp(&locales);
872+ svarlang_load("INSTALL", locales.lang, ".\\"); /* NLS support */
873+ action = selectkeyb(&locales); /* what keyb layout should we use? */
874+ if (action == MENUQUIT) goto Quit;
875+ if (action == MENUPREV) goto SelectLang;
876+
877+ WelcomeScreen:
878+ action = welcomescreen(); /* what svardos is, ask whether to run live dos or install */
879+ if (action == MENUQUIT) goto Quit;
880+ if (action == MENUPREV) goto SelectLang;
881+ targetdrv = preparedrive(sourcedrv); /* what drive should we install from? check avail. space */
882+ if (targetdrv == MENUQUIT) goto Quit;
883+ if (targetdrv == MENUPREV) goto WelcomeScreen;
884+ bootfilesgen(targetdrv, &locales); /* generate boot files and other configurations */
885+ if (installpackages(targetdrv, sourcedrv, &locales) != 0) goto Quit; /* install packages */
886+ /*localcfg();*/ /* show local params (currency, etc), and propose to change them (based on localcfg) */
887+ /*netcfg();*/ /* basic networking config */
888+ finalreboot(); /* remove the CD and reboot */
889+
890+ Quit:
891+ video_clear(0x0700, 0, 0);
892+ video_movecursor(0, 0);
893+ return(0);
894+}
--- install/tags/20220204/install.txt (nonexistent)
+++ install/tags/20220204/install.txt (revision 626)
@@ -0,0 +1,33 @@
1+
2+ SVARDOS INSTALLER
3+ Copyright (C) 2016-2022 Mateusz Viste
4+
5+This is a simple installer for SvarDOS. It installs packages from the CD or
6+floppy (relying on pkginst), SYS the boot disk and pre-configures default boot
7+files (autoexec.bat and config.sys).
8+
9+
10+=== LICENSE ===
11+
12+The SvarDOS INSTALL program is published under the terms of the MIT license.
13+
14+Copyright (C) 2016-2022 Mateusz Viste
15+All rights reserved.
16+
17+Permission is hereby granted, free of charge, to any person obtaining a copy
18+of this software and associated documentation files (the "Software"), to deal
19+in the Software without restriction, including without limitation the rights
20+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21+copies of the Software, and to permit persons to whom the Software is
22+furnished to do so, subject to the following conditions:
23+
24+The above copyright notice and this permission notice shall be included in all
25+copies or substantial portions of the Software.
26+
27+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33+SOFTWARE.
--- install/tags/20220204/keylay.h (nonexistent)
+++ install/tags/20220204/keylay.h (revision 626)
@@ -0,0 +1,36 @@
1+/* DO NOT EDIT THIS FILE, IT IS AUTO-GENERATED BY LOCALES.EXE */
2+const char *kblayouts[] = {
3+ /****** EN ******/
4+ "English (US)\0en\0\1\265\0\0\0\0",
5+ "English (UK)\0uk\0\1\265\0\1\0\0",
6+ /****** HY ******/
7+ "Armenian\0hy\0\3\203\6\3\0\0",
8+ /****** BG ******/
9+ "Bulgarian\0bg\0\3\150\3\2\0\0",
10+ /****** FR ******/
11+ "French (France)\0fr\0\3\132\1\1\0\0",
12+ "French (Canada, standard)\0cf\0\3\137\11\1\0\0",
13+ "French (Canada, legacy)\0cf\0\3\137\11\1\1\365",
14+ /****** DE ******/
15+ "German\0de\0\3\132\1\1\0\0",
16+ /****** HU ******/
17+ "Hungarian\0hu\0\3\124\1\1\0\320",
18+ /****** IT ******/
19+ "Italian\0it\0\3\132\1\1\0\0",
20+ /****** NO ******/
21+ "Norvegian\0no\0\3\132\11\1\0\0",
22+ /****** PL ******/
23+ "Polish (Programmer)\0pl\0\3\337\12\1\0\0",
24+ "Polish (Typewriter)\0pl\0\3\337\12\1\0\326",
25+ /****** RU ******/
26+ "Russian (Standard)\0ru\0\3\142\3\2\0\0",
27+ "Russian (Typewriter)\0ru\0\3\142\3\2\1\273",
28+ /****** SI ******/
29+ "Slovenian\0si\0\3\124\1\1\0\0",
30+ /****** ES ******/
31+ "Spanish\0es\0\3\132\1\1\0\0",
32+ /****** SV ******/
33+ "Swedish\0sv\0\3\132\1\1\0\0",
34+ /****** TR ******/
35+ "Turkish\0tr\0\3\131\1\2\0\0",
36+ NULL};
--- install/tags/20220204/keyoff.h (nonexistent)
+++ install/tags/20220204/keyoff.h (revision 626)
@@ -0,0 +1,30 @@
1+/* DO NOT EDIT THIS FILE, IT IS AUTO-GENERATED BY LOCALES.EXE */
2+#define OFFLOC_EN 0
3+#define OFFLEN_EN 2
4+#define OFFLOC_HY 2
5+#define OFFLEN_HY 1
6+#define OFFLOC_BG 3
7+#define OFFLEN_BG 1
8+#define OFFLOC_FR 4
9+#define OFFLEN_FR 3
10+#define OFFLOC_DE 7
11+#define OFFLEN_DE 1
12+#define OFFLOC_HU 8
13+#define OFFLEN_HU 1
14+#define OFFLOC_IT 9
15+#define OFFLEN_IT 1
16+#define OFFLOC_NO 10
17+#define OFFLEN_NO 1
18+#define OFFLOC_PL 11
19+#define OFFLEN_PL 2
20+#define OFFLOC_RU 13
21+#define OFFLEN_RU 2
22+#define OFFLOC_SI 15
23+#define OFFLEN_SI 1
24+#define OFFLOC_ES 16
25+#define OFFLEN_ES 1
26+#define OFFLOC_SV 17
27+#define OFFLEN_SV 1
28+#define OFFLOC_TR 18
29+#define OFFLEN_TR 1
30+#define OFFCOUNT 19
--- install/tags/20220204/locales.c (nonexistent)
+++ install/tags/20220204/locales.c (revision 626)
@@ -0,0 +1,140 @@
1+/*
2+ * This program creates a header file for the SvarDOS installer, that
3+ * contains the list of all supported keyboard layouts, along with a way to
4+ * select sets of keyboard layouts that apply to only a specific region.
5+ *
6+ * Copyright (C) 2016 Mateusz Viste
7+ */
8+
9+/* the kblayouts list is a NULL-terminated array that contains entries in the
10+ * following format:
11+ * human description string <0> layout code string <0> <codepage number as a 16bit value> <ega.sys file number as a single byte> <keyboard.sys file number as a single byte> <sub keyb ID as a 16bit value, zero if none>
12+
13+ char *kblayouts[] = {
14+ "English (US)\0xxxx",
15+ "Polish\0pl\0xxxx"};
16+ };
17+ */
18+
19+
20+#include <stdio.h>
21+#include <string.h>
22+
23+
24+/* global file pointers */
25+FILE *fdkeyb, *fdoff;
26+
27+
28+/* Converts a positive base_10 into base_8 */
29+static unsigned int dec2oct(int n) {
30+ int res=0, digitPos=1;
31+ while (n) {
32+ res += (n & 7) * digitPos;
33+ n >>= 3;
34+ digitPos *= 10;
35+ }
36+ return(res);
37+}
38+
39+
40+static void addnew(char *countrycode, char *humanlang, char *keybcode, unsigned short cp, unsigned char egafile, unsigned char keybfile, unsigned int subid) {
41+ static char lastcountry[4] = {0};
42+ static int curoffset = 0, curcountryoffset = 0;
43+ /* if new country, declare an offset */
44+ if (strcmp(countrycode, lastcountry) != 0) {
45+ /* close previous one, if any */
46+ if (lastcountry[0] != 0) {
47+ fprintf(fdoff, "#define OFFLEN_%s %d\r\n", lastcountry, curoffset - curcountryoffset);
48+ } else {
49+ fprintf(fdkeyb, "const char *kblayouts[] = {\r\n");
50+ }
51+ /* open new one, if any */
52+ if (countrycode[0] != 0) {
53+ fprintf(fdkeyb, " /****** %s ******/\r\n", countrycode);
54+ curcountryoffset = curoffset;
55+ fprintf(fdoff, "#define OFFLOC_%s %d\r\n", countrycode, curoffset);
56+ strcpy(lastcountry, countrycode);
57+ } else {
58+ fprintf(fdoff, "#define OFFCOUNT %d\r\n", curoffset);
59+ }
60+ }
61+ /* */
62+ if (countrycode[0] != 0) {
63+ fprintf(fdkeyb, " \"%s\\0%s\\0\\%d\\%d\\%d\\%d\\%d\\%d\",\r\n", humanlang, keybcode, dec2oct(cp >> 8), dec2oct(cp & 0xff), dec2oct(egafile), dec2oct(keybfile), dec2oct(subid >> 8), dec2oct(subid & 0xff));
64+ } else {
65+ fprintf(fdkeyb, " NULL};\r\n");
66+ }
67+ curoffset++;
68+}
69+
70+
71+int main(void) {
72+
73+ /*** open files ***/
74+ fdkeyb = fopen("keylay.h", "wb");
75+ fdoff = fopen("keyoff.h", "wb");
76+ fprintf(fdkeyb, "/* DO NOT EDIT THIS FILE, IT IS AUTO-GENERATED BY LOCALES.EXE */\r\n");
77+ fprintf(fdoff, "/* DO NOT EDIT THIS FILE, IT IS AUTO-GENERATED BY LOCALES.EXE */\r\n");
78+
79+ /******************* LAYOUTS LIST START *******************/
80+
81+ /* addnew(countrycode, humanlang, keybcode, cp, egafile, keybfile, subid) */
82+
83+ /* English */
84+ addnew("EN", "English (US)", "en", 437, 0, 0, 0);
85+ addnew("EN", "English (UK)", "uk", 437, 0, 1, 0);
86+
87+ /* Armenian */
88+ addnew("HY", "Armenian", "hy", 899, 6, 3, 0);
89+
90+ /* Bulgarian */
91+ addnew("BG", "Bulgarian", "bg", 872, 3, 2, 0);
92+
93+ /* French */
94+ addnew("FR", "French (France)", "fr", 858, 1, 1, 0);
95+ addnew("FR", "French (Canada, standard)", "cf", 863, 9, 1, 0);
96+ addnew("FR", "French (Canada, legacy)", "cf", 863, 9, 1, 501);
97+
98+ /* German */
99+ addnew("DE", "German", "de", 858, 1, 1, 0);
100+
101+ /* Hungarian */
102+ addnew("HU", "Hungarian", "hu", 852, 1, 1, 208);
103+
104+ /* Italian */
105+ addnew("IT", "Italian", "it", 858, 1, 1, 0);
106+
107+ /* Norvegian */
108+ addnew("NO", "Norvegian", "no", 858, 9, 1, 0);
109+
110+ /* Polish */
111+ addnew("PL", "Polish (Programmer)", "pl", 991, 10, 1, 0);
112+ addnew("PL", "Polish (Typewriter)", "pl", 991, 10, 1, 214);
113+
114+ /* Russian */
115+ addnew("RU", "Russian (Standard)", "ru", 866, 3, 2, 0);
116+ addnew("RU", "Russian (Typewriter)", "ru", 866, 3, 2, 443);
117+
118+ /* Slovenian */
119+ addnew("SI", "Slovenian", "si", 852, 1, 1, 0);
120+
121+ /* Spanish */
122+ addnew("ES", "Spanish", "es", 858, 1, 1, 0);
123+
124+ /* Swedish */
125+ addnew("SV", "Swedish", "sv", 858, 1, 1, 0);
126+
127+ /* Turkish */
128+ addnew("TR", "Turkish", "tr", 857, 1, 2, 0);
129+
130+ /******************* LAYOUTS LIST STOP *******************/
131+
132+ /* end of list - DO NOT REMOVE */
133+ addnew("", "", "", 0, 0, 0, 0);
134+
135+ /* close files */
136+ fclose(fdoff);
137+ fclose(fdkeyb);
138+
139+ return(0);
140+}
--- install/tags/20220204/video.c (nonexistent)
+++ install/tags/20220204/video.c (revision 626)
@@ -0,0 +1,88 @@
1+/*
2+ * Video routines used by the SvarDOS installer
3+ * Copyright (C) 2016 Mateusz Viste
4+ *
5+ * All video routines output data directly to VRAM, and they all do that
6+ * to both B8000:0000 and B0000:0000 areas simulteanously, for compatibility
7+ * with all possible video adapters in all possible modes.
8+ */
9+
10+#include <dos.h>
11+#include "video.h" /* include self for control */
12+
13+/* pointer to the VGA/MDA screen */
14+static unsigned short far *scr = (unsigned short far *)0xB8000000L;
15+
16+void video_clear(unsigned short attr, int offset, int offsetend) {
17+ offsetend += 2000;
18+ while (offset < offsetend) scr[offset++] = attr;
19+}
20+
21+/* inits screen, returns 0 for color mode, 1 for mono */
22+int video_init(void) {
23+ union REGS r;
24+ int monoflag;
25+ /* get current video mode to detect color (7 = mono, anything else is color) */
26+ r.h.ah = 0x0F;
27+ int86(0x10, &r, &r);
28+ /* set the monoflag to detected value and prepare the next mode we will set */
29+ if (r.h.al == 7) {
30+ monoflag = 1;
31+ r.h.al = 7; /* 80x25 2 colors (MDA / Hercules) */
32+ scr = (unsigned short far *)0xB0000000L;
33+ } else if (r.h.al == 2) { /* 80x25 grayscale */
34+ monoflag = 1;
35+ r.h.al = 2; /* 80x25 grayscale */
36+ scr = (unsigned short far *)0xB8000000L;
37+ } else {
38+ monoflag = 0;
39+ r.h.al = 3; /* 80x25 16 colors */
40+ scr = (unsigned short far *)0xB8000000L;
41+ }
42+ /* (re)set video mode to be sure what we are dealing with */
43+ r.h.ah = 0;
44+ int86(0x10, &r, &r);
45+ return(monoflag);
46+}
47+
48+void video_putchar(int y, int x, unsigned short attr, int c) {
49+ scr[(y << 6) + (y << 4) + x] = attr | c;
50+}
51+
52+void video_putcharmulti(int y, int x, unsigned short attr, int c, int repeat, int step) {
53+ int offset = (y << 6) + (y << 4) + x;
54+ while (repeat-- > 0) {
55+ scr[offset] = attr | c;
56+ offset += step;
57+ }
58+}
59+
60+void video_putstring(int y, int x, unsigned short attr, const char *s, int maxlen) {
61+ if (x < 0) { /* means 'center out' */
62+ int slen;
63+ for (slen = 0; s[slen] != 0; slen++); /* faster than strlen() */
64+ x = 40 - (slen >> 1);
65+ }
66+ x += (y << 6) + (y << 4); /* I use x as an offset now */
67+ while ((*s != 0) && (maxlen-- != 0)) {
68+ scr[x++] = attr | *s;
69+ s++;
70+ }
71+}
72+
73+void video_putstringfix(int y, int x, unsigned short attr, const char *s, int w) {
74+ x += (y << 6) + (y << 4); /* I use x as an offset now */
75+ while (w-- > 0) {
76+ scr[x++] = attr | *s;
77+ if (*s != 0) s++;
78+ }
79+}
80+
81+void video_movecursor(int y, int x) {
82+ union REGS r;
83+ r.h.ah = 2;
84+ r.h.bh = 0;
85+ r.h.dh = y;
86+ r.h.dl = x;
87+ int86(0x10, &r, &r);
88+}
--- install/tags/20220204/video.h (nonexistent)
+++ install/tags/20220204/video.h (revision 626)
@@ -0,0 +1,17 @@
1+/*
2+ * Video routines used by the SvarDOS installer
3+ * Copyright (C) 2016 Mateusz Viste
4+ */
5+
6+#ifndef VIDEO_H_SENTINEL
7+#define VIDEO_H_SENTINEL
8+
9+int video_init(void);
10+void video_clear(unsigned short attr, int offset, int offsetend);
11+void video_putchar(int y, int x, unsigned short attr, int c);
12+void video_putcharmulti(int y, int x, unsigned short attr, int c, int repeat, int step);
13+void video_putstring(int y, int x, unsigned short attr, const char *str, int maxlen);
14+void video_putstringfix(int y, int x, unsigned short attr, const char *s, int w);
15+void video_movecursor(int y, int x);
16+
17+#endif
Show on old repository browser