Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restructuring: windows: find cmd functions from linked list instead of using patterns #491

Open
SmileyAG opened this issue Jan 7, 2024 · 0 comments

Comments

@SmileyAG
Copy link
Collaborator

SmileyAG commented Jan 7, 2024

To hook cmd functions such as changelevel2 or record it is not necessary to create patterns at all
There is cmd_function_t* cmd_functions global variable in the engine code in which all commands is stored

cmd_function_t structure:

typedef void (*xcommand_t) (void);
typedef struct cmd_function_s
{
	struct cmd_function_s	*next;
	char					*name;
	xcommand_t				function;
	int						flags;
} cmd_function_t;
@SmileyAG SmileyAG changed the title [Windows] Find cmd functions from linked list instead of using patterns windows: find cmd functions from linked list instead of using patterns Jul 29, 2024
@SmileyAG SmileyAG changed the title windows: find cmd functions from linked list instead of using patterns restructuring: windows: find cmd functions from linked list instead of using patterns Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant