Compare commits
23 Commits
a11466d56b
...
improvemen
Author | SHA1 | Date | |
---|---|---|---|
49399adda6 | |||
59685a6ac5 | |||
b72d3f1035 | |||
59bb13d6de | |||
|
82e2b25a9e | ||
|
46739aa601 | ||
|
c1704a1c43 | ||
63264c83a3 | |||
3cc3fa6689 | |||
1525cb7e37 | |||
bad1a3c3ca | |||
b1d8436000 | |||
3da226faf6 | |||
70297cd8f4 | |||
bf9f7d2a19 | |||
|
84aec355b8 | ||
|
a576b68db3 | ||
|
2e72ebc96f | ||
|
aa3ae8a8ea | ||
|
78d5942bb8 | ||
|
3da29f23e9 | ||
|
6301b42142 | ||
|
e0f45e268a |
118
CONTRIBUTING.md
Normal file
118
CONTRIBUTING.md
Normal file
@@ -0,0 +1,118 @@
|
||||
# Contributing guide
|
||||
|
||||
## Type of contributing
|
||||
|
||||
There are two main types of contributions accepted in KolibriOS:
|
||||
|
||||
- Submitting issues about problems in the project
|
||||
- Submitting code to the project via pull requests
|
||||
|
||||
Each of these types is described in detail below.
|
||||
|
||||
## Issues
|
||||
|
||||
You can help us by submitting issues about problems found in the system.
|
||||
Currently, there are two main ways of submitting an issue in the project:
|
||||
**Bug Reports** and **Feature Requests**:
|
||||
|
||||
- Bug Reports are suitable if you find a **bug** (crash, error, unexpected
|
||||
behavior) in some part of the system (kernel, drivers, apps, etc.) and want to
|
||||
report it
|
||||
- Feature Request are used, when you want to propose some **improvement** to
|
||||
the system (missing features, improved user experience, etc.)
|
||||
|
||||
## Pull requests
|
||||
|
||||
You can also help us by submitting code via pull requests. The process of
|
||||
submitting a pull request consists of the following steps:
|
||||
|
||||
1. Find what you want to implement or improve
|
||||
2. Make a fork of kolibrios (or other needed) repository
|
||||
3. Create a branch with a name that matches [the style](#branch-style)
|
||||
4. Implement and test the changes
|
||||
5. Create commits according to the [accepted style](#commit-style)
|
||||
6. Create and submit a pull request into `main` branch
|
||||
7. Wait for CI/CD pipelines and code review to pass
|
||||
|
||||
When a pull request is submitted, at least two project participants must conduct
|
||||
a code review, after which the proposed changes can be corrected (if it's
|
||||
necessary) and merged into the project.
|
||||
|
||||
## Branch style
|
||||
|
||||
1. Your branch name should be as short as possible, but describes your changes
|
||||
2. Words should be divided by minus sign (`-`)
|
||||
3. Optionally, might starts with general [type](#types) of your future PR
|
||||
with slash (`/`): `refactor/nasm-to-fasm`, `update/demos`, `fix/cp866-charset`
|
||||
|
||||
## Commit style
|
||||
|
||||
### Pattern
|
||||
|
||||
The commit message should look like this:
|
||||
|
||||
```
|
||||
type(scope): commit message header
|
||||
|
||||
Commit message body, if needed
|
||||
```
|
||||
- Use the present tense ("Add feature" not "Added feature")
|
||||
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
||||
- Limit the first line to 72 characters or less
|
||||
- Reference issues and pull requests liberally after the first line
|
||||
- When only changing documentation, include [ci skip] in the commit title
|
||||
- Commit message header and body should reflect changes made in commit
|
||||
|
||||
### Types
|
||||
|
||||
| Type | Description |
|
||||
| :--------------: | :------------------------------------------------ |
|
||||
| `feat / feature` | for new feature implementing commit |
|
||||
| `update` | for update commit |
|
||||
| `bug` | for bug fix commit |
|
||||
| `security` | for security issue fix commit |
|
||||
| `performance` | for performance issue fix commit |
|
||||
| `improvement` | for backwards-compatible enhancement commit |
|
||||
| `breaking` | for backwards-incompatible enhancement commit |
|
||||
| `deprecated` | for deprecated feature commit |
|
||||
| `i18n` | for i18n (internationalization) commit |
|
||||
| `a11y` | for a11y (accessibility) commit |
|
||||
| `refactor` | for refactoring commit |
|
||||
| `docs` | for documentation commit |
|
||||
| `example` | for example code commit |
|
||||
| `test` | for testing commit |
|
||||
| `deps` | for dependencies upgrading or downgrading commit |
|
||||
| `config` | for configuration commit |
|
||||
| `build` | for packaging or bundling commit |
|
||||
| `release` | for publishing commit |
|
||||
| `wip` | for work in progress commit |
|
||||
| `chore` | for other operations commit |
|
||||
|
||||
### Scopes
|
||||
|
||||
> [!NOTE]
|
||||
> Scopes are optional
|
||||
|
||||
| Scope | Description |
|
||||
| :----: | :------------------------------- |
|
||||
| `krn` | kernel |
|
||||
| `drv` | drivers |
|
||||
| `lib` | libraries |
|
||||
| `app` | userspace applications |
|
||||
| `skin` | skins |
|
||||
| `data` | images, configs, resources, etc. |
|
||||
|
||||
> [!NOTE]
|
||||
> If changes are made to a specific component, the name of the component
|
||||
> separated by `/` character needs to be specified. For example:
|
||||
> `app/shell`, `lib/libimg`
|
||||
|
||||
## Merge commits
|
||||
|
||||
> [!WARNING]
|
||||
> Merge commits are **prohibited** in the project
|
||||
|
||||
## Conclusion
|
||||
|
||||
We hope this small instructions will help you to get familiar with KolibriOS
|
||||
contribution rules and inspire you to participate in the work of this project.
|
@@ -1,16 +1,11 @@
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2, June 1991
|
||||
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
<https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
@@ -20,7 +15,7 @@ software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
@@ -61,12 +56,9 @@ patent must be licensed for everyone's free use or not licensed at all.
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
@@ -263,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
@@ -285,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Programs
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
@@ -299,7 +291,7 @@ convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -311,16 +303,15 @@ the "copyright" line and a pointer to where the full notice is found.
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
@@ -337,11 +328,11 @@ necessary. Here is a sample; alter the names:
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
<signature of Moe Ghoul>, 1 April 1989
|
||||
Moe Ghoul, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
28
README.md
Normal file
28
README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# KolibriOS
|
||||
|
||||
[](./COPYING.TXT)
|
||||
[](https://git.kolibrios.org/KolibriOS/kolibrios/actions/workflows/build.yaml)
|
||||
|
||||
KolibriOS is a hobby operating system for x86-compatible computers, which is currently being developed by a small teem of enthusiasts.
|
||||
|
||||
It's kernel is written entirely in [FASM](https://flatassembler.net/) assembly language, making it very compact and lean on system resources.
|
||||
|
||||
Based on [MenuetOS](https://www.menuetos.net/), it uses its own standards and is NOT fully POSIX or UNIX compliant
|
||||
|
||||
## Contributing
|
||||
|
||||
We would appreciate any participation in the project and always welcome new users and contributors.
|
||||
|
||||
Detailed instructions for the contribution process can be found in the [contributing guide](./CONTRIBUTING.md).
|
||||
|
||||
Common list of tasks, issues and enhancement proposals can be found on [this page](https://git.kolibrios.org/KolibriOS/kolibrios/issues).
|
||||
|
||||
## Special thanks
|
||||
|
||||
The KolibriOS team expresses special thanks to the author of the 32-bit **MenuetOS**, [Ville Turjanmaa](https://www.menuetos.net/contact.htm). We also want to note that all **MenuetOS** copyrights have been preserved.
|
||||
|
||||
## License
|
||||
|
||||
Contents of this repository are licensed under the terms of **GNU GPL 2.0** unless otherwise specified.
|
||||
|
||||
See [this](./COPYING.TXT) file for details.
|
@@ -38,7 +38,7 @@ img_files = {
|
||||
{"UNIMG", SRC_PROGS .. "/fs/unimg/unimg"},
|
||||
{"3D/HOUSE.3DS", "common/3d/house.3ds"},
|
||||
{"File Managers/ICONS.INI", "common/File Managers/icons.ini"},
|
||||
{"GAMES/FLPYBIRD", SRC_PROGS .. "/games/flappybird/Release/flappybird"},
|
||||
{"GAMES/FLPYBIRD", SRC_PROGS .. "/games/floppybird/Release/floppybird"},
|
||||
{"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"},
|
||||
-- {"LIB/ICONV.OBJ", "common/lib/iconv.obj"},
|
||||
{"LIB/KMENU.OBJ", "common/lib/kmenu.obj"},
|
||||
@@ -310,20 +310,20 @@ extra_files = {
|
||||
{"kolibrios/utils/tedit/info/INI.SYN", VAR_PROGS .. "/other/t_edit/info/ini_files.syn"},
|
||||
}
|
||||
if build_type == "ru_RU" then tup.append_table(extra_files, {
|
||||
{"Docs/cp866/config.txt", build_type .. "/docs/CONFIG.TXT"},
|
||||
{"Docs/cp866/gnu.txt", build_type .. "/docs/GNU.TXT"},
|
||||
{"Docs/cp866/history.txt", build_type .. "/docs/HISTORY.TXT"},
|
||||
{"Docs/cp866/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"},
|
||||
{"Docs/cp866/install.txt", build_type .. "/docs/INSTALL.TXT"},
|
||||
{"Docs/cp866/credits.txt", build_type .. "/docs/CREDITS.TXT"},
|
||||
{"Docs/cp866/sysfuncr.txt", VAR_PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"},
|
||||
{"Docs/cp1251/config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/CONFIG.TXT"},
|
||||
{"Docs/cp1251/gnu.txt", "$(VAR_DATA)/$(build_type)/docs/GNU.WIN.TXT", cp1251_from = build_type .. "/docs/GNU.TXT"},
|
||||
{"Docs/cp1251/history.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/HISTORY.TXT"},
|
||||
{"Docs/cp1251/hot_keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/HOT_KEYS.TXT"},
|
||||
{"Docs/cp1251/install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/INSTALL.TXT"},
|
||||
{"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/CREDITS.TXT"},
|
||||
{"Docs/cp1251/sysfuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"},
|
||||
{"Docs/cp866/Config.txt", build_type .. "/docs/Config.txt"},
|
||||
{"Docs/cp866/Copying.txt", build_type .. "/docs/Copying.txt"},
|
||||
{"Docs/cp866/History.txt", build_type .. "/docs/History.txt"},
|
||||
{"Docs/cp866/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"},
|
||||
{"Docs/cp866/Install.txt", build_type .. "/docs/Install.txt"},
|
||||
{"Docs/cp866/Credits.txt", build_type .. "/docs/Credits.txt"},
|
||||
{"Docs/cp866/SysFuncr.txt", VAR_PROGS .. "/system/docpack/trunk/SysFuncr.txt"},
|
||||
{"Docs/cp1251/Config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/Config.txt"},
|
||||
{"Docs/cp1251/Copying.txt", "$(VAR_DATA)/$(build_type)/docs/COPYING.WIN.TXT", cp1251_from = build_type .. "/docs/Copying.txt"},
|
||||
{"Docs/cp1251/History.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/History.txt"},
|
||||
{"Docs/cp1251/Hot_Keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/Hot_Keys.txt"},
|
||||
{"Docs/cp1251/Install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/Install.txt"},
|
||||
{"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/Credits.txt"},
|
||||
{"Docs/cp1251/SysFuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/trunk/SysFuncr.txt"},
|
||||
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_dos.txt"},
|
||||
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_win.txt"},
|
||||
{"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/install.txt"},
|
||||
@@ -341,12 +341,12 @@ if build_type == "ru_RU" then tup.append_table(extra_files, {
|
||||
{"kolibrios/res/guide/", build_type .. "/docs/guide/*"},
|
||||
{"kolibrios/develop/tcc/doc/", SRC_PROGS .. "/develop/ktcc/trunk/bin/doc/ru/*"},
|
||||
}) else tup.append_table(extra_files, {
|
||||
{"Docs/config.txt", build_type .. "/docs/CONFIG.TXT"},
|
||||
{"Docs/copying.txt", build_type .. "/docs/COPYING.TXT"},
|
||||
{"Docs/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"},
|
||||
{"Docs/install.txt", build_type .. "/docs/INSTALL.TXT"},
|
||||
{"Docs/credits.txt", build_type .. "/docs/CREDITS.TXT"},
|
||||
{"Docs/sysfuncs.txt", VAR_PROGS .. "/system/docpack/trunk/SYSFUNCS.TXT"},
|
||||
{"Docs/Config.txt", build_type .. "/docs/Config.txt"},
|
||||
{"Docs/Copying.txt", build_type .. "/docs/Copying.txt"},
|
||||
{"Docs/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"},
|
||||
{"Docs/Install.txt", build_type .. "/docs/Install.txt"},
|
||||
{"Docs/Credits.txt", build_type .. "/docs/Credits.txt"},
|
||||
{"Docs/SysFuncs.txt", VAR_PROGS .. "/system/docpack/trunk/SysFuncs.txt"},
|
||||
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme.txt"},
|
||||
{"HD_Load/mtldr/install.txt", SRC_PROGS .. "/hd_load/mtldr/install_eng.txt"},
|
||||
{"HD_Load/USB_Boot/readme.txt", SRC_PROGS .. "/hd_load/usb_boot/readme_eng.txt"},
|
||||
|
@@ -1,8 +0,0 @@
|
||||
KolibriOS 0.7.7.0+ nightly build, Live CD version.
|
||||
|
||||
This is a bootable CD-ROM. To run, reboot your computer and select the
|
||||
correct drive from the system settings or BIOS if required.
|
||||
|
||||
The minimum system requirements and installation instructions can be found
|
||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
||||
are given in 'config.txt'.
|
@@ -1,5 +0,0 @@
|
||||
KolibriOS 0.7.7.0+ nightly build.
|
||||
|
||||
The minimum system requirements and installation instructions can be found
|
||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
||||
are given in 'config.txt'.
|
@@ -1,16 +0,0 @@
|
||||
The following "hot" shortcut keys are used in the system:
|
||||
(Indexing on time of appearance in the system)
|
||||
1) Ctrl + Alt + Del start of the application CPU (the manager of processes), is a sole combination maintained on a level of a kernel, all rest "hot" key is realized at the expense of the application @TASKBAR.
|
||||
2) Ctrl + Shift - switching of keyboard layout.
|
||||
3) Win - start of the application MENU.
|
||||
4) Alt + Ctrl + F12 - start of the application END.
|
||||
5) Alt + F4 - terminate the active application.
|
||||
6) Alt + Tab - switch to the next (in the window stack) window
|
||||
7) Alt + Shift + Tab - switch to the previous (in the window stack) window
|
||||
8) Alt + Shift + NumLock - start of the application MOUSEMUL, which emulates mouse with numpad, when NumLock is on.
|
||||
9) Alt + 1...7 - fast switching to the selected keyboard layout (even if absent for Ctrl + Shift)
|
||||
10) Win + D - minimize/restore all windows (cleaning of desktop)
|
||||
11) Win + R - start of the application RUN
|
||||
12) Alt + Ctrl + ArrowLeft - to scroll back a list of the taskbar
|
||||
13) Alt + Ctrl + ArrowRight - to scroll forward a list of the taskbar
|
||||
14) Ctrl + PrintScreen - start of the application SCRSHOOT. Just do a screen shot and the user is offered to specify (with OpenDialog) where to save the BMP image.
|
@@ -1,109 +0,0 @@
|
||||
Minimal system requirements for Kolibri 0.7.x.0:
|
||||
* CPU: Pentium, AMD 5x86 or Cyrix 5x86 without MMX with frequency 100 MHz
|
||||
* RAM: 8 Mb
|
||||
* Videocard: supporting VGA (640*480*16 mode) or Vesa
|
||||
* Keyboard: AT
|
||||
* Mouse: COM or PS/2
|
||||
|
||||
The system can boot from any of following devices:
|
||||
- Floppy 3.5
|
||||
- IDE HDD LBA
|
||||
- CD/DVD
|
||||
- USB Flash
|
||||
|
||||
I. Install to floppy.
|
||||
1) Insert clean floppy without bad sectors to drive.
|
||||
2) Write to it kolibri.img image with any available methods:
|
||||
a) (if you have already loaded Kolibri by any method) run the program
|
||||
rdsave and select the variant corresponding to floppy
|
||||
b) (for DOS and Windows) run subjoined install.bat
|
||||
c) with program WinImage or its analogue (e.g. DiskExplorer)
|
||||
d) (for Linux) set "executable" attribute to subjoined script install.sh
|
||||
and run it
|
||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
||||
of floppy booting).
|
||||
|
||||
II. Install to hard disk.
|
||||
There exists several loaders from hard disk. All are oriented on DOS and
|
||||
Windows users. Also standard Linux-loader GRUB can be used. All methods work
|
||||
with file kolibri.img. If you already have old version of Kolibri installed,
|
||||
simply replace kolibri.img to new. If you have booted from LiveCD, which
|
||||
does not contain the file kolibri.img, Kolibri can create it independently,
|
||||
to do this, run the program rdsave, enter the file name for saving and select
|
||||
the corresponding variant. Of course, in this case Kolibri must be able to
|
||||
write to file system of selected partitions, currently this means that
|
||||
only FAT volumes are ok.
|
||||
1) Most of all features has the loader mtldr (author - Diamond) - works with
|
||||
DOS/Win95/98/NT/2k/XP/Vista, supports FAT32 and NTFS, has installator, can
|
||||
be installed to any folder on disk.
|
||||
To install, simply run file HD_load\mtldr_install.exe and select image file.
|
||||
Apropos, by this way you can install several images. There is also
|
||||
variant of install by hand - for those who want to know what installator
|
||||
does: directions in HD_load\mtldr
|
||||
2) There is also the loader MeOSLoad (author - Trans, expanded by Mario79) -
|
||||
works with DOS/Win95/98, supports FAT32, it is placed with the instruction
|
||||
to the folder HD_load\MeOSLoad.
|
||||
3) Moreover, there exist a program which allow load Kolibri directly from
|
||||
Windows 95/98/Me (of course, unloading it) - 9x2klbr (author - Diamond),
|
||||
supports FAT32 and NTFS.
|
||||
4) Usage of the loader GRUB. The way of using file 'memdisk' to load Kolibri
|
||||
has been described by derPENGUIN on english forum
|
||||
(http://meos32.7.forumer.com/viewtopic.php?t=110).
|
||||
The suggested method (described by Alver) is based on that description
|
||||
and was checked on grub-0.97-19mdv2007.0.
|
||||
1. Kolibri can write only on FAT filesystem, so if image file is placed not
|
||||
to FAT volume, the system can not save settings. Therefore if you have
|
||||
FAT32 partition, place 'kolibri.img' there.
|
||||
2. This method requires the file 'memdisk' from the package 'syslinux'
|
||||
(http://syslinux.zytor.com). You may install the whole package or only
|
||||
extract the mentioned file. Only the file 'memdisk' is needed. (After
|
||||
package install it will be in '/usr/lib/syslinux').
|
||||
3. Place the file 'memdisk' to the folder 'boot' or to the partition used
|
||||
for Kolibri.
|
||||
4. Add to the configuration file 'menu.lst' ('grub.conf') lines as follow:
|
||||
|
||||
title KolibriOS
|
||||
kernel (hd[Hard disk number],[partition number])[path]/memdisk
|
||||
initrd (hd[Hard disk number],[partition number])[path]/kolibri.img
|
||||
|
||||
(Remember that numeration of partitions in GRUB starts from 0.)
|
||||
Example:
|
||||
title KolibriOS
|
||||
kernel (hd0,0)/boot/memdisk
|
||||
initrd (hd0,3)/kolibri/kolibri.img
|
||||
|
||||
The initial variant was:
|
||||
|
||||
label KolibriOS
|
||||
root (hd[Hard disk number],[partition number])
|
||||
kernel [path]/memdisk
|
||||
initrd [path]/kolibri.img
|
||||
|
||||
Here 'memdisk' and 'kolibri.img' must be placed on the same partition.
|
||||
|
||||
Example:
|
||||
label KolibriOS
|
||||
root (hd0,0)
|
||||
kernel /boot/memdisk
|
||||
initrd /boot/kolibri.img
|
||||
This example is the variant described on english forum, with install to
|
||||
Linux boot partition (of course, without FAT partition).
|
||||
|
||||
5) The previous method could not work as is in GRUB2 (tested by Apocalypse_dn),
|
||||
the commands "linux16" and "initrd16" should be used instead of "kernel"
|
||||
and "initrd" (suggested by vkos).
|
||||
|
||||
III. Install to USB-Flash-drive.
|
||||
The special loader for FAT32-volumes has been written, it and its installer
|
||||
to flash drive can be found in the folder HD_load\USB_Boot.
|
||||
For not-FAT32 drives you may use article placed in the folder
|
||||
HD_load\USB_Boot_old.
|
||||
|
||||
IV. Install to CD and DVD.
|
||||
There exists special LiveCD-version of Kolibri, which contains
|
||||
in addition to standard things some "heavy" (in Kolibri standards) programs:
|
||||
the ported emulator DosBox, games "Fixed Rate Pig" and "sokoban".
|
||||
You can also create bootable CD or DVD on the base of kolibri.img, adding
|
||||
anything what you want, in the mode of floppy emulation.
|
||||
The appropriate actions are determined by used CD/DVD write program
|
||||
(focus on words such as "boot floppy emulation").
|
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
lang fix ca_ES
|
@@ -1,257 +0,0 @@
|
||||
[rbmenu]
|
||||
Processes=cpu
|
||||
Theme settings=skincfg
|
||||
Background=/sys/media/palitra
|
||||
System panel=syspanel
|
||||
[00]
|
||||
name=KFM2
|
||||
path=/SYS/FILE MANAGERS/KFM2
|
||||
param=
|
||||
ico=3
|
||||
x=0
|
||||
y=0
|
||||
[01]
|
||||
name=TINYPAD
|
||||
path=TINYPAD
|
||||
param=
|
||||
ico=9
|
||||
x=0
|
||||
y=68
|
||||
[02]
|
||||
name=EOLITE
|
||||
path=/SYS/FILE MANAGERS/EOLITE
|
||||
param=
|
||||
ico=0
|
||||
x=68
|
||||
y=0
|
||||
[03]
|
||||
name=SHELL
|
||||
path=SHELL
|
||||
param=
|
||||
ico=1
|
||||
x=-203
|
||||
y=136
|
||||
[04]
|
||||
name=KFAR
|
||||
path=/SYS/FILE MANAGERS/KFAR
|
||||
param=
|
||||
ico=16
|
||||
x=136
|
||||
y=0
|
||||
[05]
|
||||
name=RDSAVE
|
||||
path=RDSAVE
|
||||
param=
|
||||
ico=17
|
||||
x=0
|
||||
y=136
|
||||
[06]
|
||||
name=FB2READ
|
||||
path=FB2READ
|
||||
param=
|
||||
ico=44
|
||||
x=68
|
||||
y=136
|
||||
[07]
|
||||
name=ANIMAGE
|
||||
path=/SYS/MEDIA/ANIMAGE
|
||||
param=
|
||||
ico=15
|
||||
x=136
|
||||
y=68
|
||||
[08]
|
||||
name=KPACK
|
||||
path=KPACK
|
||||
param=
|
||||
ico=99
|
||||
x=-67
|
||||
y=0
|
||||
[09]
|
||||
name=SNAKE
|
||||
path=/SYS/GAMES/SNAKE
|
||||
param=
|
||||
ico=32
|
||||
x=-135
|
||||
y=-135
|
||||
[0A]
|
||||
name=MINE
|
||||
path=/SYS/GAMES/MINE
|
||||
param=
|
||||
ico=14
|
||||
x=-67
|
||||
y=-67
|
||||
[0B]
|
||||
name=SEAWAR
|
||||
path=/SYS/GAMES/SW
|
||||
param=
|
||||
ico=66
|
||||
x=-135
|
||||
y=-67
|
||||
[0C]
|
||||
name=TETRIS
|
||||
path=/SYS/GAMES/TETRIS
|
||||
param=
|
||||
ico=47
|
||||
x=-67
|
||||
y=-135
|
||||
[0D]
|
||||
name=PONG
|
||||
path=/SYS/GAMES/PONG3
|
||||
param=
|
||||
ico=12
|
||||
x=-203
|
||||
y=-67
|
||||
[0E]
|
||||
name=15
|
||||
path=/SYS/GAMES/15
|
||||
param=
|
||||
ico=34
|
||||
x=-67
|
||||
y=-203
|
||||
[0F]
|
||||
name=DOCPACK
|
||||
path=DOCPACK
|
||||
param=
|
||||
ico=8
|
||||
x=-67
|
||||
y=68
|
||||
[10]
|
||||
name=BOARD
|
||||
path=/SYS/DEVELOP/BOARD
|
||||
param=
|
||||
ico=19
|
||||
x=-135
|
||||
y=0
|
||||
[11]
|
||||
name=HEXEDIT
|
||||
path=/SYS/DEVELOP/HEED
|
||||
param=
|
||||
ico=22
|
||||
x=-135
|
||||
y=136
|
||||
[12]
|
||||
name=DEBUG
|
||||
path=/SYS/DEVELOP/MTDBG
|
||||
param=
|
||||
ico=39
|
||||
x=-203
|
||||
y=0
|
||||
[13]
|
||||
name=PIPES
|
||||
path=/SYS/GAMES/PIPES
|
||||
param=
|
||||
ico=26
|
||||
x=0
|
||||
y=-135
|
||||
[14]
|
||||
name=SUDOKU
|
||||
path=/SYS/GAMES/SUDOKU
|
||||
param=
|
||||
ico=25
|
||||
x=0
|
||||
y=-67
|
||||
[15]
|
||||
name=GOMOKU
|
||||
path=/SYS/GAMES/GOMOKU
|
||||
param=
|
||||
ico=24
|
||||
x=68
|
||||
y=-67
|
||||
[16]
|
||||
name=XONIX
|
||||
path=/SYS/GAMES/XONIX
|
||||
param=
|
||||
ico=21
|
||||
x=68
|
||||
y=-135
|
||||
[17]
|
||||
name=FLAPPY-BIRD
|
||||
path=/SYS/GAMES/FLPYBIRD
|
||||
param=
|
||||
ico=49
|
||||
x=-135
|
||||
y=-203
|
||||
[18]
|
||||
name=KOSILKA
|
||||
path=/SYS/GAMES/KOSILKA
|
||||
param=
|
||||
ico=23
|
||||
x=136
|
||||
y=-67
|
||||
[19]
|
||||
name=FLOOD-IT
|
||||
path=/SYS/GAMES/FLOOD-IT
|
||||
param=
|
||||
ico=59
|
||||
x=136
|
||||
y=-135
|
||||
[1A]
|
||||
name=FASM
|
||||
path=/SYS/DEVELOP/FASM
|
||||
param=
|
||||
ico=10
|
||||
x=-135
|
||||
y=68
|
||||
[1B]
|
||||
name=CLICKS
|
||||
path=/SYS/GAMES/CLICKS
|
||||
param=
|
||||
ico=18
|
||||
x=-203
|
||||
y=-135
|
||||
[1C]
|
||||
name=WEBVIEW
|
||||
path=/sys/NETWORK/WebView
|
||||
param=
|
||||
ico=31
|
||||
x=136
|
||||
y=136
|
||||
[1D]
|
||||
name=SYSPANEL
|
||||
path=SYSPANEL
|
||||
param=
|
||||
ico=6
|
||||
x=-67
|
||||
y=136
|
||||
[1E]
|
||||
name=APP+
|
||||
path=app_plus
|
||||
param=
|
||||
ico=27
|
||||
x=204
|
||||
y=68
|
||||
[1F]
|
||||
name=DIFF
|
||||
path=/sys/DEVELOP/DIFF
|
||||
param=
|
||||
ico=84
|
||||
x=-203
|
||||
y=68
|
||||
[20]
|
||||
name=CEDIT
|
||||
path=/sys/develop/cedit
|
||||
param=
|
||||
ico=58
|
||||
x=68
|
||||
y=68
|
||||
[21]
|
||||
name=CALC
|
||||
path=CALC
|
||||
param=
|
||||
ico=4
|
||||
x=204
|
||||
y=0
|
||||
[22]
|
||||
name=NETSURF
|
||||
path=/sys/NETWORK/NSINST
|
||||
param=
|
||||
ico=125
|
||||
x=204
|
||||
y=136
|
||||
[23]
|
||||
name=DINO
|
||||
path=/sys/games/dino
|
||||
param=
|
||||
ico=129
|
||||
x=-203
|
||||
y=-203
|
@@ -1,9 +0,0 @@
|
||||
KolibriOS
|
||||
version 0770
|
||||
svnr 4483
|
||||
language ca_ES
|
||||
|
||||
;just comment
|
||||
; Hi, curious person! :-)
|
||||
; Thanks
|
||||
; 08/01/2016 Creating lang català
|
@@ -1,30 +0,0 @@
|
||||
[start]
|
||||
startlng = 1
|
||||
|
||||
[comkey]
|
||||
ccomkey1 = 1
|
||||
ccomkey2 = 4
|
||||
ccomkey3 = 0
|
||||
|
||||
[altkey]
|
||||
altkey1 = 1
|
||||
altkey2 = 4
|
||||
altkey3 = 7
|
||||
altkey4 = 3
|
||||
altkey5 = 5
|
||||
altkey6 = 6
|
||||
altkey7 = 2
|
||||
altkey8 = 8
|
||||
altkey9 = 9
|
||||
altkey0 = 0
|
||||
|
||||
[langs]
|
||||
1 = En
|
||||
2 = Fi
|
||||
3 = Ge
|
||||
4 = Ru
|
||||
5 = Fr
|
||||
6 = Et
|
||||
7 = Ua
|
||||
8 = It
|
||||
9 = Be
|
@@ -1,128 +0,0 @@
|
||||
#0 **** Principal ****
|
||||
58 Welcome |welcome.htm
|
||||
00 2D Demos > |@1
|
||||
00 3D Demos > |@2
|
||||
00 Gr<47>fics > |@3
|
||||
00 Multim<69>dia > |@4
|
||||
00 Emuladors > |@15
|
||||
00 Desenvolupament > |@5
|
||||
00 Sistema > |@7
|
||||
00 Proc<6F>s de dades > |@9
|
||||
00 Xarxa > |@10
|
||||
00 Altres > |@13
|
||||
23 Centre de jocs |allgames
|
||||
60 System panel |syspanel
|
||||
18 Ajuda |docpack
|
||||
53 Executar aplicaci<63> |run
|
||||
04 Aturar |end
|
||||
#1 **** DEMOS ****
|
||||
16 Cercle |demos/circle
|
||||
16 Fractal |demos/tinyfrac
|
||||
16 Color demo |demos/colorref
|
||||
16 Ulls |demos/eyes
|
||||
16 Tub |demos/tube
|
||||
16 Plasma |demos/plasma
|
||||
16 Spiral |demos/spiral
|
||||
16 Retrocedir |demos/movback
|
||||
16 Vida |demos/life2
|
||||
16 TranTest |demos/trantest
|
||||
16 WEB |demos/web
|
||||
16 FireWork |demos/firework
|
||||
16 UnvWater |demos/unvwater
|
||||
#2 **** 3D ****
|
||||
15 Protector de pantalla |3d/crownscr
|
||||
15 3D-laberint |3d/free3d04
|
||||
15 Cor |3d/3dsheart
|
||||
15 VeureDS |3d/view3ds
|
||||
15 CubeLine |3d/cubeline
|
||||
15 Engranatges |3d/gears
|
||||
15 zona ondulada-3D |3d/3dwav
|
||||
#3 **** GR<47>FICS ****
|
||||
06 Visor d'imatges KIV |media/kiv
|
||||
06 Visor d'imatges zSea |/kolibrios/media/zsea/zsea
|
||||
38 Animage |media/animage
|
||||
38 IconEdit |media/iconedit
|
||||
40 Efectes d'imatges |media/imgf/imgf
|
||||
52 Palitra |media/palitra
|
||||
39 Pipet |develop/pipet
|
||||
#4 **** MULTIM<49>DIA ****
|
||||
53 Pixie - audio |media/pixie
|
||||
07 MidAMP |media/midamp
|
||||
22 Toy piano |media/piano
|
||||
52 Generador de fons |media/palitra
|
||||
11 Fplay - video * |/kolibrios/media/fplay
|
||||
#5 **** DESARROLLO ****
|
||||
00 Exemples > |@6
|
||||
09 Arxivador KPack |kpack
|
||||
54 Assemblador Flat |develop/fasm
|
||||
13 Panell de depuraci<63> |develop/board
|
||||
16 Depurador |develop/mtdbg
|
||||
34 Hex2Dec2Bin |develop/h2d2b
|
||||
59 Taula de car<61>cters |develop/ASCIIVju
|
||||
59 Codis ASCII |develop/keyascii
|
||||
59 Codis SCAN |develop/scancode
|
||||
#6 **** EXEMPLES ****
|
||||
16 Threads |develop/thread
|
||||
16 Selector de color |demos/cslide
|
||||
16 Exemple de consola 1 |develop/testcon2
|
||||
16 Exemple de consola 2 |develop/test_gets
|
||||
16 Exemple Missatge caixa|demos/use_mb
|
||||
#7 **** SISTEMA ****
|
||||
00 Arxius > |@8
|
||||
00 Accesibilitat > |@14
|
||||
13 Panell depuraci<63> |develop/board
|
||||
56 Clipboard viewer |develop/clipview
|
||||
24 Terminal |terminal
|
||||
24 SHELL |shell
|
||||
51 Virtual disks |tmpdisk
|
||||
05 Guardar imatge RD |rdsave
|
||||
#8 **** ARCHIUS ****
|
||||
24 KFAR |File Managers/kfar
|
||||
05 KFM2 |File Managers/kfm2
|
||||
50 Eolite |File Managers/Eolite
|
||||
20 fNav * |/kolibrios/utils/fNav/fNav
|
||||
#9 **** PROC<4F>S DE DADES ****
|
||||
16 Calculadora |calc
|
||||
03 Tinypad |tinypad
|
||||
28 TextEdit |develop/cedit
|
||||
21 Procesador de tables |table
|
||||
47 Generador de gr<67>fique |graph
|
||||
59 Hex-Editor |develop/heed
|
||||
09 Unarchiver Unz |unz
|
||||
#10 **** XARXA ****
|
||||
00 Servidors > |@11
|
||||
00 Clients > |@12
|
||||
25 Dispositius de xarxa |network/netcfg
|
||||
25 Estat de la xarxa |network/netstat
|
||||
#11 **** SERVIDORS ****
|
||||
16 Dimoni FTP |network/ftpd
|
||||
#12 **** CLIENTS ****
|
||||
13 Client IRC |network/ircc
|
||||
16 Client FTP |network/ftpc
|
||||
50 Cliente TFTP |network/tftpc
|
||||
24 Ping |network/ping
|
||||
24 Client Telnet |network/telnet
|
||||
24 Client Synergy |network/synergyc
|
||||
24 Resoluci<63><69> de noms |network/nslookup
|
||||
61 VNC Viewer |network/vncc
|
||||
33 Client de baixades |network/downloader
|
||||
12 Navegador (mode text) |network/webview
|
||||
#13 **** ALTRES ****
|
||||
16 Rellotge anal<61>gic |aclock
|
||||
16 Rellotge binari |demos/bcdclk
|
||||
16 Contador |timer
|
||||
45 Capturador de pantalla|scrshoot
|
||||
45 Easyshot |easyshot
|
||||
16 Calendari |calendar
|
||||
03 Lector de RTF |rtfread
|
||||
#14 **** ACCESIBILITAT ****
|
||||
49 Ampliaci<63> de pantalla |magnify
|
||||
59 Teclat en pantalla |zkey
|
||||
#15 **** EMULADORS ****
|
||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
||||
16 e80 (ZX Spectrum) * |/kolibrios/emul/e80/e80
|
||||
23 Gameboy Color * |/kolibrios/emul/gameboy
|
||||
23 FCE Ultra (NES) * |/kolibrios/emul/fceu/fceu
|
||||
23 ZSNES * |/kolibrios/emul/zsnes/zsnes
|
||||
16 ScummVM * |/kolibrios/emul/scummvm
|
||||
##
|
@@ -1 +0,0 @@
|
||||
CONFIG_LANG=ca
|
@@ -237,8 +237,6 @@ pcx=70
|
||||
png=70
|
||||
pdf=73
|
||||
mid=74
|
||||
mid=74
|
||||
midi=74
|
||||
midi=74
|
||||
3ds=78
|
||||
stl=78
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
@@ -94,11 +94,11 @@ lua=$CodeEdit
|
||||
ob07=$CodeEdit
|
||||
json=$CodeEdit
|
||||
|
||||
asm=$TinyPad
|
||||
inc=$TinyPad
|
||||
mac=$TinyPad
|
||||
inf=$TinyPad
|
||||
conf=$TinyPad
|
||||
asm=$CodeEdit
|
||||
inc=$CodeEdit
|
||||
mac=$CodeEdit
|
||||
inf=$CodeEdit
|
||||
conf=$CodeEdit
|
||||
|
||||
ini=$TextEditor
|
||||
|
||||
|
@@ -1,128 +0,0 @@
|
||||
|
||||
KolibriOS team
|
||||
--------------
|
||||
|
||||
We thank everyone who helped to create and develop KolibriOS,
|
||||
many of whom are listed below ~
|
||||
|
||||
System Programming (loaders, kernel, etc.) :
|
||||
- Alver
|
||||
- art_zh
|
||||
- Asper
|
||||
- Boppan
|
||||
- CleverMouse
|
||||
- Coldy
|
||||
- Doczom
|
||||
- dunkaist
|
||||
- Galkov
|
||||
- Evgeny Grechnikov 'Diamond'
|
||||
- Andrey Halyavin 'halyavin'
|
||||
- hidnplayr
|
||||
- Andrey Ignatiev 'andrew_programmer'
|
||||
- Johnny_B
|
||||
- kasTIgar
|
||||
- Sergey Kuzmin 'Wildwest'
|
||||
- Mihail Lisovin 'Mihasik'
|
||||
- Maxis
|
||||
- Iliya Mihailov 'Ghost'
|
||||
- Nable
|
||||
- NoName
|
||||
- Ivan Poddubny
|
||||
- rgimad
|
||||
- Rus
|
||||
- Mihail Semenyako 'mike.dld'
|
||||
- Sergey Semyonov 'Serge'
|
||||
- shurf
|
||||
- SPraid
|
||||
- Alexey Teplov '<Lrz>'
|
||||
- Trans
|
||||
- tsdima
|
||||
- turbanoff
|
||||
- VaStaNi
|
||||
- Marat Zakiyanov 'Mario79'
|
||||
|
||||
Application Programming (new creations, porting or revisions) :
|
||||
- Alver
|
||||
- art_zh
|
||||
- Artemonische
|
||||
- Asper
|
||||
- barsuk
|
||||
- Vitaly Bendik 'mistifi(ator'
|
||||
- Mario Birkner 'cYfleXX'
|
||||
- Aleksandr Bogomaz 'Albom'
|
||||
- chaykin
|
||||
- CleverMouse
|
||||
- DedOk
|
||||
- Dron2004
|
||||
- dunkaist
|
||||
- ealex
|
||||
- Pavlushin Evgeny 'Exis'
|
||||
- Maxim Evtihov 'Maxxxx32'
|
||||
- Gluk
|
||||
- Evgeny Grechnikov 'Diamond'
|
||||
- Maciej Guba 'macgub'
|
||||
- Andrey Halyavin 'halyavin'
|
||||
- Hex
|
||||
- iadn
|
||||
- Andrey Ignatiev 'andrew_programmer'
|
||||
- IgorA
|
||||
- Andrey Ivushkin 'Willow'
|
||||
- Johnny_B
|
||||
- kaitz
|
||||
- Vasiliy Kosenko 'vkos'
|
||||
- Sergey Kuzmin 'Wildwest'
|
||||
- Kirill Lipatov 'Leency'
|
||||
- Mihail Lisovin 'Mihasik'
|
||||
- Alexander Meshcheryakov 'Self-Perfection'
|
||||
- Iliya Mihailov 'Ghost'
|
||||
- Navanax
|
||||
- nilgui
|
||||
- Olaf
|
||||
- hidden player 'hidnplayr'
|
||||
- Ivan Poddubny
|
||||
- Pterox
|
||||
- Rus
|
||||
- Pavel Rymovski 'Heavyiron'
|
||||
- Mihail Semenyako 'mike.dld'
|
||||
- Sergey Semyonov 'Serge'
|
||||
- SPraid
|
||||
- staper
|
||||
- Alexey Teplov '<Lrz>'
|
||||
- trolly
|
||||
- tsdima
|
||||
- vectoroc
|
||||
- YELLOW
|
||||
- Vladimir Zaitsev 'Rabid Rabbit'
|
||||
- Marat Zakiyanov 'Mario79'
|
||||
|
||||
Documentation and Translation :
|
||||
- Andrew Dent 'ace_dent'
|
||||
- Evgeny Grechnikov 'Diamond'
|
||||
- Hex
|
||||
|
||||
Infrastructure (forum, site and SVN hosting) :
|
||||
- CodeWorld
|
||||
- mike.dld
|
||||
|
||||
Design (logo, background, icons) :
|
||||
- goglus
|
||||
- Kirill Lipatov 'Leency'
|
||||
- Alexey Teplov '<Lrz>'
|
||||
|
||||
Testing and Support :
|
||||
- AqwAS
|
||||
- Ataualpa
|
||||
- Vitaly Bendik 'mistifi(ator'
|
||||
- camper
|
||||
- ChE
|
||||
- Dmitry the Sorcerer
|
||||
- Galkov
|
||||
- Maxis
|
||||
- Mike
|
||||
- Pavel Rymovski 'Heavyiron'
|
||||
- vectoroc
|
||||
- Veliant
|
||||
|
||||
and many others...
|
||||
|
||||
KolibriOS team
|
@@ -30,12 +30,13 @@ Installation: BIOS mode
|
||||
* (if you have already loaded KolibriOS by any method) run the program
|
||||
`rdsave` and select the variant corresponding to floppy;
|
||||
|
||||
* (for DOS and Windows) run subjoined install.bat;
|
||||
* for DOS use DskImage;
|
||||
|
||||
* with program WinImage or its analogue (e.g. DiskExplorer);
|
||||
* for Windows use WinImage, RawWrite for Windows or its analogue;
|
||||
|
||||
* (for Linux) set "executable" attribute to subjoined script install.sh
|
||||
and run it.
|
||||
* if you have Linux then try smth like
|
||||
`dd if=/pathto/kolibri.img of=/dev/fd0 bs=512 count=2880`
|
||||
Wait. And make sure to umount the drive before ejecting the disk.
|
||||
|
||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option of
|
||||
floppy booting).
|
@@ -165,7 +165,7 @@ ico=21
|
||||
x=68
|
||||
y=-135
|
||||
[17]
|
||||
name=FLAPPY-BIRD
|
||||
name=FLOPPY-BIRD
|
||||
path=/SYS/GAMES/FLPYBIRD
|
||||
param=
|
||||
ico=49
|
||||
|
@@ -49,7 +49,7 @@
|
||||
11 Fplay Video * |/kolibrios/media/fplay
|
||||
#5 **** DEV
|
||||
54 Flat Assembler |develop/fasm
|
||||
27 Example.asm |example.asm
|
||||
27 Example.asm |/sys/example.asm
|
||||
49 Debugger mtdbg |develop/mtdbg
|
||||
49 Debugger koldbg * |/kolibrios/develop/koldbg
|
||||
13 Debug Board |develop/board
|
||||
|
@@ -1,98 +0,0 @@
|
||||
KolibriOS allows some configures for user requirements. This file describes
|
||||
such settings.
|
||||
For this it is required to change files on ramdisk. If you boot from floppy,
|
||||
there is no problem - change files on floppy. If you use floppy image
|
||||
kolibri.img - either use program which can work with images (for example,
|
||||
WinImage or DiskExplorer) or make changes from Kolibri and do not forget to
|
||||
save ramdisk (with the application rdsave).
|
||||
|
||||
1. Desktop background.
|
||||
a) Replace in the file autorun.dat (it is text file) the parameter for
|
||||
the program kiv ("\S__background.jpg") the name of file to the full
|
||||
Kolibri-path to JPEG-, BMP-, GIF- or PNG-image which you like. It will be
|
||||
new background. background.jpg now can be deleted.
|
||||
b) Replace in the file autorun.dat "/SYS/KIV \S__background.jpg" to
|
||||
"/sys/PIC4" (spaces are ignored by the loader program). You can delete
|
||||
BACKGROUND.JPG. New background will be nice texture.
|
||||
For programmers: you can change texture and color, for this in file
|
||||
pic4.asm from distributive sources change:
|
||||
* to change texture: value of variable usearray (string 585)
|
||||
from ptarray to any of ptarray2,ptarray3, ..., ptarray9.
|
||||
* to change color: in procedure check_parameters find string with
|
||||
the appropriate comment (string 127) and add to 0x40000 1 or 2.
|
||||
After changes recompile pic4, by request pack with kpack (in
|
||||
distributive is so), inject to ramdisk.
|
||||
c) Two previous points sets background for a long time (until next
|
||||
reinstall). It is possible also after Kolibri boot to set background
|
||||
until next reboot in programs kiv, iconedit, pic4, tinyfrac.
|
||||
|
||||
2. Configure system menu.
|
||||
Data for system menu are placed in text file menu.dat. It can be edited
|
||||
in any editor keeping format. If you use Kolibri TINYPAD, you
|
||||
must disable option "optimal fill on saving".
|
||||
|
||||
3. Configure autorun.
|
||||
The list of programs, loading when system boots, is read out from
|
||||
text file autorun.dat. It can be changed in any editor keeping format.
|
||||
For example, you can add as first item start of application startmus
|
||||
(delay 1, without arguments) to hear distinctive melody each time at
|
||||
booting.
|
||||
For programmers: you can change melody, for this edit file startmus.asm
|
||||
from distributive sources: there you can choose melody from three existing
|
||||
or add your own - format of melody is explained in documentation on
|
||||
subfunction 55 of function 55.
|
||||
|
||||
4. Icons list.
|
||||
The list of desktop icons is kept in text file icons.dat, but to
|
||||
change the list it is recommended to use icon manager icon (which can
|
||||
be run from desktop context menu). Images for icons are kept in file
|
||||
iconstrp.gif, which must be edited by external graphics editor.
|
||||
|
||||
5. Skin.
|
||||
The skin can be viewed and changed dynamically with the application
|
||||
desktop; after you choose most likely for you skin, you can make it
|
||||
permanent by replace file default.skn, from which system loads skin at
|
||||
booting. Standard skin is included to ramdisk, some alternative skins can
|
||||
be found in distributive in the folder Skins. You can also create your own
|
||||
skin, for detailed comments look at distributive sources.
|
||||
|
||||
6. Sound.
|
||||
Driver sound.sys, which is located on ramdisk by default, is intended for
|
||||
south bridges Intel ICH, ICH0, ICH2, ICH3, ICH4, ICH5, ICH6, ICH7 and
|
||||
NVidia NForce, NForce 2, NForce 3, NForce 4. If you have SB16-compatible
|
||||
sound card, remove sound.sys and rename sb16.sys from the folder 'drivers'
|
||||
to sound.sys. If you have controller sis7012, rename sis.sys from root
|
||||
folder in distributive to sound.sys and copy it to floppy or image to
|
||||
the folder 'drivers' (replacing old). The driver fm801.sys can be useful
|
||||
for ForceMedia FM801 controller, the driver vt8235.sys - for VIA chipsets,
|
||||
the driver emu10k1x.sys - for EMU10K1X audioprocessor, all are intended to
|
||||
similar with previous case use: copy it to the folder 'drivers' as
|
||||
'sound.sys', replacing the old file.
|
||||
|
||||
7. Bus Disconnect.
|
||||
The application KBD (Kolibri Bus Disconnect) allows to disconnect processor
|
||||
bus in order to decrease its temperature, a side effect is noise in AC97
|
||||
codecs. The application can be loaded automatically at system boot, to do
|
||||
this add to autorun (file autorun.dat, see 3) a line of the form
|
||||
"/SYS/KBD BOOT 20 # Enable Bus Disconnect for AMD K7 processors".
|
||||
|
||||
8. Network settings.
|
||||
Initial network configuration is read at boot from the ini file
|
||||
/sys/network/zeroconf.ini. You can set automatic detection with DHCP
|
||||
("type=zeroconf") or fixed IP addresses ("type=static").
|
||||
|
||||
9. Configuration of videomode for ATI videocards.
|
||||
The driver for ATI can set required screen resolution with refresh rate
|
||||
at system startup, if they are supported. The list of supported modes
|
||||
can be obtained with the utility VMODE, it allows also manual mode setting.
|
||||
To set the mode at startup one must pass to the loader ATIKMS, described
|
||||
in AUTORUN.DAT, the argument -m<width>x<height>x<refresh>, e.g.
|
||||
|
||||
/SYS/DRIVERS/ATIKMS -m1024x768x60 -1
|
||||
|
||||
Pay attention that the format of autorun.dat does not allow spaces in
|
||||
command line, so there must be no other arguments.
|
||||
Also one can disable ability to change videomodes and all linked actions
|
||||
at startup by passing the argument -n. The driver will still support
|
||||
hardware cursor. To fully disable the driver, one can simply delete
|
||||
the line with ATIKMS from autorun.dat.
|
@@ -1,48 +0,0 @@
|
||||
PHARAOH TOMB
|
||||
|
||||
The purpose of the game is to open passage by moving hieroglyphs on entrance
|
||||
in the next room of the pharaoh tomb (8X8). You can exchange two hieroglyphs
|
||||
located near each other on vertical or horizontal if after such transposition
|
||||
a combination of three or more identical pictures abreast is generated. Such
|
||||
lines are disappeared immediately, and free place is filled by hieroglyphs
|
||||
which "falled" from top. Missing hieroglyphs are generated randomly. For
|
||||
disappearing hieroglyphs points are added. For combination of hieroglyphs
|
||||
number of points is calculated by formula L+(L+1)^(N-3), but no more than
|
||||
20*L*N, where N is number of hieroglyphs in combination, and L is level number.
|
||||
To pass to the next level it is required to remove certain number of
|
||||
hieroglyphs (different on each level). From below of panel with hieroglyphs is
|
||||
located field which indicates how many is passed and how many is remained.
|
||||
|
||||
1st level - 500
|
||||
2nd level - 450
|
||||
3rd level - 400
|
||||
4th level - 350
|
||||
5th level - 300
|
||||
6th level and further - 50*(L+1)
|
||||
|
||||
On the first level combinations are composed from 6 states of hieroglyphs.
|
||||
With each new level one new hieroglyph is involved, but no more than 10
|
||||
(i.e. starting from 5th level and further 10 different hieroglyphs are
|
||||
involved, not counting special ones).
|
||||
|
||||
Starting from 2nd level for each combination from 4 and more hieroglyphs,
|
||||
and also for passing each fourth of level the player gets "free" hieroglyph -
|
||||
it is usual hieroglyph (generated randomly), which keeps "in pocket" of player
|
||||
and can be necessarily inserted by player to any place and replace thus
|
||||
located there hieroglyph.
|
||||
|
||||
Starting from 3rd level for each combination from 5 and more hieroglyphs,
|
||||
and also for passing each third of level the player gets "universal key",
|
||||
which matches to any combination of hieroglyphs and to several different
|
||||
combination simultaneously.
|
||||
|
||||
Starting from 4th level for each combination from 6 and more hieroglyphs,
|
||||
and also for passing a half of level the player gets "space crooker",
|
||||
which allows, when is used, to make 3 moves (not obligatory successive) at
|
||||
diagonal.
|
||||
|
||||
The player can not have simultaneously more than 1 extra hieroglyph of each
|
||||
type (1 usual, 1 joker and 1 crooker).
|
||||
|
||||
The game is ended, if the player can not make any combination with existing
|
||||
hieroglyphs.
|
@@ -1,25 +0,0 @@
|
||||
Ini-files are text files of special contents:
|
||||
|
||||
[name of first section]
|
||||
Key1=value1
|
||||
Key2=value2
|
||||
;comment
|
||||
[name of second section]
|
||||
Key3=value3
|
||||
|
||||
All lines beginning with ';' are considered as comments and ignored.
|
||||
|
||||
Keyboard shortcuts are described as follows:
|
||||
any number of modificators Ctrl/Alt/Shift/LCtrl/LAlt/LShift/RCtrl/RAlt/RShift,
|
||||
followed by latin letter, digit or key name. The following keys have a name:
|
||||
F1 - F12
|
||||
Home; End; PgUp; PgDn; Ins, equivalently, Insert; Del, equivalently, Delete;
|
||||
Tab; Plus; Esc; Enter; Backspace; Space;
|
||||
Left (left arrow); Right (right arrow); Up (up arrow); Down (down arrow).
|
||||
The string for shortcut is case-insensitive. Parts of the string
|
||||
can be written without delimiters or with '+' between parts. Examples:
|
||||
Ctrl+Alt+Backspace
|
||||
RCtrl+RShift
|
||||
ShiftA
|
||||
f10
|
||||
shiftalt5
|
@@ -1,92 +0,0 @@
|
||||
Minimal system requirements for KolibriOS:
|
||||
* CPU: Pentium, AMD 5x86 or Cyrix 5x86 without MMX with frequency 100 MHz
|
||||
* RAM: 8 Mb
|
||||
* Videocard: supporting VGA (640*480*16 mode) or Vesa
|
||||
* Keyboard: AT
|
||||
* Mouse: COM, PS/2 or USB
|
||||
|
||||
The system can boot from any of following devices:
|
||||
- Floppy 3.5
|
||||
- IDE HDD LBA
|
||||
- CD/DVD
|
||||
- USB Flash
|
||||
|
||||
I. Install to floppy.
|
||||
1) Insert clean floppy without bad sectors to drive.
|
||||
2) Write to it kolibri.img image with any available methods:
|
||||
a) (if you have already loaded Kolibri by any method) run the program
|
||||
rdsave and select the variant corresponding to floppy
|
||||
b) (for DOS and Windows) run subjoined install.bat
|
||||
c) with program WinImage or its analogue (e.g. DiskExplorer)
|
||||
d) (for Linux) set "executable" attribute to subjoined script install.sh
|
||||
and run it
|
||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
||||
of floppy booting).
|
||||
|
||||
II. Install to hard disk.
|
||||
There exists several loaders from hard disk. All are oriented on DOS and
|
||||
Windows users. Also standard Linux-loader GRUB can be used. All methods work
|
||||
with file kolibri.img. If you already have old version of Kolibri installed,
|
||||
simply replace kolibri.img to new. If you have booted from LiveCD, which
|
||||
does not contain the file kolibri.img, Kolibri can create it independently,
|
||||
to do this, run the program rdsave, enter the file name for saving and select
|
||||
the corresponding variant. Of course, in this case Kolibri must be able to
|
||||
write to file system of selected partitions, currently this means that
|
||||
only FAT volumes are ok.
|
||||
1) Most of all features has the loader mtldr (author - Diamond) - works with
|
||||
DOS/Win95/98/NT/2k/XP/Vista, supports FAT32 and NTFS, has installator, can
|
||||
be installed to any folder on disk.
|
||||
To install, simply run file HD_load\mtldr_install.exe and select image file.
|
||||
Apropos, by this way you can install several images. There is also
|
||||
variant of install by hand - for those who want to know what installator
|
||||
does: directions in HD_load\mtldr
|
||||
2) There is also the loader MeOSLoad (author - Trans, expanded by Mario79) -
|
||||
works with DOS/Win95/98, supports FAT32, it is placed with the instruction
|
||||
to the folder HD_load\MeOSLoad.
|
||||
3) Moreover, there exist a program which allow load Kolibri directly from
|
||||
Windows 95/98/Me (of course, unloading it) - 9x2klbr (author - Diamond),
|
||||
supports FAT32 and NTFS.
|
||||
4) Usage of the loader GRUB. Place the file 'memdisk' to the folder 'boot'
|
||||
or to the partition used for Kolibri.
|
||||
a) For GRUB2, in the folder /etc/grub.d add to one of files next lines:
|
||||
|
||||
menuentry 'KolibriOS' {
|
||||
linux16 (hd[Hard disk number],[partition number])[path]/memdisk
|
||||
initrd16 (hd[Hard disk number],[partition number])[path]/kolibri.img
|
||||
}
|
||||
|
||||
example:
|
||||
|
||||
menuentry 'KolibriOS' {
|
||||
linux16 (hd0,msdos1)/boot/memdisk
|
||||
initrd16 (hd0,msdos1)/boot/kolibri.img
|
||||
}
|
||||
|
||||
then, run in terminal 'sudo update-grub'.
|
||||
|
||||
b) For old GRUB, add to the configuration file 'menu.lst' next lines:
|
||||
|
||||
title KolibriOS
|
||||
kernel (hd[Hard disk number],[partition number])[path]/memdisk
|
||||
initrd (hd[Hard disk number],[partition number])[path]/kolibri.img
|
||||
|
||||
Remember that numeration in GRUB starts from 0. Example:
|
||||
|
||||
title KolibriOS
|
||||
kernel (hd0,0)/boot/memdisk
|
||||
initrd (hd0,3)/kolibri/kolibri.img
|
||||
|
||||
III. Install to USB-Flash-drive.
|
||||
The special loader for FAT32-volumes has been written, it and its installer
|
||||
to flash drive can be found in the folder HD_load\USB_Boot.
|
||||
For not-FAT32 drives you may use article placed in the folder
|
||||
HD_load\USB_Boot_old.
|
||||
|
||||
IV. Install to CD and DVD.
|
||||
There exists special LiveCD-version of Kolibri, which contains
|
||||
in addition to standard things some "heavy" (in Kolibri standards) programs:
|
||||
the ported emulator DosBox, games "Fixed Rate Pig" and "sokoban".
|
||||
You can also create bootable CD or DVD on the base of kolibri.img, adding
|
||||
anything what you want, in the mode of floppy emulation.
|
||||
The appropriate actions are determined by used CD/DVD write program
|
||||
(focus on words such as "boot floppy emulation").
|
@@ -16,10 +16,11 @@ I. Install to floppy.
|
||||
2) Write to it kolibri.img image with any available methods:
|
||||
a) (if you have already loaded Kolibri by any method) run the program
|
||||
rdsave and select the variant corresponding to floppy
|
||||
b) (for DOS and Windows) run subjoined install.bat
|
||||
c) with program WinImage or its analogue (e.g. DiskExplorer)
|
||||
d) (for Linux) set "executable" attribute to subjoined script install.sh
|
||||
and run it
|
||||
b) for DOS use DskImage;
|
||||
c) for Windows use WinImage, RawWrite for Windows or its analogue;
|
||||
d) if you have Linux then try smth like
|
||||
`dd if=/pathto/kolibri.img of=/dev/fd0 bs=512 count=2880`
|
||||
Wait. And make sure to umount the drive before ejecting the disk.
|
||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
||||
of floppy booting).
|
||||
|
@@ -1,94 +0,0 @@
|
||||
Control keys in KFar.
|
||||
For panels:
|
||||
arrows, Home, End - move cursor on active panel
|
||||
Tab - change active panel
|
||||
Enter - enter to folder or run program under cursor
|
||||
F3 - view file under cursor
|
||||
F5 - copy selected items or item under cursor to another panel
|
||||
Shift+F5 - copy selected items or item under cursor to the same panel
|
||||
(of course, you must specify another file name)
|
||||
F7 - create folder
|
||||
F8 - delete selected elements or element under cursor
|
||||
F10 - exit
|
||||
Alt+F1/Alt+F2 - change drive on left/right panel
|
||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
||||
Ctrl+F3 - sort file/folders on active panel by name
|
||||
Ctrl+F4 - sort by extension
|
||||
Ctrl+F5 - sort by date/time of last modification
|
||||
Ctrl+F6 - sort by size
|
||||
Ctrl+F7 - don't sort (display in order as on disk)
|
||||
Ctrl+F8 - sort by date/time of creation
|
||||
Ctrl+F9 - sort by date/time of last access
|
||||
F12 - display screens menu
|
||||
Ctrl+R - refresh active panel
|
||||
Menu - display context menu for file under cursor
|
||||
LeftCtrl+1/2/3/4 - select panel mode (brief/medium/full/wide)
|
||||
RightCtrl+0..9 - go to folder specified in the section [FolderShortcuts]
|
||||
of ini-file as Shortcut0..9 accordingly
|
||||
Insert - select/deselect current element
|
||||
Grey[+] - select files and folders with mask
|
||||
Grey[-] - deselect files and folders with mask
|
||||
The mask is like "*.asm,*.inc|template.asm" (which selects all files with
|
||||
extensions ASM and INC except for template.asm): one or more elementary
|
||||
including masks with standard mean of '*' and '?', delimited by ',' or ';',
|
||||
optionally followed by '|' and one or more elementary excluding masks.
|
||||
The mask "*.*" specifies all files having '.' in name (i.e. files with
|
||||
any non-empty extension); to specify all files use "*".
|
||||
Grey[*] - invert selection
|
||||
Alt+<letter or digit> - position cursor on name of file/folder,
|
||||
beginning from selected letter or digit; it shows fast find window,
|
||||
in which one can enter subsequent symbols of file/folder name to more precise
|
||||
selection, and also Ctrl+Enter/Shift+Ctrl+Enter to move to the next/previous
|
||||
panel item, whose name starts with specified letters
|
||||
|
||||
For viewer:
|
||||
Esc = F3 = F10 = Numpad5 - exit
|
||||
Down - line down
|
||||
PgDn - page down
|
||||
Up - line up
|
||||
PgUp - page up
|
||||
Home - to begin of file
|
||||
End - to end of file
|
||||
Left - character left
|
||||
Right - character right
|
||||
Ctrl+Left - in Text-mode 20 characters left;
|
||||
in Hex-mode 1 byte left
|
||||
Ctrl+Right - in Text-mode 20 characters right;
|
||||
in Hex-mode 1 byte right
|
||||
Ctrl+Shift+Left - start of lines on the screen
|
||||
Ctrl+Shift+Right - end of lines on the screen
|
||||
F2 - toggle line wrap
|
||||
F4 - toggle Text <-> Hex mode
|
||||
F8 - toggle encoding cp866 (DOS) <-> cp1251 (Win)
|
||||
Shift+F8 - encoding tables menu
|
||||
F12 - display screens menu
|
||||
F7 - search a string from the current position in the file
|
||||
(the string and settings are set in the following dialog)
|
||||
Shift+F7 - continue to search a string
|
||||
(use the string and settings from last search by F7)
|
||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
||||
|
||||
For editor:
|
||||
Esc = F10 - exit; if the file was modified, the question about save necessity
|
||||
will follow
|
||||
Shift+F10 - save and exit
|
||||
F2 - save the file
|
||||
Down - move cursor down to one line
|
||||
PgDn - move cursor down to one page
|
||||
Up - move cursor up to one line
|
||||
PgUp - move cursor up to one page
|
||||
Left - move cursor left to one symbol
|
||||
Right - move cursor right to one symbol
|
||||
Home - move cursor to the beginning of the current line
|
||||
End - move cursor to the end of the current line
|
||||
Backspace - delete the symbol before the cursor
|
||||
Del - delete the symbol under the cursor
|
||||
Ins - toggle insert/replace mode when entering symbols
|
||||
F12 - display screens menu
|
||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
||||
F7 - search a string starting from the position next to the cursor
|
||||
(the string and search settings are prompted in the following dialog)
|
||||
Shift+F7 - continue to search a string (same as F7 without settings dialog)
|
||||
|
||||
diamond
|
||||
mailto:diamondz@land.ru
|
@@ -1,212 +0,0 @@
|
||||
Introduction.
|
||||
|
||||
mtdbg is a debugger for Kolibri operating system. This documentation describes
|
||||
debugger features and work with it. Feel free to ask on our board (mostly
|
||||
in Russian, but has an English forum) -- board.kolibrios.org.
|
||||
|
||||
General description.
|
||||
|
||||
In each moment of time mtdbg can debug only one program. I will call it
|
||||
loaded program. If no program is loaded, overwhelming majority of debugging
|
||||
actions is disabled.
|
||||
|
||||
mtdbg is controlled by command line, entering from keyboard. Command line
|
||||
is drawn in the bottom part of debugger window. Debugger handles standard
|
||||
input keys Backspace,Delete,Home,End,left/right arrows.
|
||||
Commands are case-insensitive. Delimiter is arbitrary nonzero number of spaces.
|
||||
|
||||
At any moment mtdbg can be terminated by command "quit" (without arguments).
|
||||
You can also simply press to close button in the right upper corner of window.
|
||||
|
||||
When debugger is started without command string parameters, no program is
|
||||
loaded. Also mtdbg can be started with command string, in this case it tries
|
||||
to load program with the name pointed to in first parameter in command string
|
||||
and parameters pointed to following (if present).
|
||||
|
||||
If no program is loaded, you can load a program with the command
|
||||
load <full name of executable file> [<parameters>]
|
||||
Examples:
|
||||
load /sys/example
|
||||
LOAD /sys/aclock w200 h200
|
||||
LoaD /hd0/1/menuetos/dosbox/dosbox
|
||||
All that stays after first space after executable file name, is exactly passed
|
||||
to program as command string.
|
||||
The command "load" reports result in the messages window (a little higher
|
||||
than command line window). If program was loaded successfully, there will
|
||||
be the appropriate message; otherwise the message will contain error reason.
|
||||
Most probable error is "file not found" if wrong file name is given.
|
||||
|
||||
The debugger can load files with information on symbols in the program
|
||||
(labels, global variables) - text files, each line of which has format
|
||||
0x<hex_value_of_addr> <name>
|
||||
(lines, which do not have such format, are ignored). Such file can be created
|
||||
by hand or generated automatically by fasm. Evident load can be done by command
|
||||
load-symbols <full name of symbols file>
|
||||
Furthermore, when the debugger executes the command "load", it checks for
|
||||
presence of file with name as of loading binary and extension '.dbg'
|
||||
(/sys/example.dbg in the first of examples above), and if such file exists,
|
||||
the debugger loads it automatically (with the message "Symbols loaded", if
|
||||
all is OK).
|
||||
|
||||
It can happen so that loaded program is packed. General principle of
|
||||
program packing is following: at first input file is packed (by some
|
||||
pack algorithm), then is appended small code which gets control at program
|
||||
start, unpacks input code in the memory and then passes control to it.
|
||||
If program is packed, it "real" code is not visible and for debugging it is
|
||||
needed previously to pass through unpacker code.
|
||||
mtdbg determines most of existing packers (mxp,mxp_lzo,mxp_nrv,mtappack)
|
||||
and in this case suggests to automatically go to "real" code. It is recommended
|
||||
to accept (press 'y' or <Enter>), but you can refuse too. At refusal and if
|
||||
program is packed by something unknown the command "unpack" (without arguments)
|
||||
can be used. Call it only in the case when you are sure that program is packed
|
||||
and control has not already went to main code! [Starting from Kolibri 0.6.5.0,
|
||||
this paragraph is no more actual, because one can pack applications as all
|
||||
binary files with kpack and the unpacker code in this case is located in the
|
||||
kernel and is transparent for debug.]
|
||||
|
||||
Loaded program can be terminated by the command "terminate" (without
|
||||
arguments). The command "detach" (without arguments) detaches from program,
|
||||
after that program continues execution normally, as if there was no debugger.
|
||||
After both this commands program stops to be debugged.
|
||||
|
||||
It is possible to anew load program for debugging by the command "reload"
|
||||
(without arguments). If there is already loaded program, it is terminated
|
||||
and new instance is started (from the beginning) (with the same command
|
||||
string), in this case the command is similar to the commands
|
||||
terminate
|
||||
load <last program name> <last program arguments>
|
||||
Otherwise is loaded anew latest program, which was debugged (in the current
|
||||
seance of work with mtdbg) (with the same command string), i.e. is similar to
|
||||
load <last program name> <last program arguments>,
|
||||
but the command "reload" in both cases is shorter and more convenient;
|
||||
moreover, "load" thinks that new program is loaded and moves data window
|
||||
(see below) to zero address, and "reload" keeps current address.
|
||||
|
||||
The command "help", which can be shorten to "h", is always available.
|
||||
All commands are divided on groups.
|
||||
"help" without arguments displays the list of command groups.
|
||||
"help" with group name displays the list of commands in this group with short
|
||||
comments.
|
||||
"help" with command name displays information about given command.
|
||||
Examples:
|
||||
help
|
||||
help control
|
||||
h LoaD
|
||||
|
||||
The debugger window consists from the following items enumerated from up
|
||||
to down:
|
||||
- status string. If there is loaded program, shows its name and state
|
||||
("Running/Paused"), otherwise reports "No program loaded".
|
||||
- registers window - shows values of general-purpose registers, register eip
|
||||
and states of single flags: CF,PF,AF,ZF,SF,DF,OF: if flag is cleared, then
|
||||
is displayed lower-case letter, if flag is set, then upper-case one.
|
||||
Registers which are changed from previous moment are highlighted in green.
|
||||
- data window (dump window) - shows memory contains of loaded program
|
||||
- code window (disassembler window) - shows program code as disassembled
|
||||
instructions
|
||||
- messages window
|
||||
- command line window
|
||||
|
||||
Dump window can display data starting from any address, to this serves
|
||||
the command
|
||||
d <expression>
|
||||
The command "d" without arguments flicks dump window down.
|
||||
The same is for code window and the command
|
||||
u <expression>
|
||||
or simply "u".
|
||||
Examples:
|
||||
d esi - displays data at address esi (e.g. is useful before execution of
|
||||
instruction rep movsb)
|
||||
d esp - displays stack
|
||||
u eip - disassembles instruction starting from the current
|
||||
|
||||
Expressions in mtdbg can include
|
||||
- hexadecimal constants
|
||||
- names of all general-purpose registers (8 32-bits, 8 16-bits and
|
||||
8 8-bits) and register eip; values of 16- and 8-bits registers are padded
|
||||
with zeroes to 32 bits
|
||||
- four arithmetic operations +,-,*,/ (with standard priorities) and
|
||||
brackets
|
||||
- [if symbols information was loaded] names, loaded from dbg-file
|
||||
All calculations are realized modulo 2^32.
|
||||
Examples of expressions:
|
||||
eax
|
||||
eip+2
|
||||
ecx-esi-1F
|
||||
al+AH*bl
|
||||
ax + 2* bH*(eip+a73)
|
||||
3*esi*di/EAX
|
||||
The command
|
||||
? <expression>
|
||||
calculates value of specified expression.
|
||||
|
||||
Values of registers in loaded program can be changed by the command "r", which
|
||||
has two absolutely equivalent forms:
|
||||
r <register> <expression>
|
||||
r <register>=<expression>
|
||||
(in both cases you can place spaces as you want). Register can be any of
|
||||
above-mentioned - 24 general-purpose registers and eip.
|
||||
|
||||
|
||||
Let us assume that the command "load" was successfully load program for
|
||||
debugging.
|
||||
Immediately after loading program is suspended and does not execute.
|
||||
Press Ctrl+F7 (command-line analog is the command "s") to make one step
|
||||
in loaded program, after that control returns to debugger which displays
|
||||
new contains of registers and memory. The system call "int 40h" is considered
|
||||
as one step.
|
||||
Pressing Ctrl+F8 (command-line analog is the command "p") also makes step in
|
||||
loaded program, but procedure calls, string operations with prefix
|
||||
rep/repz/repnz and 'loop' cycles are executed as one step.
|
||||
The one-step commands are used usually on single program sections,
|
||||
when it is needed, for example, to regularly trace registers value and/or
|
||||
some variables in memory.
|
||||
The command
|
||||
g <expression>
|
||||
resumes program execution and waits until control goes to eip=given address,
|
||||
and in this moment suspends program. The command "g" without arguments
|
||||
simply resumes execution.
|
||||
|
||||
To suspend program use the command "stop" (without arguments).
|
||||
|
||||
In the typical situation it is required that program is executed normally,
|
||||
but when some conditions are satisfied, program suspends and debugger receives
|
||||
control. The corresponding conditions are called breakpoints or simply breaks.
|
||||
Primary type of breakpoints is to concrete address, i.e. stop execution at
|
||||
eip=<given value>. Such breakpoints are set by the command
|
||||
bp <expression>
|
||||
Note that if there is only one such breakpoint, there is more convenient to use
|
||||
the command "g" with argument instead.
|
||||
|
||||
Other type of breakpoints is on access to given memory area. Maximum
|
||||
numbers of such breakpoints is 4 (because hardware features of x86 processors
|
||||
are used and they allows only 4).
|
||||
bpm <expression> - breaks at any access to byte at given address
|
||||
bpm w <expression> - breaks at write to byte at given address
|
||||
bpmb,bpmw,bpmd <expression> - breaks to access correspondingly to byte, word
|
||||
or dword at given address. bpm <20> bpmb are synonyms. When bpmw,bpmd are used,
|
||||
address must be aligned according to correspondingly word bound (i.e. be even)
|
||||
or dword bound (i.e. be divisible by 4).
|
||||
bpmb,bpmw,bpmd w <expression> - similar to break on write.
|
||||
|
||||
To see the list of set breakpoints use the command "bl", to obtain information
|
||||
on concrete breakpoint use "bl <number>". Unnecessary breakpoints can be
|
||||
deleted with the command "bc <number>", temporarily unnecessary can be
|
||||
disabled by the command "bd <number>", when they will be needed again,
|
||||
use the command "be <number>".
|
||||
|
||||
Remarks.
|
||||
|
||||
1. When debugging your own programs you can put in code instructions
|
||||
int3 (pay attention to absence of space!). Such instruction causes
|
||||
exception at normal run, which leads to process termination, but
|
||||
at work under debugger it is simply activated (with the message
|
||||
"int3 command at xxx"). This feature allows to not think about addresses
|
||||
to use in the commands g and/or bp.
|
||||
2. All output and all input is oriented on hexadecimal scale of notation.
|
||||
3. When program is executed, registers and data window shows information
|
||||
regarding to moment before resume; you can not set registers value in this
|
||||
mode. Nevertheless the command "d" in this mode shows information that
|
||||
was true in the moment of command delivery.
|
||||
|
||||
diamond
|
@@ -1,26 +0,0 @@
|
||||
OpenDialog - file open dialog:
|
||||
1) Move the cursor inside the panel:
|
||||
a) up and down arrows (including add. keyb.) - move the cursor one position up or down.
|
||||
b) PageUp - list page up.
|
||||
c) PageDown - list page down.
|
||||
d) Home - move to the top of directory.
|
||||
e) End - move to the end of directory.
|
||||
2) Enter - operations with the selected file:
|
||||
a) enter the folder.
|
||||
b) choose a file.
|
||||
3) Using the menu:
|
||||
Alt+F1 - call disk selection menu.
|
||||
Alt+F2 - call sort menu.
|
||||
Alt+F3 - call filter menu.
|
||||
Inside the menu:
|
||||
Arrow cursor up and down - move to item.
|
||||
Esc - close the window.
|
||||
Enter - close the window with confirmation.
|
||||
Arrow cursor left and right - move into the adjacent menu.
|
||||
4) Ctrl+R - update the contents of a directory.
|
||||
5) Backspace - exit from the directory.
|
||||
6) Insert - highlighted by red color the file at the cursor and move the cursor one position down.
|
||||
7) Ctrl+A and Ctrl+(NumPad(+) Up) - select all files and directories in the active panel, with the exception of the directory '..'
|
||||
8) Ctrl+(NumPad(-) Up) - deselect all files and directories in the active panel with the exception of the directory '..'
|
||||
9) Ctrl+(NumPad(*) Up) - invert the selection of all files and directories in the active panel, with the exception of the directory '..'
|
||||
10) Esc - shutdown the program, without opening of a file.
|
@@ -165,7 +165,7 @@ ico=21
|
||||
x=68
|
||||
y=-135
|
||||
[17]
|
||||
name=FLAPPY-BIRD
|
||||
name=FLOPPY-BIRD
|
||||
path=/SYS/GAMES/FLPYBIRD
|
||||
param=
|
||||
ico=49
|
||||
|
@@ -4,7 +4,7 @@
|
||||
00 3D Demos > |@2
|
||||
00 Gr<47>ficos > |@3
|
||||
00 Multimedia > |@4
|
||||
00 Emulators > |@18
|
||||
00 Emulators > |@6
|
||||
00 Desarrollo > |@5
|
||||
00 Sistema > |@7
|
||||
00 Proceso de datos > |@11
|
||||
@@ -45,12 +45,12 @@
|
||||
#4 **** MULTIMEDIA
|
||||
16 Pixie Audioplayer |media/pixie
|
||||
16 AC97SND Audioplayer |media/ac97snd
|
||||
16 Fplay - video |/kolibrios/media/fplay
|
||||
16 Fplay - video * |/kolibrios/media/fplay
|
||||
16 MidAMP |media/midamp
|
||||
#5 **** DESARROLLO
|
||||
00 Ejemplos > |@6
|
||||
16 Archiver KPack |kpack
|
||||
27 Example.asm |/sys/example.asm
|
||||
16 Flat Assembler |develop/fasm
|
||||
16 Archiver KPack |kpack
|
||||
16 Diff Tool |develop/diff
|
||||
16 Debug Board |develop/board
|
||||
49 Debugger mtdbg |develop/mtdbg
|
||||
@@ -59,12 +59,14 @@
|
||||
16 Tabla de caracteres |ASCIIVju
|
||||
16 C<>digos ASCII |develop/keyascii
|
||||
16 C<>digos SCAN |develop/scancode
|
||||
#6 **** EJEMPLOS
|
||||
16 Threads |develop/thread
|
||||
16 Selector de color |demos/cslide
|
||||
16 Ejemplo de consola 1 |develop/testcon2
|
||||
16 Ejemplo de consola 2 |develop/test_gets
|
||||
16 Ejemplo de Messages |demos/use_mb
|
||||
#6 **** EMULATORS
|
||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
||||
16 e80 (ZX Spectrum) * |/kolibrios/emul/e80/e80
|
||||
23 FCE Ultra (NES) * |/kolibrios/emul/fceu/fceu
|
||||
23 DGEN (Sega) * |/kolibrios/emul/dgen/dgen
|
||||
23 Gameboy Color * |/kolibrios/emul/gameboy
|
||||
23 ZSNES * |/kolibrios/emul/zsnes/zsnes
|
||||
16 ScummVM * |/kolibrios/emul/scummvm
|
||||
#7 **** SISTEMA
|
||||
00 Archivos > |@10
|
||||
00 Accesibilidad > |@17
|
||||
@@ -132,12 +134,4 @@
|
||||
#17 **** ACCESIBILIDAD
|
||||
16 Ampliaci<63>n de pantalla|magnify
|
||||
16 Teclado en pantalla |zkey
|
||||
#18 **** EMULATORS
|
||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
||||
16 e80 (ZX Spectrum) * |/kolibrios/emul/e80/e80
|
||||
23 FCE Ultra (NES) * |/kolibrios/emul/fceu/fceu
|
||||
23 DGEN (Sega) * |/kolibrios/emul/dgen/dgen
|
||||
23 Gameboy Color * |/kolibrios/emul/gameboy
|
||||
23 ZSNES * |/kolibrios/emul/zsnes/zsnes
|
||||
16 ScummVM * |/kolibrios/emul/scummvm
|
||||
##
|
||||
|
@@ -1,8 +0,0 @@
|
||||
KolibriOS 0.7.7.0+ nightly build, Live CD version.
|
||||
|
||||
This is a bootable CD-ROM. To run, reboot your computer and select the
|
||||
correct drive from the system settings or BIOS if required.
|
||||
|
||||
The minimum system requirements and installation instructions can be found
|
||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
||||
are given in 'config.txt'.
|
@@ -1,5 +0,0 @@
|
||||
KolibriOS 0.7.7.0+ nightly build.
|
||||
|
||||
The minimum system requirements and installation instructions can be found
|
||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
||||
are given in 'config.txt'.
|
@@ -1,98 +0,0 @@
|
||||
KolibriOS allows some configures for user requirements. This file describes
|
||||
such settings.
|
||||
For this it is required to change files on ramdisk. If you boot from floppy,
|
||||
there is no problem - change files on floppy. If you use floppy image
|
||||
kolibri.img - either use program which can work with images (for example,
|
||||
WinImage or DiskExplorer) or make changes from Kolibri and do not forget to
|
||||
save ramdisk (with the application rdsave).
|
||||
|
||||
1. Desktop background.
|
||||
a) Replace in the file autorun.dat (it is text file) the parameter for
|
||||
the program kiv ("\S__background.jpg") the name of file to the full
|
||||
Kolibri-path to JPEG-, BMP-, GIF- or PNG-image which you like. It will be
|
||||
new background. background.jpg now can be deleted.
|
||||
b) Replace in the file autorun.dat "/SYS/KIV \S__background.jpg" to
|
||||
"/sys/PIC4" (spaces are ignored by the loader program). You can delete
|
||||
BACKGROUND.JPG. New background will be nice texture.
|
||||
For programmers: you can change texture and color, for this in file
|
||||
pic4.asm from distributive sources change:
|
||||
* to change texture: value of variable usearray (string 585)
|
||||
from ptarray to any of ptarray2,ptarray3, ..., ptarray9.
|
||||
* to change color: in procedure check_parameters find string with
|
||||
the appropriate comment (string 127) and add to 0x40000 1 or 2.
|
||||
After changes recompile pic4, by request pack with kpack (in
|
||||
distributive is so), inject to ramdisk.
|
||||
c) Two previous points sets background for a long time (until next
|
||||
reinstall). It is possible also after Kolibri boot to set background
|
||||
until next reboot in programs kiv, iconedit, pic4, tinyfrac.
|
||||
|
||||
2. Configure system menu.
|
||||
Data for system menu are placed in text file menu.dat. It can be edited
|
||||
in any editor keeping format. If you use Kolibri TINYPAD, you
|
||||
must disable option "optimal fill on saving".
|
||||
|
||||
3. Configure autorun.
|
||||
The list of programs, loading when system boots, is read out from
|
||||
text file autorun.dat. It can be changed in any editor keeping format.
|
||||
For example, you can add as first item start of application startmus
|
||||
(delay 1, without arguments) to hear distinctive melody each time at
|
||||
booting.
|
||||
For programmers: you can change melody, for this edit file startmus.asm
|
||||
from distributive sources: there you can choose melody from three existing
|
||||
or add your own - format of melody is explained in documentation on
|
||||
subfunction 55 of function 55.
|
||||
|
||||
4. Icons list.
|
||||
The list of desktop icons is kept in text file icons.dat, but to
|
||||
change the list it is recommended to use icon manager icon (which can
|
||||
be run from desktop context menu). Images for icons are kept in file
|
||||
iconstrp.gif, which must be edited by external graphics editor.
|
||||
|
||||
5. Skin.
|
||||
The skin can be viewed and changed dynamically with the application
|
||||
desktop; after you choose most likely for you skin, you can make it
|
||||
permanent by replace file default.skn, from which system loads skin at
|
||||
booting. Standard skin is included to ramdisk, some alternative skins can
|
||||
be found in distributive in the folder Skins. You can also create your own
|
||||
skin, for detailed comments look at distributive sources.
|
||||
|
||||
6. Sound.
|
||||
Driver sound.sys, which is located on ramdisk by default, is intended for
|
||||
south bridges Intel ICH, ICH0, ICH2, ICH3, ICH4, ICH5, ICH6, ICH7 and
|
||||
NVidia NForce, NForce 2, NForce 3, NForce 4. If you have SB16-compatible
|
||||
sound card, remove sound.sys and rename sb16.sys from the folder 'drivers'
|
||||
to sound.sys. If you have controller sis7012, rename sis.sys from root
|
||||
folder in distributive to sound.sys and copy it to floppy or image to
|
||||
the folder 'drivers' (replacing old). The driver fm801.sys can be useful
|
||||
for ForceMedia FM801 controller, the driver vt8235.sys - for VIA chipsets,
|
||||
the driver emu10k1x.sys - for EMU10K1X audioprocessor, all are intended to
|
||||
similar with previous case use: copy it to the folder 'drivers' as
|
||||
'sound.sys', replacing the old file.
|
||||
|
||||
7. Bus Disconnect.
|
||||
The application KBD (Kolibri Bus Disconnect) allows to disconnect processor
|
||||
bus in order to decrease its temperature, a side effect is noise in AC97
|
||||
codecs. The application can be loaded automatically at system boot, to do
|
||||
this add to autorun (file autorun.dat, see 3) a line of the form
|
||||
"/SYS/KBD BOOT 20 # Enable Bus Disconnect for AMD K7 processors".
|
||||
|
||||
8. Network settings.
|
||||
Initial network configuration is read at boot from the ini file
|
||||
/sys/network/zeroconf.ini. You can set automatic detection with DHCP
|
||||
("type=zeroconf") or fixed IP addresses ("type=static").
|
||||
|
||||
9. Configuration of videomode for ATI videocards.
|
||||
The driver for ATI can set required screen resolution with refresh rate
|
||||
at system startup, if they are supported. The list of supported modes
|
||||
can be obtained with the utility VMODE, it allows also manual mode setting.
|
||||
To set the mode at startup one must pass to the loader ATIKMS, described
|
||||
in AUTORUN.DAT, the argument -m<width>x<height>x<refresh>, e.g.
|
||||
|
||||
/SYS/DRIVERS/ATIKMS -m1024x768x60 -1
|
||||
|
||||
Pay attention that the format of autorun.dat does not allow spaces in
|
||||
command line, so there must be no other arguments.
|
||||
Also one can disable ability to change videomodes and all linked actions
|
||||
at startup by passing the argument -n. The driver will still support
|
||||
hardware cursor. To fully disable the driver, one can simply delete
|
||||
the line with ATIKMS from autorun.dat.
|
@@ -1,347 +0,0 @@
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2, June 1991
|
||||
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
@@ -1,128 +0,0 @@
|
||||
|
||||
KolibriOS team
|
||||
--------------
|
||||
|
||||
We thank everyone who helped to create and develop KolibriOS,
|
||||
many of whom are listed below ~
|
||||
|
||||
System Programming (loaders, kernel, etc.) :
|
||||
- Alver
|
||||
- art_zh
|
||||
- Asper
|
||||
- Boppan
|
||||
- CleverMouse
|
||||
- Coldy
|
||||
- Doczom
|
||||
- dunkaist
|
||||
- Galkov
|
||||
- Evgeny Grechnikov 'Diamond'
|
||||
- Andrey Halyavin 'halyavin'
|
||||
- hidnplayr
|
||||
- Andrey Ignatiev 'andrew_programmer'
|
||||
- Johnny_B
|
||||
- kasTIgar
|
||||
- Sergey Kuzmin 'Wildwest'
|
||||
- Mihail Lisovin 'Mihasik'
|
||||
- Maxis
|
||||
- Iliya Mihailov 'Ghost'
|
||||
- Nable
|
||||
- NoName
|
||||
- Ivan Poddubny
|
||||
- rgimad
|
||||
- Rus
|
||||
- Mihail Semenyako 'mike.dld'
|
||||
- Sergey Semyonov 'Serge'
|
||||
- shurf
|
||||
- SPraid
|
||||
- Alexey Teplov '<Lrz>'
|
||||
- Trans
|
||||
- tsdima
|
||||
- turbanoff
|
||||
- VaStaNi
|
||||
- Marat Zakiyanov 'Mario79'
|
||||
|
||||
Application Programming (new creations, porting or revisions) :
|
||||
- Alver
|
||||
- art_zh
|
||||
- Artemonische
|
||||
- Asper
|
||||
- barsuk
|
||||
- Vitaly Bendik 'mistifi(ator'
|
||||
- Mario Birkner 'cYfleXX'
|
||||
- Aleksandr Bogomaz 'Albom'
|
||||
- chaykin
|
||||
- CleverMouse
|
||||
- DedOk
|
||||
- Dron2004
|
||||
- dunkaist
|
||||
- ealex
|
||||
- Pavlushin Evgeny 'Exis'
|
||||
- Maxim Evtihov 'Maxxxx32'
|
||||
- Gluk
|
||||
- Evgeny Grechnikov 'Diamond'
|
||||
- Maciej Guba 'macgub'
|
||||
- Andrey Halyavin 'halyavin'
|
||||
- Hex
|
||||
- iadn
|
||||
- Andrey Ignatiev 'andrew_programmer'
|
||||
- IgorA
|
||||
- Andrey Ivushkin 'Willow'
|
||||
- Johnny_B
|
||||
- kaitz
|
||||
- Vasiliy Kosenko 'vkos'
|
||||
- Sergey Kuzmin 'Wildwest'
|
||||
- Kirill Lipatov 'Leency'
|
||||
- Mihail Lisovin 'Mihasik'
|
||||
- Alexander Meshcheryakov 'Self-Perfection'
|
||||
- Iliya Mihailov 'Ghost'
|
||||
- Navanax
|
||||
- nilgui
|
||||
- Olaf
|
||||
- hidden player 'hidnplayr'
|
||||
- Ivan Poddubny
|
||||
- Pterox
|
||||
- Rus
|
||||
- Pavel Rymovski 'Heavyiron'
|
||||
- Mihail Semenyako 'mike.dld'
|
||||
- Sergey Semyonov 'Serge'
|
||||
- SPraid
|
||||
- staper
|
||||
- Alexey Teplov '<Lrz>'
|
||||
- trolly
|
||||
- tsdima
|
||||
- vectoroc
|
||||
- YELLOW
|
||||
- Vladimir Zaitsev 'Rabid Rabbit'
|
||||
- Marat Zakiyanov 'Mario79'
|
||||
|
||||
Documentation and Translation :
|
||||
- Andrew Dent 'ace_dent'
|
||||
- Evgeny Grechnikov 'Diamond'
|
||||
- Hex
|
||||
|
||||
Infrastructure (forum, site and SVN hosting) :
|
||||
- CodeWorld
|
||||
- mike.dld
|
||||
|
||||
Design (logo, background, icons) :
|
||||
- goglus
|
||||
- Kirill Lipatov 'Leency'
|
||||
- Alexey Teplov '<Lrz>'
|
||||
|
||||
Testing and Support :
|
||||
- AqwAS
|
||||
- Ataualpa
|
||||
- Vitaly Bendik 'mistifi(ator'
|
||||
- camper
|
||||
- ChE
|
||||
- Dmitry the Sorcerer
|
||||
- Galkov
|
||||
- Maxis
|
||||
- Mike
|
||||
- Pavel Rymovski 'Heavyiron'
|
||||
- vectoroc
|
||||
- Veliant
|
||||
|
||||
and many others...
|
||||
|
||||
KolibriOS team
|
@@ -1,48 +0,0 @@
|
||||
PHARAOH TOMB
|
||||
|
||||
The purpose of the game is to open passage by moving hieroglyphs on entrance
|
||||
in the next room of the pharaoh tomb (8X8). You can exchange two hieroglyphs
|
||||
located near each other on vertical or horizontal if after such transposition
|
||||
a combination of three or more identical pictures abreast is generated. Such
|
||||
lines are disappeared immediately, and free place is filled by hieroglyphs
|
||||
which "falled" from top. Missing hieroglyphs are generated randomly. For
|
||||
disappearing hieroglyphs points are added. For combination of hieroglyphs
|
||||
number of points is calculated by formula L+(L+1)^(N-3), but no more than
|
||||
20*L*N, where N is number of hieroglyphs in combination, and L is level number.
|
||||
To pass to the next level it is required to remove certain number of
|
||||
hieroglyphs (different on each level). From below of panel with hieroglyphs is
|
||||
located field which indicates how many is passed and how many is remained.
|
||||
|
||||
1st level - 500
|
||||
2nd level - 450
|
||||
3rd level - 400
|
||||
4th level - 350
|
||||
5th level - 300
|
||||
6th level and further - 50*(L+1)
|
||||
|
||||
On the first level combinations are composed from 6 states of hieroglyphs.
|
||||
With each new level one new hieroglyph is involved, but no more than 10
|
||||
(i.e. starting from 5th level and further 10 different hieroglyphs are
|
||||
involved, not counting special ones).
|
||||
|
||||
Starting from 2nd level for each combination from 4 and more hieroglyphs,
|
||||
and also for passing each fourth of level the player gets "free" hieroglyph -
|
||||
it is usual hieroglyph (generated randomly), which keeps "in pocket" of player
|
||||
and can be necessarily inserted by player to any place and replace thus
|
||||
located there hieroglyph.
|
||||
|
||||
Starting from 3rd level for each combination from 5 and more hieroglyphs,
|
||||
and also for passing each third of level the player gets "universal key",
|
||||
which matches to any combination of hieroglyphs and to several different
|
||||
combination simultaneously.
|
||||
|
||||
Starting from 4th level for each combination from 6 and more hieroglyphs,
|
||||
and also for passing a half of level the player gets "space crooker",
|
||||
which allows, when is used, to make 3 moves (not obligatory successive) at
|
||||
diagonal.
|
||||
|
||||
The player can not have simultaneously more than 1 extra hieroglyph of each
|
||||
type (1 usual, 1 joker and 1 crooker).
|
||||
|
||||
The game is ended, if the player can not make any combination with existing
|
||||
hieroglyphs.
|
@@ -1,14 +0,0 @@
|
||||
The following "hot" shortcut keys are used in the system:
|
||||
(Indexing on time of appearance in the system)
|
||||
1) Ctrl + Alt + Del start of the application CPU (the manager of processes), is a sole combination maintained on a level of a kernel, all rest "hot" key is realized at the expense of the application @TASKBAR.
|
||||
2) Ctrl + Shift - switching of keyboard layout.
|
||||
3) Win - start of the application MENU.
|
||||
4) Alt + Ctrl + F12 - start of the application END.
|
||||
5) Alt + F4 - terminate the active application.
|
||||
6) Alt + Tab - switch to the next (in the window stack) window
|
||||
7) Alt + Shift + Tab - switch to the previous (in the window stack) window
|
||||
8) Alt + Shift + NumLock - start of the application MOUSEMUL, which emulates mouse with numpad, when NumLock is on.
|
||||
9) Alt + 1...7 - fast switching to the selected keyboard layout (even if absent for Ctrl + Shift)
|
||||
10) Win + D - minimize/restore all windows (cleaning of desktop)
|
||||
11) Win + R - start of the application RUN
|
||||
12) Ctrl + PrintScreen - start of the application SCRSHOOT. Just do a screen shot and the user is offered to specify (with OpenDialog) where to save the BMP image.
|
@@ -1,25 +0,0 @@
|
||||
Ini-files are text files of special contents:
|
||||
|
||||
[name of first section]
|
||||
Key1=value1
|
||||
Key2=value2
|
||||
;comment
|
||||
[name of second section]
|
||||
Key3=value3
|
||||
|
||||
All lines beginning with ';' are considered as comments and ignored.
|
||||
|
||||
Keyboard shortcuts are described as follows:
|
||||
any number of modificators Ctrl/Alt/Shift/LCtrl/LAlt/LShift/RCtrl/RAlt/RShift,
|
||||
followed by latin letter, digit or key name. The following keys have a name:
|
||||
F1 - F12
|
||||
Home; End; PgUp; PgDn; Ins, equivalently, Insert; Del, equivalently, Delete;
|
||||
Tab; Plus; Esc; Enter; Backspace; Space;
|
||||
Left (left arrow); Right (right arrow); Up (up arrow); Down (down arrow).
|
||||
The string for shortcut is case-insensitive. Parts of the string
|
||||
can be written without delimiters or with '+' between parts. Examples:
|
||||
Ctrl+Alt+Backspace
|
||||
RCtrl+RShift
|
||||
ShiftA
|
||||
f10
|
||||
shiftalt5
|
@@ -1,94 +0,0 @@
|
||||
Control keys in KFar.
|
||||
For panels:
|
||||
arrows, Home, End - move cursor on active panel
|
||||
Tab - change active panel
|
||||
Enter - enter to folder or run program under cursor
|
||||
F3 - view file under cursor
|
||||
F5 - copy selected items or item under cursor to another panel
|
||||
Shift+F5 - copy selected items or item under cursor to the same panel
|
||||
(of course, you must specify another file name)
|
||||
F7 - create folder
|
||||
F8 - delete selected elements or element under cursor
|
||||
F10 - exit
|
||||
Alt+F1/Alt+F2 - change drive on left/right panel
|
||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
||||
Ctrl+F3 - sort file/folders on active panel by name
|
||||
Ctrl+F4 - sort by extension
|
||||
Ctrl+F5 - sort by date/time of last modification
|
||||
Ctrl+F6 - sort by size
|
||||
Ctrl+F7 - don't sort (display in order as on disk)
|
||||
Ctrl+F8 - sort by date/time of creation
|
||||
Ctrl+F9 - sort by date/time of last access
|
||||
F12 - display screens menu
|
||||
Ctrl+R - refresh active panel
|
||||
Menu - display context menu for file under cursor
|
||||
LeftCtrl+1/2/3/4 - select panel mode (brief/medium/full/wide)
|
||||
RightCtrl+0..9 - go to folder specified in the section [FolderShortcuts]
|
||||
of ini-file as Shortcut0..9 accordingly
|
||||
Insert - select/deselect current element
|
||||
Grey[+] - select files and folders with mask
|
||||
Grey[-] - deselect files and folders with mask
|
||||
The mask is like "*.asm,*.inc|template.asm" (which selects all files with
|
||||
extensions ASM and INC except for template.asm): one or more elementary
|
||||
including masks with standard mean of '*' and '?', delimited by ',' or ';',
|
||||
optionally followed by '|' and one or more elementary excluding masks.
|
||||
The mask "*.*" specifies all files having '.' in name (i.e. files with
|
||||
any non-empty extension); to specify all files use "*".
|
||||
Grey[*] - invert selection
|
||||
Alt+<letter or digit> - position cursor on name of file/folder,
|
||||
beginning from selected letter or digit; it shows fast find window,
|
||||
in which one can enter subsequent symbols of file/folder name to more precise
|
||||
selection, and also Ctrl+Enter/Shift+Ctrl+Enter to move to the next/previous
|
||||
panel item, whose name starts with specified letters
|
||||
|
||||
For viewer:
|
||||
Esc = F3 = F10 = Numpad5 - exit
|
||||
Down - line down
|
||||
PgDn - page down
|
||||
Up - line up
|
||||
PgUp - page up
|
||||
Home - to begin of file
|
||||
End - to end of file
|
||||
Left - character left
|
||||
Right - character right
|
||||
Ctrl+Left - in Text-mode 20 characters left;
|
||||
in Hex-mode 1 byte left
|
||||
Ctrl+Right - in Text-mode 20 characters right;
|
||||
in Hex-mode 1 byte right
|
||||
Ctrl+Shift+Left - start of lines on the screen
|
||||
Ctrl+Shift+Right - end of lines on the screen
|
||||
F2 - toggle line wrap
|
||||
F4 - toggle Text <-> Hex mode
|
||||
F8 - toggle encoding cp866 (DOS) <-> cp1251 (Win)
|
||||
Shift+F8 - encoding tables menu
|
||||
F12 - display screens menu
|
||||
F7 - search a string from the current position in the file
|
||||
(the string and settings are set in the following dialog)
|
||||
Shift+F7 - continue to search a string
|
||||
(use the string and settings from last search by F7)
|
||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
||||
|
||||
For editor:
|
||||
Esc = F10 - exit; if the file was modified, the question about save necessity
|
||||
will follow
|
||||
Shift+F10 - save and exit
|
||||
F2 - save the file
|
||||
Down - move cursor down to one line
|
||||
PgDn - move cursor down to one page
|
||||
Up - move cursor up to one line
|
||||
PgUp - move cursor up to one page
|
||||
Left - move cursor left to one symbol
|
||||
Right - move cursor right to one symbol
|
||||
Home - move cursor to the beginning of the current line
|
||||
End - move cursor to the end of the current line
|
||||
Backspace - delete the symbol before the cursor
|
||||
Del - delete the symbol under the cursor
|
||||
Ins - toggle insert/replace mode when entering symbols
|
||||
F12 - display screens menu
|
||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
||||
F7 - search a string starting from the position next to the cursor
|
||||
(the string and search settings are prompted in the following dialog)
|
||||
Shift+F7 - continue to search a string (same as F7 without settings dialog)
|
||||
|
||||
diamond
|
||||
mailto:diamondz@land.ru
|
@@ -1,212 +0,0 @@
|
||||
Introduction.
|
||||
|
||||
mtdbg is a debugger for Kolibri operating system. This documentation describes
|
||||
debugger features and work with it. Feel free to ask on our board (mostly
|
||||
in Russian, but has an English forum) -- board.kolibrios.org.
|
||||
|
||||
General description.
|
||||
|
||||
In each moment of time mtdbg can debug only one program. I will call it
|
||||
loaded program. If no program is loaded, overwhelming majority of debugging
|
||||
actions is disabled.
|
||||
|
||||
mtdbg is controlled by command line, entering from keyboard. Command line
|
||||
is drawn in the bottom part of debugger window. Debugger handles standard
|
||||
input keys Backspace,Delete,Home,End,left/right arrows.
|
||||
Commands are case-insensitive. Delimiter is arbitrary nonzero number of spaces.
|
||||
|
||||
At any moment mtdbg can be terminated by command "quit" (without arguments).
|
||||
You can also simply press to close button in the right upper corner of window.
|
||||
|
||||
When debugger is started without command string parameters, no program is
|
||||
loaded. Also mtdbg can be started with command string, in this case it tries
|
||||
to load program with the name pointed to in first parameter in command string
|
||||
and parameters pointed to following (if present).
|
||||
|
||||
If no program is loaded, you can load a program with the command
|
||||
load <full name of executable file> [<parameters>]
|
||||
Examples:
|
||||
load /sys/example
|
||||
LOAD /sys/aclock w200 h200
|
||||
LoaD /hd0/1/menuetos/dosbox/dosbox
|
||||
All that stays after first space after executable file name, is exactly passed
|
||||
to program as command string.
|
||||
The command "load" reports result in the messages window (a little higher
|
||||
than command line window). If program was loaded successfully, there will
|
||||
be the appropriate message; otherwise the message will contain error reason.
|
||||
Most probable error is "file not found" if wrong file name is given.
|
||||
|
||||
The debugger can load files with information on symbols in the program
|
||||
(labels, global variables) - text files, each line of which has format
|
||||
0x<hex_value_of_addr> <name>
|
||||
(lines, which do not have such format, are ignored). Such file can be created
|
||||
by hand or generated automatically by fasm. Evident load can be done by command
|
||||
load-symbols <full name of symbols file>
|
||||
Furthermore, when the debugger executes the command "load", it checks for
|
||||
presence of file with name as of loading binary and extension '.dbg'
|
||||
(/sys/example.dbg in the first of examples above), and if such file exists,
|
||||
the debugger loads it automatically (with the message "Symbols loaded", if
|
||||
all is OK).
|
||||
|
||||
It can happen so that loaded program is packed. General principle of
|
||||
program packing is following: at first input file is packed (by some
|
||||
pack algorithm), then is appended small code which gets control at program
|
||||
start, unpacks input code in the memory and then passes control to it.
|
||||
If program is packed, it "real" code is not visible and for debugging it is
|
||||
needed previously to pass through unpacker code.
|
||||
mtdbg determines most of existing packers (mxp,mxp_lzo,mxp_nrv,mtappack)
|
||||
and in this case suggests to automatically go to "real" code. It is recommended
|
||||
to accept (press 'y' or <Enter>), but you can refuse too. At refusal and if
|
||||
program is packed by something unknown the command "unpack" (without arguments)
|
||||
can be used. Call it only in the case when you are sure that program is packed
|
||||
and control has not already went to main code! [Starting from Kolibri 0.6.5.0,
|
||||
this paragraph is no more actual, because one can pack applications as all
|
||||
binary files with kpack and the unpacker code in this case is located in the
|
||||
kernel and is transparent for debug.]
|
||||
|
||||
Loaded program can be terminated by the command "terminate" (without
|
||||
arguments). The command "detach" (without arguments) detaches from program,
|
||||
after that program continues execution normally, as if there was no debugger.
|
||||
After both this commands program stops to be debugged.
|
||||
|
||||
It is possible to anew load program for debugging by the command "reload"
|
||||
(without arguments). If there is already loaded program, it is terminated
|
||||
and new instance is started (from the beginning) (with the same command
|
||||
string), in this case the command is similar to the commands
|
||||
terminate
|
||||
load <last program name> <last program arguments>
|
||||
Otherwise is loaded anew latest program, which was debugged (in the current
|
||||
seance of work with mtdbg) (with the same command string), i.e. is similar to
|
||||
load <last program name> <last program arguments>,
|
||||
but the command "reload" in both cases is shorter and more convenient;
|
||||
moreover, "load" thinks that new program is loaded and moves data window
|
||||
(see below) to zero address, and "reload" keeps current address.
|
||||
|
||||
The command "help", which can be shorten to "h", is always available.
|
||||
All commands are divided on groups.
|
||||
"help" without arguments displays the list of command groups.
|
||||
"help" with group name displays the list of commands in this group with short
|
||||
comments.
|
||||
"help" with command name displays information about given command.
|
||||
Examples:
|
||||
help
|
||||
help control
|
||||
h LoaD
|
||||
|
||||
The debugger window consists from the following items enumerated from up
|
||||
to down:
|
||||
- status string. If there is loaded program, shows its name and state
|
||||
("Running/Paused"), otherwise reports "No program loaded".
|
||||
- registers window - shows values of general-purpose registers, register eip
|
||||
and states of single flags: CF,PF,AF,ZF,SF,DF,OF: if flag is cleared, then
|
||||
is displayed lower-case letter, if flag is set, then upper-case one.
|
||||
Registers which are changed from previous moment are highlighted in green.
|
||||
- data window (dump window) - shows memory contains of loaded program
|
||||
- code window (disassembler window) - shows program code as disassembled
|
||||
instructions
|
||||
- messages window
|
||||
- command line window
|
||||
|
||||
Dump window can display data starting from any address, to this serves
|
||||
the command
|
||||
d <expression>
|
||||
The command "d" without arguments flicks dump window down.
|
||||
The same is for code window and the command
|
||||
u <expression>
|
||||
or simply "u".
|
||||
Examples:
|
||||
d esi - displays data at address esi (e.g. is useful before execution of
|
||||
instruction rep movsb)
|
||||
d esp - displays stack
|
||||
u eip - disassembles instruction starting from the current
|
||||
|
||||
Expressions in mtdbg can include
|
||||
- hexadecimal constants
|
||||
- names of all general-purpose registers (8 32-bits, 8 16-bits and
|
||||
8 8-bits) and register eip; values of 16- and 8-bits registers are padded
|
||||
with zeroes to 32 bits
|
||||
- four arithmetic operations +,-,*,/ (with standard priorities) and
|
||||
brackets
|
||||
- [if symbols information was loaded] names, loaded from dbg-file
|
||||
All calculations are realized modulo 2^32.
|
||||
Examples of expressions:
|
||||
eax
|
||||
eip+2
|
||||
ecx-esi-1F
|
||||
al+AH*bl
|
||||
ax + 2* bH*(eip+a73)
|
||||
3*esi*di/EAX
|
||||
The command
|
||||
? <expression>
|
||||
calculates value of specified expression.
|
||||
|
||||
Values of registers in loaded program can be changed by the command "r", which
|
||||
has two absolutely equivalent forms:
|
||||
r <register> <expression>
|
||||
r <register>=<expression>
|
||||
(in both cases you can place spaces as you want). Register can be any of
|
||||
above-mentioned - 24 general-purpose registers and eip.
|
||||
|
||||
|
||||
Let us assume that the command "load" was successfully load program for
|
||||
debugging.
|
||||
Immediately after loading program is suspended and does not execute.
|
||||
Press Ctrl+F7 (command-line analog is the command "s") to make one step
|
||||
in loaded program, after that control returns to debugger which displays
|
||||
new contains of registers and memory. The system call "int 40h" is considered
|
||||
as one step.
|
||||
Pressing Ctrl+F8 (command-line analog is the command "p") also makes step in
|
||||
loaded program, but procedure calls, string operations with prefix
|
||||
rep/repz/repnz and 'loop' cycles are executed as one step.
|
||||
The one-step commands are used usually on single program sections,
|
||||
when it is needed, for example, to regularly trace registers value and/or
|
||||
some variables in memory.
|
||||
The command
|
||||
g <expression>
|
||||
resumes program execution and waits until control goes to eip=given address,
|
||||
and in this moment suspends program. The command "g" without arguments
|
||||
simply resumes execution.
|
||||
|
||||
To suspend program use the command "stop" (without arguments).
|
||||
|
||||
In the typical situation it is required that program is executed normally,
|
||||
but when some conditions are satisfied, program suspends and debugger receives
|
||||
control. The corresponding conditions are called breakpoints or simply breaks.
|
||||
Primary type of breakpoints is to concrete address, i.e. stop execution at
|
||||
eip=<given value>. Such breakpoints are set by the command
|
||||
bp <expression>
|
||||
Note that if there is only one such breakpoint, there is more convenient to use
|
||||
the command "g" with argument instead.
|
||||
|
||||
Other type of breakpoints is on access to given memory area. Maximum
|
||||
numbers of such breakpoints is 4 (because hardware features of x86 processors
|
||||
are used and they allows only 4).
|
||||
bpm <expression> - breaks at any access to byte at given address
|
||||
bpm w <expression> - breaks at write to byte at given address
|
||||
bpmb,bpmw,bpmd <expression> - breaks to access correspondingly to byte, word
|
||||
or dword at given address. bpm <20> bpmb are synonyms. When bpmw,bpmd are used,
|
||||
address must be aligned according to correspondingly word bound (i.e. be even)
|
||||
or dword bound (i.e. be divisible by 4).
|
||||
bpmb,bpmw,bpmd w <expression> - similar to break on write.
|
||||
|
||||
To see the list of set breakpoints use the command "bl", to obtain information
|
||||
on concrete breakpoint use "bl <number>". Unnecessary breakpoints can be
|
||||
deleted with the command "bc <number>", temporarily unnecessary can be
|
||||
disabled by the command "bd <number>", when they will be needed again,
|
||||
use the command "be <number>".
|
||||
|
||||
Remarks.
|
||||
|
||||
1. When debugging your own programs you can put in code instructions
|
||||
int3 (pay attention to absence of space!). Such instruction causes
|
||||
exception at normal run, which leads to process termination, but
|
||||
at work under debugger it is simply activated (with the message
|
||||
"int3 command at xxx"). This feature allows to not think about addresses
|
||||
to use in the commands g and/or bp.
|
||||
2. All output and all input is oriented on hexadecimal scale of notation.
|
||||
3. When program is executed, registers and data window shows information
|
||||
regarding to moment before resume; you can not set registers value in this
|
||||
mode. Nevertheless the command "d" in this mode shows information that
|
||||
was true in the moment of command delivery.
|
||||
|
||||
diamond
|
@@ -1,26 +0,0 @@
|
||||
OpenDialog - file open dialog:
|
||||
1) Move the cursor inside the panel:
|
||||
a) up and down arrows (including add. keyb.) - move the cursor one position up or down.
|
||||
b) PageUp - list page up.
|
||||
c) PageDown - list page down.
|
||||
d) Home - move to the top of directory.
|
||||
e) End - move to the end of directory.
|
||||
2) Enter - operations with the selected file:
|
||||
a) enter the folder.
|
||||
b) choose a file.
|
||||
3) Using the menu:
|
||||
Alt+F1 - call disk selection menu.
|
||||
Alt+F2 - call sort menu.
|
||||
Alt+F3 - call filter menu.
|
||||
Inside the menu:
|
||||
Arrow cursor up and down - move to item.
|
||||
Esc - close the window.
|
||||
Enter - close the window with confirmation.
|
||||
Arrow cursor left and right - move into the adjacent menu.
|
||||
4) Ctrl+R - update the contents of a directory.
|
||||
5) Backspace - exit from the directory.
|
||||
6) Insert - highlighted by red color the file at the cursor and move the cursor one position down.
|
||||
7) Ctrl+A and Ctrl+(NumPad(+) Up) - select all files and directories in the active panel, with the exception of the directory '..'
|
||||
8) Ctrl+(NumPad(-) Up) - deselect all files and directories in the active panel with the exception of the directory '..'
|
||||
9) Ctrl+(NumPad(*) Up) - invert the selection of all files and directories in the active panel, with the exception of the directory '..'
|
||||
10) Esc - shutdown the program, without opening of a file.
|
@@ -165,7 +165,7 @@ ico=21
|
||||
x=68
|
||||
y=-135
|
||||
[17]
|
||||
name=FLAPPY-BIRD
|
||||
name=FLOPPY-BIRD
|
||||
path=/SYS/GAMES/FLPYBIRD
|
||||
param=
|
||||
ico=49
|
||||
|
@@ -165,7 +165,7 @@ ico=21
|
||||
x=68
|
||||
y=-135
|
||||
[17]
|
||||
name=FLAPPY-BIRD
|
||||
name=FLOPPY-BIRD
|
||||
path=/SYS/GAMES/FLPYBIRD
|
||||
param=
|
||||
ico=49
|
||||
|
@@ -17,10 +17,12 @@ I.
|
||||
2) ‡ ¯¨è¨â¥ ¥ñ ®¡à § kolibri.img «î¡ë¬ ¨§ ¤®áâã¯ëå ᯮᮡ®¢:
|
||||
) (¥á«¨ ‚ë 㦥 § £à㧨«¨ ª ª¨¬-«¨¡® ®¡à §®¬ Š®«¨¡à¨) § ¯ãáâ¨â¥ ¯à®£à ¬¬ã
|
||||
rdsave ¨ ¢ë¡¥à¨â¥ ᮮ⢥âáâ¢ãî騩 ¤¨áª¥â¥ ¨§ ¯à¥¤« £ ¥¬ëå ¢ ਠ⮢
|
||||
¡) (¤«ï DOS ¨ Windows) § ¯ãáâ¨â¥ ¯à¨« £ ¥¬ë© install.bat
|
||||
¢) ¯à®£à ¬¬®© WinImage ¨«¨ ¥ñ «®£ ¬¨ ( ¯à¨¬¥à, DiskExplorer)
|
||||
£) (¤«ï Linux) ¢ëáâ ¢ì⥠âਡãâ "¨á¯®«ï¥¬ë©" ¯à¨« £ ¥¬®¬ã áªà¨¯âã
|
||||
install.sh ¨ § ¯ãáâ¨â¥ ¥£®
|
||||
¡) ¤«ï DOS ¢®á¯®«ì§ã©â¥áì ã⨫¨â®© DskImage
|
||||
¢) ¤«ï Windows ¯®¤®©¤ñâ ¯à®£à ¬¬ WinImage, RawWrite for Windows ¨«¨ «®£
|
||||
£) ¤«ï Linux § ¯ãáâ¨â¥ ª®¬ ¤ã:
|
||||
`dd if=/pathto/kolibri.img of=/dev/fd0 bs=512 count=2880`
|
||||
<20>¥à¥¤ ¨§¢«¥ç¥¨¥¬ ¤¨áª¥âë ¥ § ¡ã¤ì⥠¥ñ à §¬®â¨à®¢ âì.
|
||||
|
||||
’¥¯¥àì á ¤¨áª¥âë ¬®¦® § £à㦠âìáï (®áâ ¢¨¢ ¥ñ ¢ ¤¨áª®¢®¤¥, ¯¥à¥§ £à㧨â¥áì,
|
||||
ãáâ ®¢¨¢ ¢ BIOS'¥ ®¯æ¨î § £à㧪¨ á ¤¨áª¥âë).
|
||||
|
@@ -165,7 +165,7 @@ ico=21
|
||||
x=68
|
||||
y=-135
|
||||
[17]
|
||||
name=FLAPPY-BIRD
|
||||
name=FLOPPY-BIRD
|
||||
path=/SYS/GAMES/FLPYBIRD
|
||||
param=
|
||||
ico=49
|
||||
|
@@ -49,7 +49,7 @@
|
||||
11 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Fplay * |/kolibrios/media/fplay
|
||||
#5 **** <20><><EFBFBD>ࠡ<EFBFBD>⪠
|
||||
54 Flat Assembler |develop/fasm
|
||||
27 Example.asm |example.asm
|
||||
27 Example.asm |/sys/example.asm
|
||||
09 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>騪 KPack |kpack
|
||||
49 <20>⫠<EFBFBD>稪 mtdbg |develop/mtdbg
|
||||
49 <20>⫠<EFBFBD>稪 koldbg * |/kolibrios/develop/koldbg
|
||||
|
@@ -50,6 +50,7 @@ char *unicode_symbols[]={
|
||||
"#65122", "+",
|
||||
|
||||
"#8594", "->",
|
||||
"#8627", "->",
|
||||
|
||||
"uarr", "^",
|
||||
"darr", "v",
|
||||
|
@@ -946,8 +946,10 @@ void CheckContentType()
|
||||
StopLoading();
|
||||
}
|
||||
else if (content_type[0] == 'a') {
|
||||
EventOpenDownloader(http.cur_url);
|
||||
http_get_type = FILE;
|
||||
StopLoading();
|
||||
if (!canvas.bufw) OpenPage(DEFAULT_URL); //Fixed: Browser was launched with file param
|
||||
EventOpenDownloader(http.cur_url);
|
||||
}
|
||||
else {
|
||||
WB1.custom_encoding = -1;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
enum {
|
||||
PAGE=1, IMG
|
||||
PAGE=1, IMG, FILE
|
||||
};
|
||||
|
||||
struct _cache
|
||||
|
@@ -6,12 +6,20 @@
|
||||
#define T_CANCEL "<22>⬥<EFBFBD><E2ACA5>"
|
||||
#define T_OPEN_DIR "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>"
|
||||
#define T_RUN "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<>"
|
||||
#define T_SPEED_TEST "<22><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
#define T_NEW "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD>"
|
||||
#define T_SAVE_TO "<22><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD> <20>:"
|
||||
#define T_AUTOCLOSE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><E8A5AD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD>"
|
||||
|
||||
#define T_STATUS_READY "<22><>⮢ <20> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> ^_^ "
|
||||
#define T_STATUS_DOWNLOADING "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> 䠩<><E4A0A9>... %i.%i M<> <20><><EFBFBD><EFBFBD>祭<EFBFBD> (%i K<>/<EFBFBD>) "
|
||||
#define T_STATUS_COMPLETE "<22><><EFBFBD><EFBFBD>㧪<EFBFBD> <20>ᯥ譮 <20><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD>. "
|
||||
#define T_STATUS_DL_P1 "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>㧪<EFBFBD> 䠩<><E4A0A9>... "
|
||||
#define T_STATUS_DL_P2 " M<> <20><><EFBFBD><EFBFBD>祭<EFBFBD> ("
|
||||
#define T_STATUS_DL_P3 " K<>/<EFBFBD>) "
|
||||
|
||||
#define FILE_SAVED_AS "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>㧮<EFBFBD>\n<><6E><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD> <20><><EFBFBD> %s' -Dt"
|
||||
#define FILE_NOT_SAVED "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>㧮<EFBFBD>\n<>訡<EFBFBD><E8A8A1>! <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD> <20><><EFBFBD>\n%s' -Et"
|
||||
#define KB_RECEIVED "<22><><EFBFBD><EFBFBD> ᪠稢<E1AAA0><E7A8A2><EFBFBD><EFBFBD>: %i.%i M<> <20><><EFBFBD><EFBFBD>祭<EFBFBD> (%i K<>/<EFBFBD>) "
|
||||
#define T_ERROR_STARTING_DOWNLOAD "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᪠稢<E1AAA0><E7A8A2><EFBFBD><EFBFBD>.\n<><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> ᮥ<><E1AEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>⮬.' -E"
|
||||
#define T_AUTOCLOSE "<22><>⮧<EFBFBD><E2AEA7><EFBFBD><EFBFBD>⨥"
|
||||
char accept_language[]= "Accept-Language: ru\n";
|
||||
#else
|
||||
#define DL_WINDOW_HEADER "Download Manager"
|
||||
@@ -19,20 +27,31 @@
|
||||
#define T_CANCEL "Cancel"
|
||||
#define T_OPEN_DIR " Show in folder "
|
||||
#define T_RUN "Open file"
|
||||
#define T_SPEED_TEST "Speed test"
|
||||
#define T_NEW "New download"
|
||||
#define T_SAVE_TO "Download to:"
|
||||
#define T_AUTOCLOSE "Close this window when download completes"
|
||||
|
||||
#define T_STATUS_READY "Ready to download ^_^ "
|
||||
#define T_STATUS_DOWNLOADING "Downloading... %i.%i MB received (%i KB/s) "
|
||||
#define T_STATUS_COMPLETE "Download completed succesfully. "
|
||||
#define T_STATUS_DL_P1 "Downloading... "
|
||||
#define T_STATUS_DL_P2 " MB received ("
|
||||
#define T_STATUS_DL_P3 " KB/s) "
|
||||
|
||||
#define FILE_SAVED_AS "'Download manager\nFile saved as %s' -Dt"
|
||||
#define FILE_NOT_SAVED "'Download manager\nError! Can\96t save file as %s' -Et"
|
||||
#define KB_RECEIVED "Downloading: %i.%i MB received (%i KB/s) "
|
||||
#define T_ERROR_STARTING_DOWNLOAD "'Error while starting download process.\nCheck entered path and Internet connection.' -E"
|
||||
#define T_AUTOCLOSE "Autoclose"
|
||||
char accept_language[]= "Accept-Language: en\n";
|
||||
#endif
|
||||
|
||||
#define GAPX 15
|
||||
#define WIN_W 540
|
||||
#define WIN_H 100
|
||||
#define WIN_W 526
|
||||
#define WIN_H 195
|
||||
|
||||
#define GAPX 15
|
||||
#define BUT_W 148
|
||||
|
||||
#define DEFAULT_SAVE_DIR "/tmp0/1/Downloads"
|
||||
|
||||
char save_dir[] = "/tmp0/1/Downloads";
|
||||
char dl_shared[] = "DL";
|
||||
|
||||
#define URL_SPEED_TEST "http://speedtest.tele2.net/100MB.zip"
|
||||
@@ -43,4 +62,9 @@ enum {
|
||||
BTN_STOP,
|
||||
BTN_DIR,
|
||||
BTN_RUN,
|
||||
BTN_NEW
|
||||
};
|
||||
|
||||
#define PB_COL_ERROR 0xF55353
|
||||
#define PB_COL_PROGRESS 0x297FFD
|
||||
#define PB_COL_COMPLETE 0x74DA00
|
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "const.h"
|
||||
|
||||
bool exit_param = false;
|
||||
bool open_file = false;
|
||||
|
||||
dword speed;
|
||||
@@ -17,11 +16,15 @@ _http http;
|
||||
checkbox autoclose = { T_AUTOCLOSE, false };
|
||||
|
||||
char uEdit[URL_SIZE];
|
||||
char filepath[URL_SIZE+96];
|
||||
char filepath[4096];
|
||||
char save_dir[4096];
|
||||
|
||||
char* active_status;
|
||||
|
||||
progress_bar pb = {0, GAPX, 58, 380, 17, 0, NULL, NULL, 0xFFFfff, 0x74DA00, NULL};
|
||||
edit_box ed = {WIN_W-GAPX-GAPX,GAPX,20,0xffffff,0x94AECE,0xffffff,0xffffff,
|
||||
0x10000000, sizeof(uEdit)-2,#uEdit,0,ed_focus,19,19};
|
||||
0x10000000, sizeof(uEdit)-2, #uEdit, 0, ed_focus + ed_always_focus, 19, 19};
|
||||
progress_bar pb = {0, GAPX, 52, WIN_W - GAPX - GAPX, 17, 0, NULL, NULL,
|
||||
0xFFFfff, 0, NULL};
|
||||
|
||||
|
||||
void main()
|
||||
@@ -30,16 +33,19 @@ void main()
|
||||
load_dll(boxlib, #box_lib_init,0);
|
||||
load_dll(libHTTP, #http_lib_init,1);
|
||||
|
||||
strcpy(#save_dir, DEFAULT_SAVE_DIR);
|
||||
if (!dir_exists(#save_dir)) CreateDir(#save_dir);
|
||||
SetCurDir(#save_dir);
|
||||
sc.get();
|
||||
InitDownload();
|
||||
|
||||
if (param) {
|
||||
if (streqrp(#param, "-e ")) {
|
||||
exit_param = true;
|
||||
autoclose.checked = true;
|
||||
param += 3;
|
||||
}
|
||||
if (streqrp(#param, "-eo ")) {
|
||||
exit_param = true;
|
||||
autoclose.checked = true;
|
||||
open_file = true;
|
||||
param += 4;
|
||||
}
|
||||
@@ -65,7 +71,7 @@ void main()
|
||||
case evMouse: edit_box_mouse stdcall (#ed); break;
|
||||
case evButton: ProcessButtonClick(@GetButtonID()); break;
|
||||
case evKey: ProcessKeyPress(); break;
|
||||
case evReDraw: DrawWindow(); break;
|
||||
case evReDraw: DefineWindow(); break;
|
||||
default: MonitorProgress();
|
||||
}
|
||||
}
|
||||
@@ -73,11 +79,30 @@ void main()
|
||||
void ProcessButtonClick(int id)
|
||||
{
|
||||
autoclose.click(id);
|
||||
if (id==BTN_EXIT) { StopDownloading(); ExitProcess(); }
|
||||
if (id==BTN_START) StartDownloading();
|
||||
if (id==BTN_STOP) StopDownloading();
|
||||
if (id==BTN_DIR) { RunProgram("/sys/File managers/Eolite", #filepath); ExitProcess(); }
|
||||
if (id==BTN_RUN) { RunProgram("/sys/@open", #filepath); ExitProcess(); }
|
||||
switch (id) {
|
||||
case BTN_EXIT:
|
||||
StopDownloading();
|
||||
ExitProcess();
|
||||
case BTN_START:
|
||||
StartDownloading();
|
||||
break;
|
||||
case BTN_STOP:
|
||||
StopDownloading();
|
||||
InitDownload();
|
||||
DrawWindow();
|
||||
break;
|
||||
case BTN_NEW:
|
||||
InitDownload();
|
||||
EditBox_UpdateText(#ed, ed_focus + ed_always_focus);
|
||||
DrawWindow();
|
||||
break;
|
||||
case BTN_DIR:
|
||||
RunProgram("/sys/File managers/Eolite", #filepath);
|
||||
break;
|
||||
case BTN_RUN:
|
||||
RunProgram("/sys/@open", #filepath);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessKeyPress()
|
||||
@@ -85,33 +110,53 @@ void ProcessKeyPress()
|
||||
@GetKey();
|
||||
edit_box_key stdcall(#ed);
|
||||
EAX >>= 16;
|
||||
if (AL == SCAN_CODE_ENTER) StartDownloading();
|
||||
if (AL == SCAN_CODE_ESC) StopDownloading();
|
||||
if (AL == SCAN_CODE_ENTER) ProcessButtonClick(BTN_START);
|
||||
if (AL == SCAN_CODE_ESC) ProcessButtonClick(BTN_STOP);
|
||||
}
|
||||
|
||||
|
||||
void DrawDlButton(int x, id, t)
|
||||
{
|
||||
DrawCaptButton(x, 102, BUT_W, 24, id, sc.button, sc.button_text, t);
|
||||
}
|
||||
|
||||
void DefineWindow()
|
||||
{
|
||||
sc.get();
|
||||
pb.frame_color = ed.border_color = ed.focus_border_color = sc.line;
|
||||
DefineAndDrawWindow(110 + random(300), 100 + random(300), WIN_W+9,
|
||||
WIN_H + 5 + skin_h, 0x34, sc.work, DL_WINDOW_HEADER, 0);
|
||||
DrawWindow();
|
||||
}
|
||||
|
||||
void DrawWindow()
|
||||
{
|
||||
sc.get();
|
||||
pb.frame_color = sc.dark;
|
||||
DefineAndDrawWindow(110 + random(300), 100 + random(300), WIN_W+9,
|
||||
WIN_H + 5 + skin_h, 0x34, sc.work, DL_WINDOW_HEADER, 0);
|
||||
|
||||
#define BUT_Y 58;
|
||||
//autoclose.draw(WIN_W-135, BUT_Y+6);
|
||||
if (!http.transfer)
|
||||
{
|
||||
DrawStandartCaptButton(GAPX, BUT_Y, BTN_START, T_DOWNLOAD);
|
||||
if (filepath)
|
||||
{
|
||||
DrawStandartCaptButton(GAPX+102, BUT_Y, BTN_DIR, T_OPEN_DIR);
|
||||
DrawStandartCaptButton(GAPX+276, BUT_Y, BTN_RUN, T_RUN);
|
||||
}
|
||||
} else {
|
||||
DrawStandartCaptButton(WIN_W - 120, BUT_Y, BTN_STOP, T_CANCEL);
|
||||
if (!http.transfer) && (!filepath) {
|
||||
DrawBar(GAPX, 102, WIN_W - GAPX - GAPX+1, 24+1, sc.work);
|
||||
DeleteButton(BTN_DIR);
|
||||
DeleteButton(BTN_NEW);
|
||||
DrawDlButton(WIN_W-BUT_W/2, BTN_START, T_DOWNLOAD);
|
||||
autoclose.disabled = false;
|
||||
} else if (http.transfer) {
|
||||
DrawDlButton(WIN_W-BUT_W/2, BTN_STOP, T_CANCEL);
|
||||
DrawDownloadingProgress();
|
||||
} else if (!http.transfer) && (filepath) {
|
||||
autoclose.disabled = true;
|
||||
DrawDlButton(GAPX, BTN_RUN, T_RUN);
|
||||
DrawDlButton(WIN_W-BUT_W/2, BTN_DIR, T_OPEN_DIR);
|
||||
DrawDlButton(WIN_W-BUT_W-GAPX, BTN_NEW, T_NEW);
|
||||
}
|
||||
//ed.offset=0; //DEL?
|
||||
DrawEditBox(#ed);
|
||||
|
||||
WriteTextWithBg(GAPX, pb.top + 22, 0xD0, sc.work_text, active_status, sc.work);
|
||||
|
||||
DrawBar(GAPX, WIN_H - 58, WIN_W - GAPX - GAPX, 1, sc.light);
|
||||
DrawBar(GAPX, WIN_H - 58 + 1, WIN_W - GAPX - GAPX, 1, sc.dark);
|
||||
WriteText(GAPX, WIN_H - 48, 0x90, sc.work_text, T_SAVE_TO);
|
||||
WriteTextWithBg(GAPX + 108, WIN_H - 48, 0xD0, sc.work_text, #save_dir, sc.light);
|
||||
edit_box_draw stdcall (#ed);
|
||||
progressbar_draw stdcall(#pb);
|
||||
autoclose.draw(GAPX, WIN_H - 24);
|
||||
}
|
||||
|
||||
void StartDownloading()
|
||||
@@ -119,34 +164,31 @@ void StartDownloading()
|
||||
char get_url[URL_SIZE+33];
|
||||
if (http.transfer > 0) return;
|
||||
ResetDownloadSpeed();
|
||||
filepath = '\0';
|
||||
pb.back_color = 0xFFFfff;
|
||||
if (!strncmp(#uEdit,"https:",6)) {
|
||||
miniprintf(#get_url, "http://gate.aspero.pro/?site=%s", #uEdit);
|
||||
//notify("'HTTPS for download is not supported, trying to download the file via HTTP' -W");
|
||||
//miniprintf(#http_url, "http://%s", #uEdit+8);
|
||||
//if (!downloader.Start(#http_url)) {
|
||||
// notify("'Download failed.' -E");
|
||||
// StopDownloading();
|
||||
//}
|
||||
} else {
|
||||
strcpy(#get_url, #uEdit);
|
||||
//miniprintf(#get_url, "http://gate.aspero.pro/?site=%s", #uEdit);
|
||||
notify("'HTTPS for download temporary is not supported,\ntrying to download the file via HTTP' -W");
|
||||
miniprintf(#uEdit, "http://%s", #uEdit+8);
|
||||
}
|
||||
strcpy(#get_url, #uEdit);
|
||||
|
||||
if (http.get(#get_url)) {
|
||||
ed.border_color = 0xCACACA;
|
||||
EditBox_UpdateText(#ed, ed_disabled);
|
||||
pb.value = 0;
|
||||
pb.progress_color = PB_COL_PROGRESS;
|
||||
EditBox_UpdateText(#ed, ed_disabled);
|
||||
DrawWindow();
|
||||
} else {
|
||||
pb.progress_color = PB_COL_ERROR;
|
||||
notify(T_ERROR_STARTING_DOWNLOAD);
|
||||
StopDownloading();
|
||||
if (exit_param) ExitProcess();
|
||||
EditBox_UpdateText(#ed, ed_focus + ed_always_focus);
|
||||
DrawWindow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void DrawDownloadingProgress()
|
||||
{
|
||||
char bytes_received[70];
|
||||
char received_status[70];
|
||||
dword gotkb = http.content_received/1024;
|
||||
|
||||
EDI = http.content_received / 100;
|
||||
@@ -156,8 +198,20 @@ void DrawDownloadingProgress()
|
||||
pb.max = http.content_length / 100;
|
||||
progressbar_draw stdcall(#pb);
|
||||
CalculateDownloadSpeed();
|
||||
sprintf(#bytes_received, KB_RECEIVED, gotkb/1024, gotkb%1024/103, speed);
|
||||
WriteTextWithBg(GAPX, pb.top + 22, 0xD0, sc.work_text, #bytes_received, sc.work);
|
||||
|
||||
//sprintf gets too much space
|
||||
//sprintf(#received_status, T_STATUS_DOWNLOADING, gotkb/1024, gotkb%1024/103, speed);
|
||||
|
||||
strcpy(#received_status, T_STATUS_DL_P1);
|
||||
strcat(#received_status, itoa(gotkb/1024));
|
||||
strcat(#received_status, ".");
|
||||
strcat(#received_status, itoa(gotkb%1024/103));
|
||||
strcat(#received_status, T_STATUS_DL_P2);
|
||||
strcat(#received_status, itoa(speed));
|
||||
strcat(#received_status, T_STATUS_DL_P3);
|
||||
|
||||
active_status = #received_status;
|
||||
WriteTextWithBg(GAPX, pb.top + 22, 0xD0, sc.work_text, active_status, sc.work);
|
||||
}
|
||||
|
||||
void StopDownloading()
|
||||
@@ -165,10 +219,15 @@ void StopDownloading()
|
||||
http.stop();
|
||||
if (http.content_pointer) http.content_pointer = free(http.content_pointer);
|
||||
http.content_received = http.content_length = 0;
|
||||
}
|
||||
|
||||
ed.border_color = 0xFFFfff;
|
||||
EditBox_UpdateText(#ed, ed_focus);
|
||||
DrawWindow();
|
||||
void InitDownload()
|
||||
{
|
||||
pb.value = 0;
|
||||
pb.back_color = sc.light;
|
||||
pb.progress_color = PB_COL_PROGRESS;
|
||||
filepath = '\0';
|
||||
active_status = T_STATUS_READY;
|
||||
}
|
||||
|
||||
void MonitorProgress()
|
||||
@@ -188,22 +247,32 @@ void MonitorProgress()
|
||||
StopDownloading();
|
||||
StartDownloading();
|
||||
return;
|
||||
} else {
|
||||
CompleteDownload();
|
||||
}
|
||||
SaveFile(0);
|
||||
if (exit_param) ExitProcess();
|
||||
StopDownloading();
|
||||
DrawWindow();
|
||||
}
|
||||
}
|
||||
|
||||
void CompleteDownload()
|
||||
{
|
||||
SaveFile(0);
|
||||
if (autoclose.checked) ExitProcess();
|
||||
pb.value = pb.max;
|
||||
pb.progress_color = PB_COL_COMPLETE;
|
||||
StopDownloading();
|
||||
active_status = T_STATUS_COMPLETE;
|
||||
DrawWindow();
|
||||
}
|
||||
|
||||
void SaveFile(int attempt)
|
||||
{
|
||||
int i, fi=0;
|
||||
char notify_message[4296];
|
||||
char file_name[URL_SIZE+96];
|
||||
|
||||
|
||||
strcpy(#filepath, #save_dir);
|
||||
chrcat(#filepath, '/');
|
||||
chrcat(#filepath, '/'); ///need to check the last symbol
|
||||
|
||||
if (attempt > 9) {
|
||||
notify("'Too many saving attempts' -E");
|
||||
@@ -243,7 +312,8 @@ void SaveFile(int attempt)
|
||||
miniprintf(#notify_message, FILE_NOT_SAVED, #filepath);
|
||||
}
|
||||
|
||||
if (!exit_param) notify(#notify_message);
|
||||
if (!autoclose.checked) notify(#notify_message);
|
||||
|
||||
|
||||
if (!strcmpi(#filepath+strlen(#filepath)-4, ".zip"))
|
||||
|| (!strcmpi(#filepath+strlen(#filepath)-3, ".7z")) {
|
||||
@@ -257,11 +327,12 @@ void SaveFile(int attempt)
|
||||
void Unarchive(dword _arc)
|
||||
{
|
||||
char folder_name[4096];
|
||||
strcpy(#folder_name, "/tmp0/1/Downloads/");
|
||||
strcpy(#folder_name, #save_dir);
|
||||
strcpy(#folder_name, #filepath+strrchr(#filepath, '/'));
|
||||
folder_name[strlen(#folder_name)-4] = '\0';
|
||||
CreateDir(#folder_name);
|
||||
|
||||
//miniprintf2(#param, "-o \"%s\" -h \"%s", #folder_name, #filepath);
|
||||
strcpy(#param, "-o \"");
|
||||
strcat(#param, #folder_name);
|
||||
strcat(#param, "\" -h \"");
|
||||
|
@@ -11,9 +11,9 @@ TODO:
|
||||
http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334
|
||||
*/
|
||||
|
||||
#define ABOUT_TITLE "EOLITE 5.26"
|
||||
#define TITLE_EOLITE "Eolite File Manager 5.26"
|
||||
#define TITLE_KFM "Kolibri File Manager 2.26";
|
||||
#define ABOUT_TITLE "EOLITE 5.26a"
|
||||
#define TITLE_EOLITE "Eolite File Manager 5.26a"
|
||||
#define TITLE_KFM "Kolibri File Manager 2.26a";
|
||||
|
||||
#define MEMSIZE 1024 * 250
|
||||
#include "../lib/clipboard.h"
|
||||
@@ -211,6 +211,12 @@ void main()
|
||||
|
||||
mouse.get();
|
||||
|
||||
if (scroll_used) && (mouse.up) {
|
||||
scroll_used=false;
|
||||
DrawScroll(scroll_used);
|
||||
break;
|
||||
}
|
||||
|
||||
ProceedMouseGestures();
|
||||
|
||||
if (mouse.vert)
|
||||
@@ -278,7 +284,7 @@ void main()
|
||||
//Scrooll
|
||||
if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+18) && (mouse.y>files.y)
|
||||
&& (mouse.y<files.y+files.h-18) && (mouse.lkm) && (!scroll_used) {scroll_used=true; DrawScroll(scroll_used);}
|
||||
if (scroll_used) && (!mouse.key&MOUSE_LEFT) { scroll_used=false; DrawScroll(scroll_used); }
|
||||
|
||||
|
||||
if (scroll_used)
|
||||
{
|
||||
|
@@ -31,6 +31,7 @@ enum {
|
||||
for (i=0; i<MAX_PROCESS_COUNT; i++)
|
||||
{
|
||||
GetProcessInfo(#Process, i);
|
||||
if (EAX+1 >= i) break;
|
||||
if (Process.status_slot != TSTATE_FREE)
|
||||
&& (strcmpi(#Process.name, proc_name)==0)
|
||||
{
|
||||
@@ -46,6 +47,7 @@ enum {
|
||||
for (i=0; i<MAX_PROCESS_COUNT; i++)
|
||||
{
|
||||
GetProcessInfo(#Process, i);
|
||||
if (EAX+1 >= i) break;
|
||||
if (Process.status_slot != TSTATE_FREE)
|
||||
&& (strcmpi(#Process.name, proc_name)==0)
|
||||
count++;
|
||||
@@ -65,8 +67,8 @@ enum {
|
||||
for (i=0; i<MAX_PROCESS_COUNT; i++)
|
||||
{
|
||||
GetProcessInfo(#Process, i);
|
||||
if (EAX+1 >= i) break;
|
||||
if (Process.name)
|
||||
&& (!streq(#Process.name, "OS"))
|
||||
&& (Process.ID != Self.ID)
|
||||
KillProcess(Process.ID);
|
||||
}
|
||||
|
@@ -13,7 +13,8 @@
|
||||
#define FONT_HEIGHT 16
|
||||
|
||||
llist menu1;
|
||||
collection names=0;
|
||||
collection names=0; //contains all items: real items + separators
|
||||
collection real_names=0; //contains only real items without separators
|
||||
collection hotkeys=0;
|
||||
|
||||
int selected, win_x, win_y;
|
||||
@@ -69,8 +70,11 @@ void GetMenuItems(dword current_name)
|
||||
}
|
||||
}
|
||||
|
||||
hotkeys.add(hotkey+1);
|
||||
names.add(current_name);
|
||||
if (!streq(current_name, "-")) {
|
||||
real_names.add(current_name);
|
||||
hotkeys.add(hotkey+1);
|
||||
}
|
||||
|
||||
if (next_name) GetMenuItems(next_name+2);
|
||||
}
|
||||
@@ -84,6 +88,8 @@ int GetSeparatorsCount()
|
||||
return count;
|
||||
}
|
||||
|
||||
//this is a very dirty hack because I change
|
||||
//the real position of mouse.y to fictive one that handles separators
|
||||
int MoveMouseToHandleSeparators(int _mouse_y)
|
||||
{
|
||||
int i, item_y=menu1.y;
|
||||
@@ -103,12 +109,29 @@ int MoveMouseToHandleSeparators(int _mouse_y)
|
||||
return _mouse_y;
|
||||
}
|
||||
|
||||
dword inactive_background_color;
|
||||
dword active_background_color;
|
||||
dword active_top_border_color;
|
||||
dword inactive_text_shadow_color;
|
||||
bool skin_dark;
|
||||
void GetColors()
|
||||
{
|
||||
sc.get();
|
||||
inactive_background_color = MixColors(sc.work, 0xFFFfff,230);
|
||||
active_background_color = MixColors(sc.button, sc.work,230);
|
||||
active_top_border_color = MixColors(sc.line, sc.button,240);
|
||||
inactive_text_shadow_color = MixColors(sc.work,0xFFFfff,120);
|
||||
skin_dark = skin_is_dark();
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
proc_info Form;
|
||||
|
||||
if (!param) RunProgram("/sys/network/WebView", "http://board.kolibrios.org/viewtopic.php?f=24&t=4233#p74599");
|
||||
|
||||
GetColors();
|
||||
|
||||
GetMenuItems(#param);
|
||||
GetMenuWidths();
|
||||
|
||||
@@ -145,7 +168,6 @@ void main()
|
||||
|
||||
case evReDraw:
|
||||
DefineAndDrawWindow(win_x, win_y, menu1.w+4, menu1.h+4, 0x01, 0, 0, 0x01fffFFF);
|
||||
sc.get();
|
||||
Draw3DPopup(0,0,menu1.w+2,menu1.h+2);
|
||||
draw_list();
|
||||
}
|
||||
@@ -194,59 +216,63 @@ inline ProcessKeys()
|
||||
}
|
||||
}
|
||||
|
||||
void draw_item(int item_y, i, bool active)
|
||||
{
|
||||
dword name_color;
|
||||
dword hotkey_color;
|
||||
if (active) {
|
||||
hotkey_color = name_color = sc.button_text;
|
||||
DrawBar(menu1.x, item_y+1, menu1.w, ITEM_H-2, active_background_color);
|
||||
DrawBar(menu1.x, item_y, menu1.w, 1, active_top_border_color);
|
||||
DrawBar(menu1.x, item_y+ITEM_H-1, menu1.w, 1, sc.light);
|
||||
} else {
|
||||
name_color = sc.work_text;
|
||||
hotkey_color = sc.line;
|
||||
DrawBar(menu1.x, item_y, menu1.w, ITEM_H, inactive_background_color);
|
||||
if (!skin_dark) WriteText(TEXT_MARGIN+1, item_y + menu1.text_y +1, TEXT_FONT_TYPE,
|
||||
inactive_text_shadow_color, real_names.get(i));
|
||||
}
|
||||
WriteText(-strlen(hotkeys.get(i))*FONT_WIDTH + menu_w - TEXT_MARGIN,
|
||||
item_y + menu1.text_y, TEXT_FONT_TYPE, hotkey_color, hotkeys.get(i));
|
||||
WriteText(TEXT_MARGIN, item_y + menu1.text_y, TEXT_FONT_TYPE, name_color, real_names.get(i));
|
||||
}
|
||||
|
||||
|
||||
void draw_list()
|
||||
{
|
||||
int i, item_y=menu1.y, item_i=0;
|
||||
dword name_color;
|
||||
dword hotkey_color;
|
||||
#define MAX_ITEMS 128
|
||||
static int item_y_mas[MAX_ITEMS];
|
||||
static int init = true;
|
||||
static int old_y;
|
||||
|
||||
static dword inactive_background_color;
|
||||
static dword active_background_color;
|
||||
static dword active_top_border_color;
|
||||
static dword inactive_text_shadow_color;
|
||||
static bool skin_dark;
|
||||
|
||||
static bool colors_set;
|
||||
if (!colors_set) {
|
||||
colors_set = true;
|
||||
inactive_background_color = MixColors(sc.work, 0xFFFfff,230);
|
||||
active_background_color = MixColors(sc.button, sc.work,230);
|
||||
active_top_border_color = MixColors(sc.line, sc.button,240);
|
||||
inactive_text_shadow_color = MixColors(sc.work,0xFFFfff,120);
|
||||
skin_dark = skin_is_dark();
|
||||
}
|
||||
|
||||
for (i=0; i<menu1.count; i++;)
|
||||
if (init) for (i=0; (i<names.count) && (i<MAX_ITEMS); i++)
|
||||
{
|
||||
//here we init the list of "item_y_mas" and draw ALL items
|
||||
if (streq(names.get(i), "-")) {
|
||||
DrawBar(menu1.x, item_y+0, menu1.w, 1, inactive_background_color);
|
||||
DrawBar(menu1.x-1, item_y+1, menu1.w+1, 1, sc.dark);
|
||||
DrawBar(menu1.x, item_y+2, menu1.w, 1, sc.light);
|
||||
DrawBar(menu1.x, item_y+3, menu1.w, 1, inactive_background_color);
|
||||
//DrawBar(menu1.x, item_y+0, menu1.w, 4, inactive_background_color);
|
||||
//DrawBar(13, item_y+1, menu1.w-24, 1, sc.dark);
|
||||
//DrawBar(13, item_y+2, menu1.w-24, 1, sc.light);
|
||||
item_y += SEP_H;
|
||||
} else {
|
||||
item_y_mas[item_i] = item_y;
|
||||
if (item_i==menu1.cur_y) {
|
||||
hotkey_color = name_color = sc.button_text;
|
||||
DrawBar(menu1.x, item_y+1, menu1.w, ITEM_H-2, active_background_color);
|
||||
DrawBar(menu1.x, item_y, menu1.w, 1, active_top_border_color);
|
||||
DrawBar(menu1.x, item_y+ITEM_H-1, menu1.w, 1, sc.light);
|
||||
draw_item(item_y, item_i, true);
|
||||
} else {
|
||||
name_color = sc.work_text;
|
||||
hotkey_color = sc.line;
|
||||
DrawBar(menu1.x, item_y, menu1.w, ITEM_H, inactive_background_color);
|
||||
if (!skin_dark) WriteText(TEXT_MARGIN+1, item_y + menu1.text_y +1, TEXT_FONT_TYPE,
|
||||
inactive_text_shadow_color, names.get(i));
|
||||
draw_item(item_y, item_i, false);
|
||||
}
|
||||
WriteText(-strlen(hotkeys.get(i))*FONT_WIDTH + menu_w - TEXT_MARGIN,
|
||||
item_y + menu1.text_y, TEXT_FONT_TYPE, hotkey_color, hotkeys.get(i));
|
||||
WriteText(TEXT_MARGIN, item_y + menu1.text_y, TEXT_FONT_TYPE, name_color, names.get(i));
|
||||
item_y += ITEM_H;
|
||||
item_i++;
|
||||
}
|
||||
} else {
|
||||
//here we use "item_y_mas" and draw only changed items
|
||||
draw_item(item_y_mas[old_y], old_y, false);
|
||||
draw_item(item_y_mas[menu1.cur_y], menu1.cur_y, true);
|
||||
old_y = menu1.cur_y;
|
||||
}
|
||||
|
||||
init = false;
|
||||
if (selected) WriteText(5, selected-1*ITEM_H + menu1.y + menu1.text_y, TEXT_FONT_TYPE, 0xEE0000, "\x10"); // ?
|
||||
}
|
||||
|
||||
|
Binary file not shown.
@@ -28,7 +28,7 @@ IMPORT
|
||||
RW, Ini, EB := EditBox, Tabs, Toolbar, SB := StatusBar;
|
||||
|
||||
CONST
|
||||
HEADER = "CEdit (01-oct-2023)";
|
||||
HEADER = "CEdit (27-feb-2025)";
|
||||
|
||||
ShellFilter = "";
|
||||
EditFilter = "sh|inc|txt|asm|ob07|c|cpp|h|pas|pp|lua|ini|json";
|
||||
|
@@ -62,26 +62,43 @@ PROCEDURE drawTab (t: tTabs; id, x, y, width, height: INTEGER; s: ARRAY OF CHAR;
|
||||
CONST
|
||||
btnCloseSize = 14;
|
||||
VAR
|
||||
x2, y2, color, closeColor, closeForeColor, textColor: INTEGER;
|
||||
x2, y2, bgColor, closeColor, closeForeColor, textColor: INTEGER;
|
||||
left, top: INTEGER;
|
||||
BEGIN
|
||||
IF id = t.current THEN
|
||||
INC(height, curTabHeight - tabHeight);
|
||||
DEC(y, curTabHeight - tabHeight)
|
||||
INC(height, curTabHeight - tabHeight + 1);
|
||||
DEC(y, curTabHeight - tabHeight + 1)
|
||||
ELSE
|
||||
INC(height);
|
||||
DEC(y)
|
||||
END;
|
||||
color := K.colors.work;
|
||||
textColor := K.colors.work_text;
|
||||
DEC(x); INC(width);
|
||||
x2 := x + width - 1;
|
||||
y2 := y + height - 1;
|
||||
|
||||
K.DrawRect(x, y, width, height, color);
|
||||
K.DrawLine(x, y, x2, y, K.colors.line);
|
||||
K.DrawLine(x2, y, x2, y2, K.colors.line);
|
||||
//K.DrawRect(x, y + 2, width, height - 3, color); //seems to be unnecessary redraw
|
||||
K.DrawLine(x2, y + 1, x2, y2, K.colors.line);
|
||||
K.DrawLine(x2 - 1, y2, x, y2, K.colors.line);
|
||||
|
||||
IF id = t.current THEN
|
||||
bgColor := K.colors.light;
|
||||
K.DrawRect(x, y + 1, width - 2, height - 3, bgColor);
|
||||
K.DrawLine(x + 1, y, x2 - 1, y, K.colors.line);
|
||||
K.DrawLine(x2 + 1, y + 2, x2 + 1, y2 - 1, K.colors.dark);
|
||||
K.PutPixel(x, y, K.colors.dark);
|
||||
K.PutPixel(x + 1, y + 1, K.colors.dark);
|
||||
K.PutPixel(x2, y, K.colors.dark);
|
||||
K.PutPixel(x2 - 1, y + 1, K.colors.dark)
|
||||
ELSE
|
||||
bgColor := K.colors.work;
|
||||
K.DrawLine(x, y + 1, x2 - 1, y + 1, K.colors.light);
|
||||
K.DrawLine(x, y, x2, y, K.colors.line)
|
||||
END;
|
||||
|
||||
top := y + 4;
|
||||
|
||||
top := y + 3;
|
||||
IF id # t.current THEN
|
||||
K.DrawLine(x2 - 1, y2, x, y2, K.colors.line);
|
||||
closeColor := K.colors.button;
|
||||
closeForeColor := K.colors.button_text
|
||||
ELSE
|
||||
@@ -89,14 +106,15 @@ BEGIN
|
||||
closeColor := btnCloseColor;
|
||||
closeForeColor := 0FFFFFFH
|
||||
END;
|
||||
K.DrawLine(x, y2, x, y, K.colors.line);
|
||||
K.DrawLine(x, y2, x, y + 1, K.colors.line);
|
||||
|
||||
K.DrawText866bk(x + K.fontWidth + K.fontWidth DIV 2, y + (height - K.fontHeight) DIV 2, textColor, color, s);
|
||||
y := y + 1;
|
||||
K.DrawText866bk(x + K.fontWidth + K.fontWidth DIV 2, y + (height - K.fontHeight) DIV 2, textColor, bgColor, s);
|
||||
IF modified THEN
|
||||
K.DrawText866bk(x + K.fontWidth DIV 2, y + (height - K.fontHeight) DIV 2, modifColor, color, "*")
|
||||
K.DrawText866bk(x + K.fontWidth DIV 2, y + (height - K.fontHeight) DIV 2, modifColor, bgColor, "*")
|
||||
END;
|
||||
K.CreateButton(id + ORD({30}) + btnID, x + 1, y - 1, width - 1, height - 1, 0, "");
|
||||
left := x + width - btnCloseSize - 5;
|
||||
K.CreateButton(id + ORD({30}) + btnID, x + 1, y, width - 3, height - 3, 0, "");
|
||||
left := x + width - btnCloseSize - 6;
|
||||
K.CreateButton(id + btnClose, left, top, btnCloseSize, btnCloseSize, closeColor, "");
|
||||
K.DrawLine(left + 5, top + 4, left + btnCloseSize - 4, top + btnCloseSize - 5, closeForeColor);
|
||||
K.DrawLine(left + 4, top + 4, left + btnCloseSize - 4, top + btnCloseSize - 4, closeForeColor);
|
||||
@@ -137,7 +155,7 @@ VAR
|
||||
BEGIN
|
||||
y := t.y;
|
||||
x := t.x;
|
||||
K.DrawRect(x, y - (curTabHeight - tabHeight), t.width + (2*scrWidth + 2), t.height + (curTabHeight - tabHeight) - 1, K.colors.work);
|
||||
K.DrawRect(x, y - (curTabHeight - tabHeight) - 1, t.width + (2*scrWidth + 2), t.height + (curTabHeight - tabHeight), K.colors.work);
|
||||
IF Width(t, 0, t.strings.count - 1) > t.width THEN
|
||||
INC(x, 2*scrWidth);
|
||||
K.DeleteButton(btnLeft);
|
||||
|
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
## Flappy Bird for KolibriOS
|
||||
## Floppy Bird for KolibriOS
|
||||
|
||||
* [Forum topic](http://board.kolibrios.org/viewtopic.php?f=41&t=4471) <br>
|
||||
* [Directory in official KolibriOS SVN repository](http://websvn.kolibrios.org/listing.php?repname=Kolibri+OS&path=%2Fprograms%2Fgames%2Fflappybird%2F&#a1f3183a01c0fffa57fec6704cbfc0b3d)
|
||||
* [Directory in official KolibriOS GIT repository] kolibrios\programs\games\floppybird
|
||||
|
||||
<img src="https://i.ibb.co/kMsv8pB/menu.jpg" alt="Screenshot" width="400"> <img src="https://i.ibb.co/7NP1yHZ/screen1.jpg" alt="Screenshot" width="400">
|
||||
<img src="https://i.ibb.co/Y2FwxDG/screen2.jpg" alt="Screenshot" width="400"> <img src="https://i.ibb.co/3W8yCYn/gameover.jpg" alt="Screenshot" width="400">
|
BIN
programs/games/floppybird/Release/floppybird
Normal file
BIN
programs/games/floppybird/Release/floppybird
Normal file
Binary file not shown.
@@ -8,7 +8,7 @@
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{0556BA3E-9447-4000-8613-91AD1CD750D7}</ProjectGuid>
|
||||
<RootNamespace>flappybird</RootNamespace>
|
||||
<RootNamespace>floppybird</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
@@ -57,7 +57,7 @@
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="flappybird.cpp" />
|
||||
<ClCompile Include="floppybird.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="smalllibc\smalllibc.vcxproj">
|
@@ -15,7 +15,7 @@
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="flappybird.cpp">
|
||||
<ClCompile Include="floppybird.cpp">
|
||||
<Filter>Файлы исходного кода</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
@@ -3,7 +3,7 @@
|
||||
#include "images.hpp"
|
||||
|
||||
//Global const strings
|
||||
const char HEADER_STRING[] = "Flappy bird";
|
||||
const char HEADER_STRING[] = "Floppy bird";
|
||||
const char CONTROL_STRING[] = "SPACEBAR TO JUMP";
|
||||
const char GAMEOVER_STRING[] = "GAMEOVER";
|
||||
const char ANY_KEY_STRING[] = "Press any key for restart";
|
@@ -1,6 +1,6 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "flappybird", "flappybird.vcxproj", "{0556BA3E-9447-4000-8613-91AD1CD750D7}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "floppybird", "floppybird.vcxproj", "{0556BA3E-9447-4000-8613-91AD1CD750D7}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{0D291390-1953-4E1F-BBE2-57F12AFF3214} = {0D291390-1953-4E1F-BBE2-57F12AFF3214}
|
||||
EndProjectSection
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user