Small Cleanup
This commit is contained in:
parent
51d7974ded
commit
5cf4d7f915
@ -13,16 +13,13 @@
|
|||||||
#define NEW_PATH ""
|
#define NEW_PATH ""
|
||||||
|
|
||||||
// Store Launch Directory
|
// Store Launch Directory
|
||||||
static char *get_launch_directory() {
|
__attribute__((constructor)) static char *get_launch_directory() {
|
||||||
static char *launch_directory = NULL;
|
static char *launch_directory = NULL;
|
||||||
if (launch_directory == NULL) {
|
if (launch_directory == NULL) {
|
||||||
launch_directory = getcwd(NULL, 0);
|
launch_directory = getcwd(NULL, 0);
|
||||||
}
|
}
|
||||||
return launch_directory;
|
return launch_directory;
|
||||||
}
|
}
|
||||||
__attribute__((constructor)) static void init_launch_directory() {
|
|
||||||
get_launch_directory();
|
|
||||||
}
|
|
||||||
__attribute__((destructor)) static void free_launch_directory() {
|
__attribute__((destructor)) static void free_launch_directory() {
|
||||||
free(get_launch_directory());
|
free(get_launch_directory());
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ static int32_t MouseBuildInput_tickBuild_injection(unsigned char *mouse_build_in
|
|||||||
is_left_click = 2;
|
is_left_click = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user