chore: Apply code formatting on entire codebase for consistent style

This commit is contained in:
icex2
2023-04-06 15:39:53 +02:00
committed by icex2
parent a1a849aef3
commit 031836ef0e
186 changed files with 2446 additions and 1979 deletions
+4 -4
View File
@@ -51,11 +51,11 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param)
jbhook3_gfx_init();
if(options.windowed) {
if (options.windowed) {
jbhook3_gfx_set_windowed();
}
if(options.show_cursor) {
if (options.show_cursor) {
jbhook3_gfx_set_show_cursor();
}
@@ -131,7 +131,7 @@ static bool my_dll_entry_main(void)
if (!options.disable_p4ioemu) {
p4ioemu_fini();
}
options_fini(&options);
return result;
@@ -153,7 +153,7 @@ BOOL WINAPI DllMain(HMODULE mod, DWORD reason, void *ctx)
if (!options.disable_adapteremu) {
adapter_hook_init();
}
jbhook_util_eamuse_hook_init();
return TRUE;
+17 -24
View File
@@ -24,40 +24,33 @@ void jbhook3_gfx_set_show_cursor(void)
jbhook3_gfx_show_cursor = true;
}
static HWND CDECL my_GFWin32MainWindowRun(
HINSTANCE,
const char *,
long,
long,
DWORD);
static HWND CDECL
my_GFWin32MainWindowRun(HINSTANCE, const char *, long, long, DWORD);
static HWND(CDECL *real_GFWin32MainWindowRun)(
HINSTANCE,
const char *,
long,
long,
DWORD);
HINSTANCE, const char *, long, long, DWORD);
static const struct hook_symbol init_hook_syms[] = {
{.name = "GFWin32MainWindowRun",
.patch = my_GFWin32MainWindowRun,
.link = (void **) &real_GFWin32MainWindowRun,},
{
.name = "GFWin32MainWindowRun",
.patch = my_GFWin32MainWindowRun,
.link = (void **) &real_GFWin32MainWindowRun,
},
};
static HWND CDECL my_GFWin32MainWindowRun(
HINSTANCE hInstance,
const char *lpWindowName,
long X,
long Y,
DWORD dwStyle
)
{
if(jbhook3_gfx_windowed) {
HINSTANCE hInstance,
const char *lpWindowName,
long X,
long Y,
DWORD dwStyle)
{
if (jbhook3_gfx_windowed) {
log_info("--- Begin jbhook GFWin32MainWindowRun ---");
dwStyle |= WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_VISIBLE;
}
if(jbhook3_gfx_show_cursor) {
if (jbhook3_gfx_show_cursor) {
ShowCursor(TRUE);
}
@@ -68,6 +61,6 @@ void jbhook3_gfx_init(void)
{
hook_table_apply(
NULL, "gftools.dll", init_hook_syms, lengthof(init_hook_syms));
log_info("Inserted gfx hooks");
}
+1 -1
View File
@@ -74,7 +74,7 @@ bool options_read_cmdline(struct options *options, int argc, const char **argv)
options->disable_p4ioemu = true;
break;
}
case 's': {
options->show_cursor = true;
break;