Compare commits
244 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d08e94331a | |||
| 893bc8a636 | |||
| ae758389f5 | |||
| 6e5f7642db | |||
| 17f5260023 | |||
| 4ebfb645d3 | |||
| d464b7e770 | |||
| 62d0e86f3b | |||
| 618b0389ff | |||
| e8d095ed88 | |||
| 828df445c2 | |||
| 9b450ff4aa | |||
| 0e186843d4 | |||
| 1a3c1e7173 | |||
| 1b83f4fc4c | |||
| cd8cfe2630 | |||
| 53e1345728 | |||
| 6e8c9103e0 | |||
| 680b915efe | |||
| ef96c855ed | |||
| 779ea18d4e | |||
| f76cb1f9b6 | |||
| d70d88845a | |||
| 23a502d761 | |||
| 76b9c0b0d9 | |||
| 68f0454682 | |||
| d486c6b33a | |||
| 310999dcc4 | |||
| bb769cbf85 | |||
| 9b9f10b231 | |||
| ca99b669f2 | |||
| fac0425ac0 | |||
| 175bd31489 | |||
| e1a30a4f14 | |||
| 8235572f7b | |||
| 641603693f | |||
| a016346e4e | |||
| e7698cbfb6 | |||
| 27c1f44930 | |||
| 86c685ed4b | |||
| e05b57a95e | |||
| a0e4bce98a | |||
| 2cda4a9682 | |||
| f08fe1f2a0 | |||
| f7a26ece7a | |||
| f5735e54f4 | |||
| 8a0329cee8 | |||
| a4f3f3545a | |||
| e0dc42d79b | |||
| 096cca20cb | |||
| db529bc1a8 | |||
| 3e1c8e9ec8 | |||
| e94fb7d5ef | |||
| bd548e0373 | |||
| 6ad8a8b6cc | |||
| 48626298ff | |||
| 5cbac1a231 | |||
| af62e17863 | |||
| f8255f0d77 | |||
| 826b43e9c2 | |||
| 1434d2fd98 | |||
| 2a43081ba6 | |||
| 31cd7329df | |||
| a9136a1684 | |||
| bb6d4072a1 | |||
| cb37ae10cb | |||
| bdc12a2f00 | |||
| 430843a83f | |||
| 96cc7e7af4 | |||
| 54500c5100 | |||
| 4b1d291f17 | |||
| c0e0827513 | |||
| 87adc0a1df | |||
| 0cd3b0c5b1 | |||
| 33acd57c58 | |||
| d6a1b56b7f | |||
| 7bcb400040 | |||
| 398dcbb13d | |||
| 9ca506ed15 | |||
| 31880f3ebe | |||
| 27a26b669f | |||
| 3c1e533f95 | |||
| f7a3e34289 | |||
| a591b2b25a | |||
| c948b48eb2 | |||
| 0b4562bac4 | |||
| de6724017d | |||
| f305d3425d | |||
| b5981a39dc | |||
| e9e9ebb4c8 | |||
| 4c359e42ce | |||
| 3238f9f485 | |||
| 289eabf8a4 | |||
| e818e2167f | |||
| 42c205be32 | |||
| 0253ec8753 | |||
| 91dc4d8cad | |||
| 6f2a947deb | |||
| 735b86c476 | |||
| cc1034d849 | |||
| 06c1497624 | |||
| b52da3e1c3 | |||
| f9425f5bd0 | |||
| 864210679c | |||
| 7f8e028ffd | |||
| e9b6cf3fc9 | |||
| 4658a928d4 | |||
| b6a5171cd9 | |||
| 668fd4deeb | |||
| dd9a7b92d8 | |||
| 1173ca7b26 | |||
| ccd0c183ec | |||
| f065cc6e69 | |||
| f1b99bad84 | |||
| c580d4ac5b | |||
| 17c33521c3 | |||
| f6395c9501 | |||
| 000288ce8b | |||
| 10d9e9f36f | |||
| f4c4a7e29a | |||
| bc5b2f884a | |||
| d0de275ab3 | |||
| a83f6f7e4b | |||
| d54c802297 | |||
| 29c42738b8 | |||
| c17d1a57a3 | |||
| 7b0867a6cf | |||
| c65da0d96f | |||
| a0c01e204e | |||
| d50642ce1f | |||
| 8d235ce49b | |||
| e423bfb2d1 | |||
| 1483ec8462 | |||
| e8121c66f8 | |||
| 6aff7b8c02 | |||
| e0d724286f | |||
| 03dcc2051f | |||
| 03111f5e99 | |||
| 4cc716458a | |||
| aef0b3a6a7 | |||
| 6181afd33d | |||
| c112873dbd | |||
| a7ada1c586 | |||
| 11562988b1 | |||
|
2dfb3ddff3
|
|||
| 7e63294b5e | |||
| c148987224 | |||
| 4550e15838 | |||
| cc867a0bb8 | |||
| 16a0ef9543 | |||
| 51b150c9aa | |||
| c18da5afae | |||
| cd1c2ce969 | |||
| d7795a8961 | |||
| b948491fb3 | |||
| 03cfdeb50f | |||
| e4cd8a4d74 | |||
| 75b6663ce0 | |||
| df0c5d8f48 | |||
| fcb9f49785 | |||
| d6c44c6570 | |||
| b8a1487bab | |||
| 00c2cfbcfc | |||
| c398a2bbf4 | |||
| 58cf25fe43 | |||
| 8da45bab3e | |||
| 5abc319817 | |||
| ff625706c0 | |||
| 81dafb3025 | |||
| 58e2d0b844 | |||
| 7720e38868 | |||
| 02b2395ef1 | |||
| 293e1d195a | |||
| 5cf6c3baf9 | |||
| 8376fed87d | |||
| 22d572f789 | |||
| af41fe4aa7 | |||
| b1a1691b84 | |||
| 92f9d76f14 | |||
| 32466e31f4 | |||
| 63cd6f0ac8 | |||
| 4fcc17675c | |||
| 4e903ce12b | |||
| bfdb42c91f | |||
| 55d641b0da | |||
| 0e7cff0715 | |||
| 4d30fd7a2b | |||
| 292bd1d739 | |||
| 1a756358f5 | |||
| 009c0d0519 | |||
| bab6267412 | |||
| 72196f42de | |||
| f1e958af41 | |||
| 78de535233 | |||
| e353771faa | |||
| 714cc0a65c | |||
| 9357a21169 | |||
| 75e732a437 | |||
| afd07534ab | |||
| 20aba254bc | |||
| fbd99c82a4 | |||
| 784b02b4a4 | |||
| 7a2e48bed2 | |||
| 31ca1c76bb | |||
| 99ddd88ff8 | |||
| 4f1a8ef9a1 | |||
| 93f12c7673 | |||
| 3eb02af5fd | |||
| 83d8146ad1 | |||
| 1974f45c50 | |||
| 36ce6f0b74 | |||
| 4701a15222 | |||
| 61277f8822 | |||
| abb7442055 | |||
| 81b15607dc | |||
| 30d8d45326 | |||
| 9a23c001e1 | |||
| 64b7372624 | |||
| d04420295a | |||
| 2935b29fd8 | |||
| 505f741fbd | |||
| 5a852ebdfb | |||
| 026d2aba40 | |||
| 9b08b20cc3 | |||
| 38fdd13e0c | |||
| d9679f5f81 | |||
| 92ea2a97eb | |||
| 98cccc438c | |||
| 79d9f42085 | |||
| b39150ecea | |||
| 1a40899780 | |||
| 25b79ca6d1 | |||
| 2e3548d92a | |||
| ed8e4ecf33 | |||
| 6a9608c7a4 | |||
| d8c6274d19 | |||
| 1df7b2fd4c | |||
| 9001dbc1b4 | |||
| c11c7922bd | |||
| 739facfeca | |||
| 8c9a971e2c | |||
| 5aa17d5823 | |||
| 4d6ef342e1 | |||
| 8e5b315fd4 |
@@ -0,0 +1,214 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# SPDX-FileCopyrightText: 2025 KolibriOS team
|
||||
|
||||
name: 'Build system'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
codestyle:
|
||||
name: "Check kernel codestyle"
|
||||
runs-on: kolibri-toolchain
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check codestyle
|
||||
run: |
|
||||
find kernel/trunk -iname '*.asm' -or -iname '*.inc' -exec bash -c "echo {}; cat {} | perl .gitea/workflows/checker.pl" \;
|
||||
|
||||
build:
|
||||
name: 'Build'
|
||||
runs-on: kolibri-toolchain
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get describe
|
||||
id: vars
|
||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITEA_OUTPUT
|
||||
|
||||
- name: Get toolchain hash
|
||||
id: toolchain-hash
|
||||
run: |
|
||||
a=$(find ${{ gitea.workspace }}/programs/develop/cmm/ -type f -print0 | sort -z | xargs -0 sha1sum)
|
||||
b=$(sha1sum ${{ gitea.workspace }}/programs/develop/ktcc/bin/kos32-tcc)
|
||||
c=$(find ${{ gitea.workspace }}/programs/develop/objconv/ -type f -print0 | sort -z | xargs -0 sha1sum)
|
||||
d=$(find ${{ gitea.workspace }}/programs/other/kpack/kerpack_linux/ -type f -print0 | sort -z | xargs -0 sha1sum)
|
||||
e=$(find ${{ gitea.workspace }}/programs/other/kpack/linux/ -type f -print0 | sort -z | xargs -0 sha1sum)
|
||||
f=$(find ${{ gitea.workspace }}/programs/develop/clink/ -type f -print0 | sort -z | xargs -0 sha1sum)
|
||||
echo hash=$(echo $a $b $c $d $e $f | sha1sum | awk '{print $1}') >> $GITEA_OUTPUT
|
||||
|
||||
- name: Restore toolchain
|
||||
id: cache-toolchain
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: /home/autobuild
|
||||
key: kolibri-toolchain-${{ steps.toolchain-hash.outputs.hash }}
|
||||
|
||||
- name: Build and install C--
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd ${{ gitea.workspace }}/programs/develop/cmm/
|
||||
make -f Makefile.lin32
|
||||
chmod +x c--
|
||||
mv c-- /home/autobuild/tools/win32/bin/c--
|
||||
cp ${{ gitea.workspace }}/programs/cmm/c--/c--.ini /home/autobuild/tools/win32/bin/c--.ini
|
||||
make -f Makefile.lin32 clean
|
||||
|
||||
- name: Install TCC
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cp ${{ gitea.workspace }}/programs/develop/ktcc/bin/kos32-tcc /home/autobuild/tools/win32/bin/kos32-tcc
|
||||
chmod +x /home/autobuild/tools/win32/bin/kos32-tcc
|
||||
|
||||
- name: Build and install objconv
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd ${{ gitea.workspace }}/programs/develop/objconv/
|
||||
g++ -o /home/autobuild/tools/win32/bin/objconv -O2 *.cpp
|
||||
chmod +x /home/autobuild/tools/win32/bin/objconv
|
||||
|
||||
- name: Build and install kerpack and kpack
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
export PATH=/home/autobuild/tools/win32/bin:$PATH
|
||||
cd ${{ gitea.workspace }}/programs/other/kpack/kerpack_linux/
|
||||
make
|
||||
chmod +x kerpack
|
||||
chmod +x kpack
|
||||
mv kerpack /home/autobuild/tools/win32/bin/.
|
||||
mv kpack /home/autobuild/tools/win32/bin/.
|
||||
|
||||
- name: Build and install clink
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd ${{ gitea.workspace }}/programs/develop/clink
|
||||
gcc main.c -o clink
|
||||
chmod a+x clink
|
||||
mv clink /home/autobuild/tools/win32/bin/clink
|
||||
|
||||
- name: Prepare cache folder
|
||||
run: |
|
||||
rm /home/autobuild
|
||||
mv /root/autobuild /home/autobuild
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
|
||||
- name: Save toolchain
|
||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: /home/autobuild
|
||||
key: kolibri-toolchain-${{ steps.toolchain-hash.outputs.hash }}
|
||||
|
||||
- name: Configure tup
|
||||
run: |
|
||||
cd ${{ gitea.workspace }}
|
||||
|
||||
export ROOT=${{ gitea.workspace }}
|
||||
echo "CONFIG_KPACK_CMD= && kpack --nologo %o" | tee en_US.config ru_RU.config es_ES.config
|
||||
echo "CONFIG_KERPACK_CMD= && kerpack %o" | tee -a en_US.config ru_RU.config es_ES.config
|
||||
echo "CONFIG_PESTRIP_CMD= && EXENAME=%o fasm $ROOT/data/common/pestrip.asm %o" | tee -a en_US.config ru_RU.config es_ES.config
|
||||
echo "CONFIG_NO_MSVC=full" | tee -a en_US.config ru_RU.config es_ES.config
|
||||
echo "CONFIG_INSERT_REVISION_ID=1" | tee -a en_US.config ru_RU.config es_ES.config
|
||||
|
||||
tup -v
|
||||
tup init
|
||||
|
||||
# Configure en_US
|
||||
echo "CONFIG_LANG=en_US" >> en_US.config
|
||||
echo "CONFIG_BUILD_TYPE=en_US" >> en_US.config
|
||||
tup variant en_US.config
|
||||
|
||||
# Configure ru_RU
|
||||
echo "CONFIG_LANG=ru_RU" >> ru_RU.config
|
||||
echo "CONFIG_BUILD_TYPE=ru_RU" >> ru_RU.config
|
||||
tup variant ru_RU.config
|
||||
|
||||
# Configure es_ES
|
||||
echo "CONFIG_LANG=es_ES" >> es_ES.config
|
||||
echo "CONFIG_BUILD_TYPE=es_ES" >> es_ES.config
|
||||
tup variant es_ES.config
|
||||
|
||||
# -------------------------- Build en_US ------------------------- #
|
||||
- name: (en_US) Build KolibriOS
|
||||
run: |
|
||||
export PATH=/home/autobuild/tools/win32/bin:$PATH
|
||||
source kos32-export-env-vars ${{ gitea.workspace }}
|
||||
tup build-en_US
|
||||
|
||||
- name: (en_US) Upload floppy image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-en_US-${{ steps.vars.outputs.sha_short }}.img
|
||||
path: build-en_US/data/kolibri.img
|
||||
|
||||
- name: (en_US) Upload CD image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-en_US-${{ steps.vars.outputs.sha_short }}.iso
|
||||
path: build-en_US/data/kolibri.iso
|
||||
|
||||
- name: (en_US) Upload raw image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-en_US-${{ steps.vars.outputs.sha_short }}.raw
|
||||
path: build-en_US/data/kolibri.raw
|
||||
|
||||
# -------------------------- Build ru_RU ------------------------- #
|
||||
- name: (ru_RU) Build KolibriOS
|
||||
run: |
|
||||
export PATH=/home/autobuild/tools/win32/bin:$PATH
|
||||
source kos32-export-env-vars ${{ gitea.workspace }}
|
||||
tup build-ru_RU
|
||||
|
||||
- name: (ru_RU) Upload floppy image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-ru_RU-${{ steps.vars.outputs.sha_short }}.img
|
||||
path: build-ru_RU/data/kolibri.img
|
||||
|
||||
- name: (ru_RU) Upload CD image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-ru_RU-${{ steps.vars.outputs.sha_short }}.iso
|
||||
path: build-ru_RU/data/kolibri.iso
|
||||
|
||||
- name: (ru_RU) Upload raw image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-ru_RU-${{ steps.vars.outputs.sha_short }}.raw
|
||||
path: build-ru_RU/data/kolibri.raw
|
||||
|
||||
# -------------------------- Build es_ES ------------------------- #
|
||||
- name: (es_ES) Build KolibriOS
|
||||
run: |
|
||||
export PATH=/home/autobuild/tools/win32/bin:$PATH
|
||||
source kos32-export-env-vars ${{ gitea.workspace }}
|
||||
tup build-es_ES
|
||||
|
||||
- name: (es_ES) Upload floppy image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-es_ES-${{ steps.vars.outputs.sha_short }}.img
|
||||
path: build-es_ES/data/kolibri.img
|
||||
|
||||
- name: (es_ES) Upload CD image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-es_ES-${{ steps.vars.outputs.sha_short }}.iso
|
||||
path: build-es_ES/data/kolibri.iso
|
||||
|
||||
- name: (es_ES) Upload raw image
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: kolibrios-es_ES-${{ steps.vars.outputs.sha_short }}.raw
|
||||
path: build-es_ES/data/kolibri.raw
|
||||
@@ -0,0 +1,82 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# SPDX-FileCopyrightText: 2025 KolibriOS Team
|
||||
|
||||
# Written by mxlgv (Maxim Logaev)
|
||||
# Installation steps described by maxcodehack (Maxim Kuzmitsky)
|
||||
|
||||
set -e
|
||||
|
||||
print_msg(){
|
||||
echo -e "\e[34m$1\e[0m"
|
||||
}
|
||||
|
||||
print_ok(){
|
||||
echo -e "\e[32m$1\e[0m"
|
||||
}
|
||||
|
||||
print_err(){
|
||||
echo -e "\e[31m$1\e[0m"
|
||||
exit
|
||||
}
|
||||
|
||||
check_utils(){
|
||||
printf "%s: " $1
|
||||
if command -v $1 &> /dev/null
|
||||
then
|
||||
print_ok "ok\r"
|
||||
else
|
||||
print_err "no\r"
|
||||
fi
|
||||
}
|
||||
|
||||
print_msg "Checking utilities..."
|
||||
|
||||
check_utils wget
|
||||
check_utils 7z
|
||||
|
||||
print_msg "Create the /home/autobuild folder..."
|
||||
sudo rm -rf ~/autobuild /home/autobuild
|
||||
mkdir -p ~/autobuild/tools
|
||||
sudo ln -sf ~/autobuild /home/autobuild
|
||||
print_ok "Successfully!"
|
||||
|
||||
print_msg "Download the kos32-gcc toolchain..."
|
||||
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/x86_64-linux-kos32-5.4.0.7z -O ~/autobuild/tools/kos32-toolchain.7z
|
||||
print_ok "Successfully!"
|
||||
|
||||
print_msg "Extracting files ..."
|
||||
cd ~/autobuild/tools/
|
||||
7z x -y kos32-toolchain.7z
|
||||
rm -rf kos32-toolchain.7z
|
||||
print_ok "Successfully!"
|
||||
|
||||
print_msg "Downloading libisl..."
|
||||
cd /tmp
|
||||
sudo wget http://board.kolibrios.org/download/file.php?id=8301libisl.so.10.2.2.7z -O /tmp/libisl.so.10.2.2.7z
|
||||
sudo 7z x -y libisl.so.10.2.2.7z
|
||||
|
||||
if ! [ -d /usr/lib/x86_64-linux-gnu/ ]; then
|
||||
sudo mkdir -p /usr/lib/x86_64-linux-gnu/
|
||||
fi
|
||||
|
||||
print_msg "Fixing libisl..."
|
||||
sudo mv /tmp/libisl.so.10.2.2 /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2
|
||||
sudo ln -sf /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2 /usr/lib/x86_64-linux-gnu/libisl.so.10
|
||||
sudo ln -sf /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2 /usr/lib/libisl.so.10
|
||||
sudo chmod go-w /usr/lib/x86_64-linux-gnu/libisl.so.10
|
||||
sudo chmod go-w /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2
|
||||
print_ok "Successfully!"
|
||||
|
||||
print_msg "Fixing libmpfr..."
|
||||
sudo ln -sf /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
|
||||
sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4
|
||||
print_ok "Successfully!"
|
||||
|
||||
if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
|
||||
export PATH=$PATH:/home/autobuild/tools/win32/bin
|
||||
print_msg "Adding '/home/autobuild/tools/win32/bin' to '~/.bashrc'"
|
||||
echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc
|
||||
fi
|
||||
print_ok "Installation was successful!"
|
||||
@@ -9,3 +9,9 @@ ehthumbs_vista.db
|
||||
._*
|
||||
programs/cmm/cmm.code-workspace
|
||||
programs/cmm/menu/.gitignore
|
||||
|
||||
.tup/
|
||||
|
||||
/build-*/
|
||||
/*.config
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[submodule "programs/develop/oberon07"]
|
||||
path = programs/develop/oberon07
|
||||
url = https://github.com/AntKrotov/oberon-07-compiler.git
|
||||
@@ -0,0 +1,71 @@
|
||||
# Contributing guide
|
||||
|
||||
## Type of contributing
|
||||
|
||||
There are two main types of contributions accepted to the main KolibriOS repository:
|
||||
|
||||
- Submitting issues about problems in the project
|
||||
- Submitting code to the project via pull requests
|
||||
|
||||
Both these types are 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 Requests 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 your changes
|
||||
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 need to be corrected (if requested) and merged into the project.
|
||||
|
||||
## Commit style
|
||||
|
||||
### Message pattern
|
||||
|
||||
The commit message should look like this:
|
||||
|
||||
```test
|
||||
Commit message header
|
||||
|
||||
Commit message body, if needed
|
||||
```
|
||||
|
||||
- Commit message header and body should reflect changes made in commit
|
||||
- Commit message body should be separated from the header by one empty line
|
||||
|
||||
### Length
|
||||
|
||||
Maximum number of characters in a commit header is **72** (standard for **Git**). Also, **72** is the maximum length of a line in a commit body.
|
||||
|
||||
### Multiple authors
|
||||
|
||||
If you are making a commit together with another developer, you need to add:
|
||||
|
||||
```
|
||||
Co-authored-by: ANOTHER-NAME <ANOTHER-NAME@EXAMPLE.COM>
|
||||
```
|
||||
|
||||
to the end commit message body on a new line.
|
||||
|
||||
### Merge commits
|
||||
|
||||
> [!WARNING]
|
||||
> Merge commits are **prohibited** in the project
|
||||
|
||||
Use **rebase** to keep your branch up to date.
|
||||
|
||||
## Conclusion
|
||||
|
||||
We hope this small instructions will help you to get familiar with KolibriOS contribution rules and inspire you to participate in the life of our project.
|
||||
@@ -1,347 +1,338 @@
|
||||
|
||||
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.
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
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
|
||||
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 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
|
||||
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
|
||||
|
||||
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) <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
|
||||
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, 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) 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.
|
||||
|
||||
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 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 Lesser General
|
||||
Public License instead of this License.
|
||||
@@ -0,0 +1,26 @@
|
||||
# KolibriOS
|
||||
|
||||
[](./COPYING.TXT)
|
||||
[](https://git.kolibrios.org/KolibriOS/kolibrios/actions)
|
||||
|
||||
KolibriOS is a hobby operating system for x86-compatible computers, which is currently being developed by a small but passionate team of enthusiasts.
|
||||
|
||||
Its kernel, most drivers, and many programs are written entirely in [FASM](https://flatassembler.net/) assembly language, making them 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.
|
||||
|
||||
## Website
|
||||
|
||||
Visit the [official KolibriOS website](https://kolibrios.org) for more information, downloads, and documentation.
|
||||
|
||||
## 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.
|
||||
@@ -1,3 +1,6 @@
|
||||
; SPDX-License-Identifier: NOASSERTION
|
||||
;
|
||||
|
||||
format coff
|
||||
use32 ; Tell compiler to use 32 bit instructions
|
||||
|
||||
@@ -7,8 +10,8 @@ include '../../../programs/proc32.inc'
|
||||
include '../../../programs/macros.inc'
|
||||
purge section,mov,add,sub
|
||||
|
||||
include '../../../programs/develop/libraries/box_lib/trunk/box_lib.mac'
|
||||
include '../../../programs/system/run/trunk/txtbut.inc'
|
||||
include '../../../programs/develop/libraries/box_lib/box_lib.mac'
|
||||
include '../../../programs/system/run/txtbut.inc'
|
||||
include '../../../programs/dll.inc'
|
||||
|
||||
public init_boxlib as '_kolibri_boxlib_init'
|
||||
@@ -159,8 +162,8 @@ public path_show_draw as '_path_show_draw'
|
||||
|
||||
public fb_draw_panel as '_filebrowse_draw'
|
||||
public fb_mouse as '_filebrowse_mouse'
|
||||
public fb_key as '_filebrowse_key'
|
||||
|
||||
public fb_key as '_filebrowse_key'
|
||||
|
||||
public ted_but_sumb_upper as '_ted_but_sumb_upper'
|
||||
public ted_but_sumb_lover as '_ted_but_sumb_lover'
|
||||
public ted_but_convert_by_table as '_ted_but_convert_by_table'
|
||||
|
||||
@@ -31,8 +31,8 @@ import lib_libini, \
|
||||
LIBINI_enum_keys , 'ini_enum_keys' , \
|
||||
LIBINI_get_str , 'ini_get_str' , \
|
||||
LIBINI_get_int , 'ini_get_int' , \
|
||||
LIBINI_get_color , 'int_get_color' , \
|
||||
LIBINI_get_shortcut , 'int_get_shortcut' , \
|
||||
LIBINI_get_color , 'ini_get_color' , \
|
||||
LIBINI_get_shortcut , 'ini_get_shortcut' , \
|
||||
LIBINI_set_str , 'ini_set_str' , \
|
||||
LIBINI_set_int , 'ini_set_int' , \
|
||||
LIBINI_set_color , 'ini_set_color'
|
||||
|
||||
@@ -1,152 +1,153 @@
|
||||
// BOXLIB example (scrollbar, progressbar)
|
||||
// ! without kolibri_gui !
|
||||
// Writed by maxcodehack
|
||||
// TCC version is in /programs/develop/ktcc/trunk/samples
|
||||
#include <kos32sys.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/// BOXLIB
|
||||
// Modified from C_Layer
|
||||
// C_Layer variant I don't like
|
||||
extern int kolibri_boxlib_init(void);
|
||||
typedef struct __attribute__ ((__packed__)) {
|
||||
uint16_t xsize;
|
||||
uint16_t xpos;
|
||||
uint16_t ysize;
|
||||
uint16_t ypos;
|
||||
uint32_t btn_height;
|
||||
uint32_t type;
|
||||
uint32_t max_area;
|
||||
uint32_t cur_area;
|
||||
uint32_t position;
|
||||
uint32_t back_color;
|
||||
uint32_t front_color;
|
||||
uint32_t line_color;
|
||||
uint32_t redraw;
|
||||
uint16_t delta;
|
||||
uint16_t delta2;
|
||||
uint16_t r_size_x;
|
||||
uint16_t r_start_x;
|
||||
uint16_t r_size_y;
|
||||
uint16_t r_start_y;
|
||||
uint32_t m_pos;
|
||||
uint32_t m_pos2;
|
||||
uint32_t m_keys;
|
||||
uint32_t run_size;
|
||||
uint32_t position2;
|
||||
uint32_t work_size;
|
||||
uint32_t all_redraw;
|
||||
uint32_t ar_offset;
|
||||
} scrollbar;
|
||||
|
||||
extern void (*scrollbar_h_draw)(scrollbar*) __attribute__((__stdcall__));
|
||||
extern void (*scrollbar_h_mouse)(scrollbar*) __attribute__((__stdcall__));
|
||||
extern void (*scrollbar_v_draw)(scrollbar*) __attribute__((__stdcall__));
|
||||
extern void (*scrollbar_v_mouse)(scrollbar*) __attribute__((__stdcall__));
|
||||
|
||||
typedef struct {
|
||||
unsigned int value;
|
||||
unsigned int left;
|
||||
unsigned int top;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
unsigned int style;
|
||||
unsigned int min;
|
||||
unsigned int max;
|
||||
unsigned int back_color;
|
||||
unsigned int progress_color;
|
||||
unsigned int frame_color;
|
||||
} progressbar;
|
||||
|
||||
extern void (*progressbar_draw)(progressbar *) __attribute__((__stdcall__));
|
||||
extern void (*progressbar_progress)(progressbar *) __attribute__((__stdcall__));
|
||||
/// BOXLIB
|
||||
|
||||
|
||||
#define evReDraw 1
|
||||
#define evKey 2
|
||||
#define evButton 3
|
||||
#define evExit 4
|
||||
#define evDesktop 5
|
||||
#define evMouse 6
|
||||
#define evIPC 7
|
||||
#define evNetwork 8
|
||||
#define evDebug 9
|
||||
|
||||
#define WIN_W 640
|
||||
#define WIN_H 563
|
||||
|
||||
uint32_t wheels;
|
||||
char* title = "Boxlib example";
|
||||
int win_bg_color = 0x858585;
|
||||
scrollbar scroll = {15, WIN_W - 26, WIN_H - 29, 0, 0, 2, 215, 15, 0,0x707070,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
||||
progressbar pg = {0, 10, 10, 270, 35, 1, 0, 200, 0xB4B4B4, 0x2728FF, 0xA9A9A9};
|
||||
|
||||
void draw_window(){
|
||||
BeginDraw();
|
||||
DrawWindow(215,100,WIN_W,WIN_H,title,win_bg_color,0x34);
|
||||
scrollbar_v_draw(&scroll);
|
||||
progressbar_draw(&pg);
|
||||
EndDraw();
|
||||
}
|
||||
|
||||
//// EVENTMASK
|
||||
#define EVM_REDRAW 1
|
||||
#define EVM_KEY 2
|
||||
#define EVM_BUTTON 4
|
||||
#define EVM_EXIT 8
|
||||
#define EVM_BACKGROUND 16
|
||||
#define EVM_MOUSE 32
|
||||
#define EVM_IPC 64
|
||||
#define EVM_STACK 128
|
||||
#define EVM_DEBUG 256
|
||||
#define EVM_STACK2 512
|
||||
#define EVM_MOUSE_FILTER 0x80000000
|
||||
#define EVM_CURSOR_FILTER 0x40000000
|
||||
//// EVENTMASK
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
kolibri_boxlib_init();
|
||||
|
||||
set_wanted_events_mask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
|
||||
while(1)
|
||||
{
|
||||
switch(GetOsEvent())
|
||||
{
|
||||
case evButton:
|
||||
if (get_os_button() == 1) exit(0);
|
||||
break;
|
||||
|
||||
case evKey:
|
||||
get_key();
|
||||
break;
|
||||
|
||||
case evReDraw:
|
||||
draw_window();
|
||||
break;
|
||||
case evMouse:
|
||||
scrollbar_v_mouse(&scroll);
|
||||
|
||||
// Wheel scrolling
|
||||
// Quite unstable
|
||||
/*
|
||||
int scroll_strong = 40;
|
||||
wheels = GetMouseWheels();
|
||||
if(wheels & 0xFFFF)
|
||||
{
|
||||
if((short)wheels > 0 && scroll.position < scroll.max_area - scroll_strong)
|
||||
scroll.position += scroll_strong;
|
||||
else if((short)wheels < 0 && scroll.position > 0)
|
||||
scroll.position -= scroll_strong;
|
||||
|
||||
scrollbar_v_draw(&scroll);
|
||||
}
|
||||
*/
|
||||
pg.value = scroll.position;
|
||||
progressbar_draw(&pg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// BOXLIB example (scrollbar, progressbar)
|
||||
// ! without kolibri_gui !
|
||||
// Writed by maxcodehack
|
||||
// TCC version is in /programs/develop/ktcc/libc.obj/samples/clayer/boxlib.c
|
||||
|
||||
#include <kos32sys.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/// BOXLIB
|
||||
// Modified from C_Layer
|
||||
// C_Layer variant I don't like
|
||||
extern int kolibri_boxlib_init(void);
|
||||
typedef struct __attribute__ ((__packed__)) {
|
||||
uint16_t xsize;
|
||||
uint16_t xpos;
|
||||
uint16_t ysize;
|
||||
uint16_t ypos;
|
||||
uint32_t btn_height;
|
||||
uint32_t type;
|
||||
uint32_t max_area;
|
||||
uint32_t cur_area;
|
||||
uint32_t position;
|
||||
uint32_t back_color;
|
||||
uint32_t front_color;
|
||||
uint32_t line_color;
|
||||
uint32_t redraw;
|
||||
uint16_t delta;
|
||||
uint16_t delta2;
|
||||
uint16_t r_size_x;
|
||||
uint16_t r_start_x;
|
||||
uint16_t r_size_y;
|
||||
uint16_t r_start_y;
|
||||
uint32_t m_pos;
|
||||
uint32_t m_pos2;
|
||||
uint32_t m_keys;
|
||||
uint32_t run_size;
|
||||
uint32_t position2;
|
||||
uint32_t work_size;
|
||||
uint32_t all_redraw;
|
||||
uint32_t ar_offset;
|
||||
} scrollbar;
|
||||
|
||||
extern void (*scrollbar_h_draw)(scrollbar*) __attribute__((__stdcall__));
|
||||
extern void (*scrollbar_h_mouse)(scrollbar*) __attribute__((__stdcall__));
|
||||
extern void (*scrollbar_v_draw)(scrollbar*) __attribute__((__stdcall__));
|
||||
extern void (*scrollbar_v_mouse)(scrollbar*) __attribute__((__stdcall__));
|
||||
|
||||
typedef struct {
|
||||
unsigned int value;
|
||||
unsigned int left;
|
||||
unsigned int top;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
unsigned int style;
|
||||
unsigned int min;
|
||||
unsigned int max;
|
||||
unsigned int back_color;
|
||||
unsigned int progress_color;
|
||||
unsigned int frame_color;
|
||||
} progressbar;
|
||||
|
||||
extern void (*progressbar_draw)(progressbar *) __attribute__((__stdcall__));
|
||||
extern void (*progressbar_progress)(progressbar *) __attribute__((__stdcall__));
|
||||
/// BOXLIB
|
||||
|
||||
|
||||
#define evReDraw 1
|
||||
#define evKey 2
|
||||
#define evButton 3
|
||||
#define evExit 4
|
||||
#define evDesktop 5
|
||||
#define evMouse 6
|
||||
#define evIPC 7
|
||||
#define evNetwork 8
|
||||
#define evDebug 9
|
||||
|
||||
#define WIN_W 640
|
||||
#define WIN_H 563
|
||||
|
||||
uint32_t wheels;
|
||||
char* title = "Boxlib example";
|
||||
int win_bg_color = 0x858585;
|
||||
scrollbar scroll = {15, WIN_W - 26, WIN_H - 29, 0, 0, 2, 215, 15, 0,0x707070,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
||||
progressbar pg = {0, 10, 10, 270, 35, 1, 0, 200, 0xB4B4B4, 0x2728FF, 0xA9A9A9};
|
||||
|
||||
void draw_window(){
|
||||
BeginDraw();
|
||||
DrawWindow(215,100,WIN_W,WIN_H,title,win_bg_color,0x34);
|
||||
scrollbar_v_draw(&scroll);
|
||||
progressbar_draw(&pg);
|
||||
EndDraw();
|
||||
}
|
||||
|
||||
//// EVENTMASK
|
||||
#define EVM_REDRAW 1
|
||||
#define EVM_KEY 2
|
||||
#define EVM_BUTTON 4
|
||||
#define EVM_EXIT 8
|
||||
#define EVM_BACKGROUND 16
|
||||
#define EVM_MOUSE 32
|
||||
#define EVM_IPC 64
|
||||
#define EVM_STACK 128
|
||||
#define EVM_DEBUG 256
|
||||
#define EVM_STACK2 512
|
||||
#define EVM_MOUSE_FILTER 0x80000000
|
||||
#define EVM_CURSOR_FILTER 0x40000000
|
||||
//// EVENTMASK
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
kolibri_boxlib_init();
|
||||
|
||||
set_wanted_events_mask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
|
||||
while(1)
|
||||
{
|
||||
switch(GetOsEvent())
|
||||
{
|
||||
case evButton:
|
||||
if (get_os_button() == 1) exit(0);
|
||||
break;
|
||||
|
||||
case evKey:
|
||||
get_key();
|
||||
break;
|
||||
|
||||
case evReDraw:
|
||||
draw_window();
|
||||
break;
|
||||
case evMouse:
|
||||
scrollbar_v_mouse(&scroll);
|
||||
|
||||
// Wheel scrolling
|
||||
// Quite unstable
|
||||
/*
|
||||
int scroll_strong = 40;
|
||||
wheels = GetMouseWheels();
|
||||
if(wheels & 0xFFFF)
|
||||
{
|
||||
if((short)wheels > 0 && scroll.position < scroll.max_area - scroll_strong)
|
||||
scroll.position += scroll_strong;
|
||||
else if((short)wheels < 0 && scroll.position > 0)
|
||||
scroll.position -= scroll_strong;
|
||||
|
||||
scrollbar_v_draw(&scroll);
|
||||
}
|
||||
*/
|
||||
pg.value = scroll.position;
|
||||
progressbar_draw(&pg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -864,7 +864,7 @@ void ff_set_mpeg4_time(MpegEncContext * s){
|
||||
}
|
||||
|
||||
static void mpeg4_encode_gop_header(MpegEncContext * s){
|
||||
int hours, minutes, seconds;
|
||||
int64_t hours, minutes, seconds;
|
||||
int64_t time;
|
||||
|
||||
put_bits(&s->pb, 16, 0);
|
||||
|
||||
@@ -2035,8 +2035,13 @@ static int vp3_decode_frame(AVCodecContext *avctx,
|
||||
if (ff_thread_get_buffer(avctx, &s->current_frame, AV_GET_BUFFER_FLAG_REF) < 0)
|
||||
goto error;
|
||||
|
||||
if (!s->edge_emu_buffer)
|
||||
if (!s->edge_emu_buffer) {
|
||||
s->edge_emu_buffer = av_malloc(9*FFABS(s->current_frame.f->linesize[0]));
|
||||
if (!s->edge_emu_buffer) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
if (s->keyframe) {
|
||||
if (!s->theora)
|
||||
|
||||
@@ -2580,8 +2580,10 @@ static int http_receive_data(HTTPContext *c)
|
||||
} else if (c->buffer_ptr - c->buffer >= 2 &&
|
||||
!memcmp(c->buffer_ptr - 1, "\r\n", 2)) {
|
||||
c->chunk_size = strtol(c->buffer, 0, 16);
|
||||
if (c->chunk_size == 0) // end of stream
|
||||
if (c->chunk_size <= 0) { // end of stream or invalid chunk size
|
||||
c->chunk_size = 0;
|
||||
goto fail;
|
||||
}
|
||||
c->buffer_ptr = c->buffer;
|
||||
break;
|
||||
} else if (++loop_run > 10)
|
||||
@@ -2603,6 +2605,7 @@ static int http_receive_data(HTTPContext *c)
|
||||
/* end of connection : close it */
|
||||
goto fail;
|
||||
else {
|
||||
av_assert0(len <= c->chunk_size);
|
||||
c->chunk_size -= len;
|
||||
c->buffer_ptr += len;
|
||||
c->data_count += len;
|
||||
|
||||
@@ -267,8 +267,12 @@ static int cine_read_header(AVFormatContext *avctx)
|
||||
|
||||
/* parse image offsets */
|
||||
avio_seek(pb, offImageOffsets, SEEK_SET);
|
||||
for (i = 0; i < st->duration; i++)
|
||||
for (i = 0; i < st->duration; i++) {
|
||||
if (avio_feof(pb))
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
av_add_index_entry(st, avio_rl64(pb), i, 0, 0, AVINDEX_KEYFRAME);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ typedef struct {
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t cpu_usage; // CPU usage (cycles per secondgoes)
|
||||
uint32_t cpu_usage; // CPU usage (cycles per second)
|
||||
uint16_t pos_in_window_stack; // position of the thread window in the window stack
|
||||
uint16_t slot_num_window_stack; // slot number in window stack
|
||||
uint16_t __reserved1; // reserved
|
||||
@@ -240,6 +240,30 @@ typedef union {
|
||||
};
|
||||
} ksys_signal_info_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t a, b, c, d;
|
||||
uint8_t debug_label;
|
||||
uint8_t ABI_low;
|
||||
uint16_t ABI_high;
|
||||
uint32_t commit_id;
|
||||
uint16_t reserved;
|
||||
uint16_t commit_count;
|
||||
} ksys_kernel_version_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t total_ram_pages;
|
||||
uint32_t free_ram_pages;
|
||||
uint32_t page_faults;
|
||||
uint32_t kernel_heap_size;
|
||||
uint32_t kernel_heap_free;
|
||||
uint32_t kernel_heap_total_blocks;
|
||||
uint32_t kernel_heap_free_blocks;
|
||||
uint32_t kernel_heap_largest_free_block;
|
||||
uint32_t kernel_heap_largest_alloc_block;
|
||||
|
||||
} ksys_memory_info_t;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef rgb_t ksys_bitmap_t;
|
||||
@@ -785,6 +809,40 @@ KOSAPI void _ksys_shutdown(uint32_t shd_param)
|
||||
asm_inline("int $0x40" ::"a"(18), "b"(9), "c"(shd_param));
|
||||
}
|
||||
|
||||
/*====== Function 18, subfunction 10 - minimize current window. ========*/
|
||||
|
||||
KOSAPI void _ksys_minimize_current_window(void)
|
||||
{
|
||||
asm_inline(
|
||||
"int $0x40" ::"a"(18), "b"(10));
|
||||
}
|
||||
|
||||
/*========== Function 18, subfunction 13 - get kernel version. =========*/
|
||||
|
||||
KOSAPI int _ksys_get_kernel_version(ksys_kernel_version_t* info)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(18), "b"(13), "c"(info)
|
||||
: "memory");
|
||||
return err;
|
||||
}
|
||||
|
||||
/*========= Function 18, subfunction 15 - move mouse to center. ========*/
|
||||
|
||||
KOSAPI int _ksys_center_mouse(void)
|
||||
{
|
||||
int a;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(a)
|
||||
: "a"(18), "b"(15));
|
||||
return a;
|
||||
}
|
||||
|
||||
/*========= Function 18, subfunction 16 - get size of free RAM. ========*/
|
||||
|
||||
KOSAPI size_t _ksys_get_ram_size(void)
|
||||
@@ -812,9 +870,15 @@ KOSAPI size_t _ksys_get_full_ram(void)
|
||||
/*===================== Function 18, subfunction 18 ====================*/
|
||||
/*============= Terminate process/thread by the identifier. ============*/
|
||||
|
||||
KOSAPI void _ksys_kill_by_pid(uint32_t PID)
|
||||
KOSAPI int _ksys_kill_by_pid(uint32_t PID)
|
||||
{
|
||||
asm_inline("int $0x40" ::"a"(18), "b"(18), "c"(PID));
|
||||
int val;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(val)
|
||||
: "a"(18), "b"(18), "c"(PID)
|
||||
);
|
||||
return val;
|
||||
}
|
||||
|
||||
/*========= Fuction 18, subfunction 19 - get/set mouse settings. ========*/
|
||||
@@ -843,6 +907,19 @@ KOSAPI uint32_t _ksys_set_mouse_settings(ksys_mouse_settings_t settings, uint32_
|
||||
|
||||
#define _ksys_set_mouse_pos(X, Y) _ksys_set_mouse_settings(KSYS_MOUSE_SET_POS, X * 65536 + Y)
|
||||
|
||||
/*===================== Function 18, subfunction 20 ====================*/
|
||||
|
||||
KOSAPI int _ksys_get_memory_info(ksys_memory_info_t* info)
|
||||
{
|
||||
int total;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(total)
|
||||
: "a"(18), "b"(20), "c"(info)
|
||||
: "memory");
|
||||
return total;
|
||||
}
|
||||
|
||||
/*===================== Function 18, subfunction 21 ====================*/
|
||||
/*=====Get the slot number of the process / thread by identifier.. =====*/
|
||||
|
||||
@@ -856,6 +933,223 @@ KOSAPI int _ksys_get_thread_slot(int PID)
|
||||
return val;
|
||||
}
|
||||
|
||||
/*===================== Function 18, subfunction 22 ====================*/
|
||||
|
||||
typedef enum KSYS_WIN_REMOTE_CONTROL {
|
||||
WIN_MINIMIZE_BY_SLOT = 0,
|
||||
WIN_MINIMIZE_BY_PID = 1,
|
||||
WIN_RESTORE_BY_SLOT = 2,
|
||||
WIN_RESTORE_BY_PID = 3
|
||||
} ksys_win_remote_control_t;
|
||||
|
||||
KOSAPI int _ksys_window_remote_control(ksys_win_remote_control_t type, uint32_t param)
|
||||
{
|
||||
int result;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(result)
|
||||
: "a"(18), "b"(22), "c"(type), "d"(param));
|
||||
return result;
|
||||
}
|
||||
|
||||
/*===================== Function 18, subfunction 23 ====================*/
|
||||
|
||||
KOSAPI int _ksys_minimize_all_windows(void)
|
||||
{
|
||||
int count;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(count)
|
||||
: "a"(18), "b"(23));
|
||||
return count;
|
||||
}
|
||||
|
||||
/*===================== Function 18, subfunction 24 ====================*/
|
||||
|
||||
KOSAPI void _ksys_set_draw_limits(unsigned int x, unsigned int y)
|
||||
{
|
||||
asm_inline(
|
||||
"int $0x40" ::"a"(18), "b"(24), "c"(x), "d"(y));
|
||||
}
|
||||
|
||||
/*===================== Function 18, subfunction 25 ====================*/
|
||||
|
||||
typedef enum KSYS_ZPOS {
|
||||
KSYS_ZPOS_DESKTOP = -2,
|
||||
KSYS_ZPOS_ALWAYS_BACK = -1,
|
||||
KSYS_ZPOS_NORMAL = 0,
|
||||
KSYS_ZPOS_ALWAYS_TOP = 1
|
||||
} ksys_zpos_t;
|
||||
|
||||
/*=========== Function 18, subfunction 25, subsubfunction 1 ============*/
|
||||
|
||||
KOSAPI ksys_zpos_t _ksys_get_window_zposition(int32_t pid)
|
||||
{
|
||||
ksys_zpos_t result_eax;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(result_eax)
|
||||
: "a"(18), "b"(25), "c"(1), "d"(pid));
|
||||
|
||||
return result_eax;
|
||||
}
|
||||
|
||||
/*=========== Function 18, subfunction 25, subsubfunction 2 ============*/
|
||||
|
||||
KOSAPI int _ksys_set_window_zposition(int32_t pid, ksys_zpos_t position)
|
||||
{
|
||||
int err;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(18), "b"(25), "c"(2), "d"(pid), "S"(position));
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
/*==================== Function 21, subfunction 2 =====================*/
|
||||
|
||||
typedef enum KSYS_KEYBOARD_LAYOUT {
|
||||
KSYS_KEYBOARD_LAYOUT_NORMAL = 1,
|
||||
KSYS_KEYBOARD_LAYOUT_SHIFT = 2,
|
||||
KSYS_KEYBOARD_LAYOUT_ALT = 3
|
||||
} ksys_keyboard_layout_t;
|
||||
|
||||
KOSAPI int _ksys_set_keyboard_layout(ksys_keyboard_layout_t mode, const char* table)
|
||||
{
|
||||
int err;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(21), "b"(2), "c"(mode), "d"(table));
|
||||
return err;
|
||||
}
|
||||
|
||||
typedef enum KSYS_LANG {
|
||||
KSYS_LANG_ENG = 1,
|
||||
KSYS_LANG_FI = 2,
|
||||
KSYS_LANG_GER = 3,
|
||||
KSYS_LANG_RU = 4
|
||||
} ksys_lang_t;
|
||||
|
||||
KOSAPI int _ksys_set_keyboard_lang(ksys_lang_t lang)
|
||||
{
|
||||
int err;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(21), "b"(2), "c"(9), "d"(lang));
|
||||
return err;
|
||||
}
|
||||
|
||||
/*==================== Function 21, subfunction 5 =====================*/
|
||||
|
||||
KOSAPI int _ksys_set_lang(ksys_lang_t lang)
|
||||
{
|
||||
int err;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(21), "b"(5), "c"(lang));
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
/*==================== Function 21, subfunction 11 =====================*/
|
||||
|
||||
KOSAPI int _ksys_allow_HD(int param)
|
||||
{
|
||||
int err;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(21), "b"(11), "c"(param));
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
/*==================== Function 21, subfunction 12 =====================*/
|
||||
|
||||
KOSAPI int _ksys_allow_PCI(int param)
|
||||
{
|
||||
int err;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(21), "b"(12), "c"(param));
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
typedef enum KSYS_SET_TIME_ERR {
|
||||
KSYS_SET_TIME_OK = 0,
|
||||
KSYS_SET_TIME_WRONG_PARAM = 1,
|
||||
KSYS_SET_TIME_CMOS = 2
|
||||
} ksys_set_time_err;
|
||||
|
||||
/*============================ Function 22 ============================*/
|
||||
|
||||
KOSAPI ksys_set_time_err _ksys_set_time(ksys_time_bcd_t time)
|
||||
{
|
||||
ksys_set_time_err err;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(22), "b"(0), "c"(time));
|
||||
return err;
|
||||
}
|
||||
|
||||
KOSAPI ksys_set_time_err _ksys_set_date(ksys_date_bcd_t date)
|
||||
{
|
||||
ksys_set_time_err err;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(err)
|
||||
: "a"(22), "b"(1), "c"(date));
|
||||
return err;
|
||||
}
|
||||
|
||||
/*========= Function 26, subfunction 2 - get keyboard layout. ==========*/
|
||||
|
||||
KOSAPI int _ksys_keyboard_layout(ksys_keyboard_layout_t layout, unsigned char* buf)
|
||||
{
|
||||
int err;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
:"=a"(err)
|
||||
:"a"(26), "b"(2), "c"(layout), "d"(buf) : "memory");
|
||||
return err;
|
||||
}
|
||||
|
||||
KOSAPI ksys_lang_t _ksys_get_keyboard_lang(void)
|
||||
{
|
||||
ksys_lang_t lang;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(lang)
|
||||
: "a"(26), "b"(2), "c"(9));
|
||||
return lang;
|
||||
}
|
||||
|
||||
/*======= Function 26, subfunction 5 - get the system language. ========*/
|
||||
|
||||
KOSAPI ksys_lang_t _ksys_get_lang(void)
|
||||
{
|
||||
ksys_lang_t lang;
|
||||
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(lang)
|
||||
: "a"(26), "b"(5));
|
||||
|
||||
return lang;
|
||||
}
|
||||
|
||||
/*============= Function 23 - wait for event with timeout. =============*/
|
||||
|
||||
KOSAPI uint32_t _ksys_wait_event_timeout(uint32_t timeout)
|
||||
@@ -893,6 +1187,30 @@ KOSAPI uint64_t _ksys_get_ns_count(void)
|
||||
return val;
|
||||
}
|
||||
|
||||
/*===================== Function 26, subfunction 11 ====================*/
|
||||
|
||||
KOSAPI int _ksys_get_HD(void)
|
||||
{
|
||||
int val;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(val)
|
||||
: "a"(26), "b"(11));
|
||||
return val;
|
||||
}
|
||||
|
||||
/*===================== Function 26, subfunction 12 ====================*/
|
||||
|
||||
KOSAPI int _ksys_get_PCI(void)
|
||||
{
|
||||
int val;
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(val)
|
||||
: "a"(26), "b"(12));
|
||||
return val;
|
||||
}
|
||||
|
||||
/*=================== Function 29 - get system date. ===================*/
|
||||
|
||||
KOSAPI ksys_date_bcd_t _ksys_get_date(void)
|
||||
@@ -1101,7 +1419,7 @@ KOSAPI void _ksys_get_system_colors(ksys_colors_table_t* color_table)
|
||||
|
||||
/*============ Function 48, subfunction 4 - get skin height. ===========*/
|
||||
|
||||
KOSAPI uint32_t _ksys_get_skin_height()
|
||||
KOSAPI uint32_t _ksys_get_skin_height(void)
|
||||
{
|
||||
unsigned height;
|
||||
asm_inline(
|
||||
@@ -1179,7 +1497,7 @@ KOSAPI int _ksys_clip_set(int n, char* buffer)
|
||||
/*===================== Function 54, subfunction 3 =====================*/
|
||||
/*================ Delete the last slot in the clipboard ===============*/
|
||||
|
||||
KOSAPI int _ksys_clip_pop()
|
||||
KOSAPI int _ksys_clip_pop(void)
|
||||
{
|
||||
unsigned val;
|
||||
asm_inline(
|
||||
@@ -1192,7 +1510,7 @@ KOSAPI int _ksys_clip_pop()
|
||||
/*===================== Function 54, subfunction 4 =====================*/
|
||||
/*===================== Alarm reset the lock buffer ====================*/
|
||||
|
||||
KOSAPI int _ksys_clip_unlock()
|
||||
KOSAPI int _ksys_clip_unlock(void)
|
||||
{
|
||||
unsigned val;
|
||||
asm_inline(
|
||||
|
||||
@@ -5,7 +5,7 @@ diamond'ом. Она используется в проектах xonix и fara
|
||||
Kolibri-программу. Утилита всего лишь изменяет формат exe-шника, так что,
|
||||
чтобы действительно получилась работающая программа, нужно выполнение
|
||||
определённых условий. Понятно, что требуется, чтобы программа общалась
|
||||
с внешним миром средствами Колибри (т.е. int 0x40) и не использовала
|
||||
с внешним миром средствами КолибриОС (т.е. int 0x40) и не использовала
|
||||
никаких Windows-библиотек. Помимо этого, требуется также, чтобы программа
|
||||
размещалась по нулевому адресу (ключ линкера "/base:0"). Как писать такие
|
||||
программы - смотрите в уже упомянутых проектах xonix и fara.
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
if tup.getconfig("NO_FASM") ~= "" then return end
|
||||
|
||||
SOURCES = {
|
||||
"src/*.asm",
|
||||
extra_inputs = {
|
||||
"src/*.inc"
|
||||
}
|
||||
}
|
||||
|
||||
OBJS = {
|
||||
extra_inputs = {
|
||||
"symbols"
|
||||
}
|
||||
}
|
||||
|
||||
tup.append_table(OBJS, tup.foreach_rule(SOURCES, "fasm %f %o", "%B.o"))
|
||||
|
||||
tup.rule(OBJS, "ar -cvrs %o %f && objcopy -O elf32-i386 --redefine-syms=symbols %o", {"libsound.a", "<libsound.a>"})
|
||||
@@ -1,4 +1,4 @@
|
||||
[icons16]
|
||||
[icons18]
|
||||
<dir>=0
|
||||
<up>=1
|
||||
<lot>=20
|
||||
@@ -162,6 +162,7 @@ min=23
|
||||
nes=23
|
||||
sna=23
|
||||
snes=23
|
||||
rom=23
|
||||
bat=24
|
||||
sh=24
|
||||
sys=25
|
||||
|
||||
@@ -68,6 +68,7 @@ sna=/kolibrios/emul/e80/e80
|
||||
gb=/kolibrios/emul/gameboy
|
||||
gbc=/kolibrios/emul/gameboy
|
||||
min=/kolibrios/emul/pokemini
|
||||
rom=/kolibrios/emul/uxn
|
||||
nc=/kolibrios/utils/cnc_editor/cnc_editor
|
||||
kf=/sys/KF_VIEW
|
||||
csv=/sys/table
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
ENGLISH=DESCSSE.TXT
|
||||
POLISH=DESCSSP.TXT
|
||||
RUSSIAN=DESCSSR.TXT
|
||||
HUNGARY=DESCSSE.TXT
|
||||
UKRAIN=DESCSSE.TXT
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
ENGLISH=NDNPASSE.TXT
|
||||
POLISH=NDNPASSP.TXT
|
||||
RUSSIAN=NDNPASSR.TXT
|
||||
HUNGARY=NDNPASSE.TXT
|
||||
UKRAIN=NDNPASSE.TXT
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.Description=Screen Resolution Changer
|
||||
.Author=NDN Team
|
||||
.Version=1.0
|
||||
|
||||
Change Screen Resolution
|
||||
Is this screen resolution correct?
|
||||
@@ -0,0 +1,6 @@
|
||||
.Description=Zmieф rozdzielczoШЖ ekranu
|
||||
.Author=NDN Team
|
||||
.Version=1.0
|
||||
|
||||
Zmieф rozdzielczoШЖ ekranu
|
||||
Czy ta rozdzielczoШЖ jest prawidИowa?
|
||||
@@ -0,0 +1,6 @@
|
||||
.Description=Изменение разрешения экрана
|
||||
.Author=NDN Team
|
||||
.Version=1.0
|
||||
|
||||
Изменение разрешения экрана
|
||||
Это правильное разрешение экрана?
|
||||
@@ -0,0 +1,5 @@
|
||||
ENGLISH=SCRRES-E.TXT
|
||||
POLISH=SCRRES-P.TXT
|
||||
RUSSIAN=SCRRES-R.TXT
|
||||
HUNGARY=SCRRES-E.TXT
|
||||
UKRAIN=SCRRES-E.TXT
|
||||
@@ -0,0 +1,5 @@
|
||||
ENGLISH=SUDOKUE.TXT
|
||||
POLISH=SUDOKUP.TXT
|
||||
RUSSIAN=SUDOKUR.TXT
|
||||
HUNGARY=SUDOKUE.TXT
|
||||
UKRAIN=SUDOKUE.TXT
|
||||
@@ -0,0 +1,12 @@
|
||||
.Description=Sudoku
|
||||
.Author=CandyMan
|
||||
.Version=1.0
|
||||
|
||||
~C~lear
|
||||
~S~olve
|
||||
~Z~ero
|
||||
~F1~ Help
|
||||
~Esc~ Close
|
||||
~Ins~ Clear
|
||||
~F5~ Solve
|
||||
+ ~Space~ Zero
|
||||
@@ -0,0 +1,12 @@
|
||||
.Description=Sudoku
|
||||
.Author=CandyMan
|
||||
.Version=1.0
|
||||
|
||||
~W~yczyШЖ
|
||||
~R~ozwiе╛
|
||||
~Z~eruj
|
||||
~F1~ Pomoc
|
||||
~Esc~ Zamknij
|
||||
~Ins~ WyczyШЖ
|
||||
~F5~ Rozwiе╛
|
||||
+ ~Space~ Zeruj
|
||||
@@ -0,0 +1,12 @@
|
||||
.Description=Sudoku
|
||||
.Author=CandyMan
|
||||
.Version=1.0
|
||||
|
||||
~О~чистить
|
||||
~Р~ешать
|
||||
~Н~оль
|
||||
~F1~ Помощь
|
||||
~Esc~ Закрыть
|
||||
~Ins~ Очистить
|
||||
~F5~ Решить
|
||||
+ ~Space~ Ноль
|
||||
@@ -1,3 +1,5 @@
|
||||
ENGLISH=TETRIS-E.TXT
|
||||
POLISH=TETRIS-P.TXT
|
||||
RUSSIAN=TETRIS-R.TXT
|
||||
HUNGARY=TETRIS-E.TXT
|
||||
UKRAIN=TETRIS-E.TXT
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
ENGLISH=UCHRMAPE.TXT
|
||||
POLISH=UCHRMAPP.TXT
|
||||
RUSSIAN=UCHRMAPR.TXT
|
||||
HUNGARY=UCHRMAPE.TXT
|
||||
UKRAIN=UCHRMAPE.TXT
|
||||
@@ -0,0 +1,11 @@
|
||||
.Description=Unicode Character Map
|
||||
.Author=CandyMan
|
||||
.Version=1.0
|
||||
|
||||
Unicode Character Map
|
||||
|
||||
~F1~ Help
|
||||
~Esc~ Close
|
||||
~Ins~ Insert
|
||||
~Enter~ Insert and close
|
||||
+ ~Enter~ Insert
|
||||
@@ -0,0 +1,11 @@
|
||||
.Description=Tablica znakвw unicode
|
||||
.Author=CandyMan
|
||||
.Version=1.0
|
||||
|
||||
Tablica znakвw unicode
|
||||
|
||||
~F1~ Pomoc
|
||||
~Esc~ Zamknij
|
||||
~Ins~ Wstaw
|
||||
~Enter~ Wstaw i zamknij
|
||||
+ ~Enter~ Wstaw
|
||||
@@ -0,0 +1,11 @@
|
||||
.Description=Таблица символов Юникода
|
||||
.Author=CandyMan
|
||||
.Version=1.0
|
||||
|
||||
Таблица символов Юникода
|
||||
|
||||
~F1~ Помощь
|
||||
~Esc~ Закрыть
|
||||
~Ins~ Вставить
|
||||
~Enter~ Закрыть и вставить
|
||||
+ ~Enter~ Вставить
|
||||
@@ -1,3 +1,88 @@
|
||||
2024-??-?? (v3.00.0011)
|
||||
fix: hotkeys are visible after pressing Ctrl-Minus in panel
|
||||
fix: NDN can load "PAQ" font files (in DOS version)
|
||||
new: windows 11 ver 23H2 detection
|
||||
fix: check "Size<0" in unpack diskette images
|
||||
fix: help navigator loader stack modified
|
||||
fix: sometimes crash mode switch (F4 hot key) in file viewer
|
||||
fix: Shift-F10 in panel & Alt-C/N editor not worked as he should in russian language
|
||||
fix: 1st page is remapped in 64-bit D3X dos extender (DOS64 version)
|
||||
fix: show valid XMS handle number used by D3X in XMS statistics
|
||||
fix: in Windows version PATH environment variable is searched to run program from command line in new window
|
||||
new: DOS64 version now support files greather than 2GB (seek via Int21h.7142)
|
||||
new: added cpuid instructions feature flags
|
||||
new: added two "fake" drives ("." - go to up path, "\" - go to root path) on panel's drive line
|
||||
new: hotkeys: F7 - Do copy, F8 - Do paste, all times from FileAttribute change dialog (Ctrl-[Shift]-A)
|
||||
fix: some hotkeys in build editor fixed
|
||||
new: additional option, find/replace string in editor inside/outside of quote
|
||||
new: %Z in FormatStr() means ASCIIZ/PChar
|
||||
new: cmd line param /CODEPAGE:N sets starting CodePage to N in unicode Windows version
|
||||
fix: in unpack diskette images files with starting character #5 in name are now supported
|
||||
fix: in unicode Windows version chars with Alt pressed are correctly received
|
||||
fix: selected text search in editor improved/fixed
|
||||
new: append string to all lines in block (added to editor menu)
|
||||
new: remove string from end of lines in block (added to editor menu)
|
||||
fix: auto Highlight of View support Unicode chars (char>#255)
|
||||
fix: not quoted text detection in resources and RCP compiler
|
||||
fix: MultiDialog has now visible title (bug in RCP compiler)
|
||||
new: string "." in help files (TVHC - *.htx) will be justified to right by multi characters "."
|
||||
fix: the best player's name and Top 10 players in games are now visible as unicode string
|
||||
new: load font from current file in panel (8x16) also in KolibriOS/MenuetOS/SigmaOS
|
||||
new: Alt-Ins hotkey - insert current directory to InputLine
|
||||
new: Alt-"["/"]" hotkeys - insert left/right panel full path + selected file name to InputLine
|
||||
fix: Insert + Shift/Ctrl/Alt hotkey now works fine in Dos versions
|
||||
new: Ctrl-Alt-Ins hotkey unlike other views (Ctrl-Ins) make copy to clipboard of focused TLabel view
|
||||
new: Alt-Home/End switch to first/last view in dialogs
|
||||
new: Import/Paste file from... (hex) to internal editor
|
||||
fix: MemoryMap also in MenuetOS/SigmaOS versions
|
||||
fix: Jump to correct entry point in MZ header when CS<0
|
||||
new: windows 11 ver 24H2 detection
|
||||
new: Added "!Contains" option to Editor Find/Replace dialog. When checked, it searches for lines that
|
||||
do not contain a string in the "Contains" dialog field
|
||||
fix: change language menu uses commands value greater than 65535
|
||||
fix: current ega/vga font in ascii-map is now visible in all dos versions
|
||||
|
||||
2023-11-24 (v3.00.0010)
|
||||
fix: some loading speed improvements in Dos version (thanks to Voland by report)
|
||||
fix: now dos versions not will be compressed by UPX to faster loading on slow machines
|
||||
(you can compress/decompress ndn.prg file if you need)
|
||||
fix: trayicon was not visible in FPC versions
|
||||
new: windows 11 ver 22H2 detection
|
||||
new: added cpuid instructions feature flags
|
||||
new: added to disassembler instructions: AVX VNNI, AVX512 Bfloat16, AMX, RAO-INT, CMPccXADD & others
|
||||
new: decoder hotkeys: Alt-[ - toggles not Intel/AMD instructions, Alt-] toggles undocumented instructions
|
||||
fix: was bug in procedure that reads disk sector in decoder (only windows versions)
|
||||
new: additional 20 palettes from other projects
|
||||
new: possible toggle FlatView (hide subdirectories) in FilePanel (Ctrl-Alt-V hotkey)
|
||||
new: add in menu Options->Configuration->MiscellaneousSetups->OperatingSystem->Run when Windows starts
|
||||
new: now export/import procedures in PE/PE+ header are sorted by name
|
||||
fix: 2ndSky screen saver sometimes ran circularly
|
||||
new: four internal screen savers (Radar, Snake, Text, etc.)
|
||||
fix: NDN not crash when can't map linear frame buffer or when he not exist (Dos32 - graph mode)
|
||||
new: Digital/Numeric Converter with (dis)-assembly functions
|
||||
fix: Was small bug in CStr2Str() - last char in string result sometimes was cut
|
||||
new: pressing Ctrl-F3 hotkey in decoder enables change type of display in Hex/Text mode
|
||||
new: enabling CPUID levels ( >=3 via MSR IA32_MISC_ENABLE bit 22) after press "Detail" & "Enable CPUID" buttons
|
||||
new: special Windows folders added (Ctrl-Alt-Shift-P hotkey)
|
||||
new: go to environment variable folders (Ctrl-Alt-Shift-E hotkey)
|
||||
new: find open/locked files to close file or kill process on Windows versions
|
||||
fix: Help button doesn't work after press
|
||||
fix: detect destination path length > 255 in Copy/Move files
|
||||
fix: minesweeper game sometimes crash
|
||||
fix: CR/LF command (line breaks replace) skips when detect sames file names (source & target)
|
||||
new: show inputline current and maximal possible length
|
||||
new: Ctrl-Ins hotkey copy active button title
|
||||
fix: crash with some commands when zero files are in both panels
|
||||
new: Ctrl-Left/Right switches to prev/next item in Tabs & MultiDialog
|
||||
fix: HTML viewer checks for pressing the Esc key to abort the file loading on when it takes a long time
|
||||
fix: HTML viewer not jumps to negative positions when scan a file
|
||||
fix: Dos64 version works with VCPI driver (if you have memory beyond 4GB)
|
||||
fix: Zydis V4, Capstone V5 disassemblers
|
||||
fix: Default disabled detection VESA modes (because not works with WinNT)
|
||||
fix: LMSW instruction in CPU detection removed
|
||||
fix: Default disabled AutoMaximize Window (problems with Win11)
|
||||
fix: added ENABLE_EXTENDED_FLAGS with SetConsoleMode()
|
||||
|
||||
2022-12-26 (v3.00.0008)
|
||||
new: windows 11 & 10 ver H2 detection
|
||||
fix: update screen after change vga colors in windows
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 720 B After Width: | Height: | Size: 700 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 809 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 19 KiB |
@@ -22,3 +22,8 @@ ToggleBar=Tab
|
||||
path=/usbhd0/1/kolibri.img
|
||||
autoclose=0
|
||||
|
||||
[WebView]
|
||||
proxy_address=http://proxy.kolibrios.org/?site=
|
||||
search_engine=http://wiby.me/?q=
|
||||
;search_engine=http://bing.com/search?q=
|
||||
;search_engine=https://html.duckduckgo.com/html/?q=
|
||||
|
||||