From 29db3f68badc1d2c800448f529d7c3d82d2079ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Kala=C5=A1=20=28Floxen=29?= Date: Sun, 12 Jul 2026 19:33:50 +0200 Subject: [PATCH] =?UTF-8?q?Do=20shellu=20p=C5=99ibyl=20p=C5=99=C3=ADkaz=20?= =?UTF-8?q?tetris?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Napojil jsem spuštění testovací hry do shellu a přidal ji i do helpu, aby šla pustit hned bez ručního laborování. --- kernel/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/main.c b/kernel/main.c index 8efbcf0..54c1fe7 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -23,6 +23,8 @@ #include "syscall.h" #include "timer.h" +void app_tetris_main(void); + static char g_cwd[ASTERFS_NAME_LEN] = "/"; static unsigned long g_timer_hz = 100UL; @@ -788,6 +790,7 @@ static const char *g_help_lines[] = { "./filename - C-like script printf", "edit filename - editor (Ctrl+S, ESC)", "calc A op B - vypocet (+ - * /)", + "tetris - testovaci hra nad app API", "echo text - vypis textu", "ticks - pocet tiknuti casovace", "alloc N - alokovat N bajtu", @@ -2778,6 +2781,9 @@ static void shell_loop(void) { } else { print_exec_profile((const void *)show_calc_ui, t0); } + } else if (aster_strcmp(exec_cmd, "tetris") == 0) { + app_tetris_main(); + render_shell_statusbar(); } else if (aster_strcmp(exec_cmd, "alloc") == 0) { int ok; unsigned long n;