diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-06-06 00:11:11 +0200 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-06-08 13:59:25 +0200 |
| commit | 58240b0509d11b09ce2994b88308650e7cfb93bd (patch) | |
| tree | a21fb3bac12259c412cc2c6becc69376fbb4a9a4 /src/c | |
| parent | 4fc9a5b06a0b50db6fc12d4ab7d937766e9ec8a7 (diff) | |
game and keyboard small fixv1.0.2
Diffstat (limited to 'src/c')
| -rw-r--r-- | src/c/keyboard.c | 1 | ||||
| -rw-r--r-- | src/c/shell/game.c | 4 | ||||
| -rw-r--r-- | src/c/shell/neofetch.c | 4 | ||||
| -rw-r--r-- | src/c/tty.c | 1 |
4 files changed, 6 insertions, 4 deletions
diff --git a/src/c/keyboard.c b/src/c/keyboard.c index fb4361d..47c4a22 100644 --- a/src/c/keyboard.c +++ b/src/c/keyboard.c @@ -54,6 +54,7 @@ void enter() } buffer_index=0; } + else prompt(); return; } diff --git a/src/c/shell/game.c b/src/c/shell/game.c index e7c5d1e..ce7793b 100644 --- a/src/c/shell/game.c +++ b/src/c/shell/game.c @@ -83,7 +83,7 @@ void game_timer_handler() else y=VGA_HEIGHT-1; break; case 2: - if(y<VGA_HEIGHT) y++; + if(y<VGA_HEIGHT-1) y++; else y=0; break; case 3: @@ -91,7 +91,7 @@ void game_timer_handler() else x=VGA_WIDTH-1; break; case 4: - if(x<VGA_WIDTH) x++; + if(x<VGA_WIDTH-1) x++; else x=0; break; default: diff --git a/src/c/shell/neofetch.c b/src/c/shell/neofetch.c index 4cfc250..87bff6a 100644 --- a/src/c/shell/neofetch.c +++ b/src/c/shell/neofetch.c @@ -9,7 +9,7 @@ void neofetch(void) { set_color(VGA_COLOR_WHITE,VGA_COLOR_BLACK); printf(" . "); printf("Dobrodosli u moj \n"); - printf(" J:L (\"\"\") "); printf("operativni sistem :) \n"); + printf(" A:A (\"\"\") "); printf("operativni sistem :) \n"); printf(" |:| III "); printf("Uzivajte! \n"); printf(" |:| III "); printf(" \n"); printf(" |:| III "); printf("Welcome to my \n"); @@ -25,7 +25,7 @@ void neofetch(void) printf(" III |:| "); printf(" \n"); printf(" III |:| "); printf(" \n"); printf(" III |:| "); printf("napravio/made by: \n"); - printf(" (___) J:F "); printf("Aleksa Vuckovic \n"); + printf(" (___) V:V "); printf("Aleksa Vuckovic \n"); printf(" \" "); printf(" \n"); for(size_t i=0;i<16;i++) diff --git a/src/c/tty.c b/src/c/tty.c index 0ec1408..b15811b 100644 --- a/src/c/tty.c +++ b/src/c/tty.c @@ -104,6 +104,7 @@ void tty(char *buffer) else if(stringcmp(parts[0],"neofetch")) neofetch(); else if(stringcmp(parts[0],"help")) help(); else if(stringcmp(parts[0],"game")) game_init(); + else if(stringcmp(parts[0],"")) ; else printf("command not found: %s\n",parts[0]); if (!stringcmp(parts[0],"game")) prompt(); |
