chore: Apply code formatting on entire codebase for consistent style

This commit is contained in:
icex2
2023-03-21 23:37:01 +01:00
committed by icex2
parent a1a849aef3
commit 031836ef0e
186 changed files with 2446 additions and 1979 deletions

View File

@@ -55,19 +55,22 @@ void sdvxhook2_config_io_init(struct cconfig *config)
config,
SDVXHOOK2_CONFIG_IO_DISABLE_FILE_HOOKS_KEY,
SDVXHOOK2_CONFIG_IO_DEFAULT_DISABLE_FILE_HOOKS_VALUE,
"Disables the built in file hooks, requiring manual file creation (/dev/raw/j.dest)");
"Disables the built in file hooks, requiring manual file creation "
"(/dev/raw/j.dest)");
cconfig_util_set_bool(
config,
SDVXHOOK2_CONFIG_IO_DISABLE_POWER_HOOKS_KEY,
SDVXHOOK2_CONFIG_IO_DEFAULT_DISABLE_POWER_HOOKS_VALUE,
"Disables the built in power control hooks, allowing game to modify system power settings");
"Disables the built in power control hooks, allowing game to modify "
"system power settings");
cconfig_util_set_bool(
config,
SDVXHOOK2_CONFIG_IO_DISABLE_NVAPI_HOOKS_KEY,
SDVXHOOK2_CONFIG_IO_DEFAULT_DISABLE_NVAPI_HOOKS_VALUE,
"Disables the built in NVAPI control hooks, allowing game to modify system monitor settings");
"Disables the built in NVAPI control hooks, allowing game to modify "
"system monitor settings");
cconfig_util_set_bool(
config,

View File

@@ -49,10 +49,12 @@ static void *my_GetProcAddress(HMODULE dll, const char *name)
#define OFFSET_NvAPI_DISP_SetDisplayConfig 0x5D8CF8DE
static void *my_nvapi_QueryInterface(uint32_t FunctionOffset) {
static void *my_nvapi_QueryInterface(uint32_t FunctionOffset)
{
if (FunctionOffset == OFFSET_NvAPI_DISP_SetDisplayConfig) {
log_info("Request for interface %x intercepted", FunctionOffset);
// no point stubbing this, the error checking for now doesn't check the response anyways
// no point stubbing this, the error checking for now doesn't check the
// response anyways
return NULL;
}