better look

This commit is contained in:
Skull 2022-06-21 16:46:40 +03:00
parent 0389003f2d
commit 5e16b6af02
4 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@
# H1-Mod # H1-Mod
<p align="center"> <p align="center">
<img src="https://cdn.discordapp.com/attachments/866389597948739594/983104537990692924/splash.png" width="800px"/> <img src="assets/github/banner?raw=true" />
</p> </p>
A client for Call of Duty: Modern Warfare Remastered. A client for Call of Duty: Modern Warfare Remastered.

BIN
assets/github/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 KiB

View File

@ -6,6 +6,7 @@
#include "command.hpp" #include "command.hpp"
#include "rcon.hpp" #include "rcon.hpp"
#include "version.hpp"
#include <utils/thread.hpp> #include <utils/thread.hpp>
#include <utils/hook.hpp> #include <utils/hook.hpp>
@ -269,7 +270,9 @@ namespace console
con.cursor = 0; con.cursor = 0;
clear_output(); clear_output();
SetConsoleTextAttribute(OUTPUT_HANDLE, get_attribute(7)); // green
invoke_printf("]%s\r\n", con.buffer); invoke_printf("]%s\r\n", con.buffer);
SetConsoleTextAttribute(OUTPUT_HANDLE, get_attribute(con_type_info));
strncpy_s(con.buffer, "", sizeof(con.buffer)); strncpy_s(con.buffer, "", sizeof(con.buffer));
break; break;
} }
@ -347,7 +350,7 @@ namespace console
printf_hook.create(printf, printf_stub); printf_hook.create(printf, printf_stub);
ShowWindow(GetConsoleWindow(), SW_SHOW); ShowWindow(GetConsoleWindow(), SW_SHOW);
SetConsoleTitle("H1-Mod"); SetConsoleTitle("H1-Mod: " VERSION);
con.kill_event = CreateEvent(NULL, TRUE, FALSE, NULL); con.kill_event = CreateEvent(NULL, TRUE, FALSE, NULL);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB