Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 8b1c659

Browse files
committed
Add command for displaying information about the executable file.
1 parent 1dbff6d commit 8b1c659

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Cecil/CecilExtensions.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@ static void CECIL_RegisterCommand(void *pCommand) {
109109
}
110110
};
111111

112+
// Display information about the patched executable
113+
static void PatchInfo(void) {
114+
const char *strInfo = (
115+
" Patched Serious Sam executable\n"
116+
"https://github.com/DreamyCecil/SamExePatch\n\n"
117+
118+
"- Game version: " _SE_VER_STRING "\n"
119+
"- EXE version: 1.1\n"
120+
121+
"\n(c) Dreamy Cecil, 2022\n"
122+
);
123+
124+
CPutString(strInfo);
125+
};
126+
112127
// Custom initialization
113128
void CECIL_Init(void) {
114129
// Function patches
@@ -135,6 +150,9 @@ void CECIL_Init(void) {
135150
// Command registry
136151
_pShell->DeclareSymbol("void CECIL_RegisterCommand(INDEX);", &CECIL_RegisterCommand);
137152

153+
// Information about the patched executable
154+
_pShell->DeclareSymbol("user void PatchInfo(void);", &PatchInfo);
155+
138156
// Custom symbols
139157
{
140158
// General

0 commit comments

Comments
 (0)