Changeset View
Changeset View
Standalone View
Standalone View
files/d3d9-helper.patch
| From 4ab841665be1b0b924773b677be85e6ff82cc794 Mon Sep 17 00:00:00 2001 | From ee9b2c5e3eb1cd288b964f3f041e08b8191dad3b Mon Sep 17 00:00:00 2001 | ||||
| From: Nick Sarnie <commendsarnex@gmail.com> | From: Nick Sarnie <commendsarnex@gmail.com> | ||||
| Date: Mon, 29 May 2017 10:34:33 -0400 | Date: Sat, 29 Jul 2017 12:12:31 -0400 | ||||
| Subject: [PATCH] D3D9 Helper | Subject: [PATCH] D3D9 Helper | ||||
| Signed-off-by: Nick Sarnie <commendsarnex@gmail.com> | Signed-off-by: Nick Sarnie <commendsarnex@gmail.com> | ||||
| --- | --- | ||||
| dlls/ntdll/loader.c | 66 ++++++---- | dlls/ntdll/loader.c | 66 ++++++---- | ||||
| dlls/ntdll/loadorder.c | 304 ++++++++++++++++++++++++++++++++----------- | dlls/ntdll/loadorder.c | 304 ++++++++++++++++++++++++++++++++----------- | ||||
| dlls/ntdll/ntdll_misc.h | 1 + | dlls/ntdll/ntdll_misc.h | 1 + | ||||
| programs/winecfg/Makefile.in | 1 + | programs/winecfg/Makefile.in | 1 + | ||||
| programs/winecfg/main.c | 12 +- | programs/winecfg/main.c | 12 +- | ||||
| programs/winecfg/resource.h | 5 + | programs/winecfg/resource.h | 5 + | ||||
| programs/winecfg/staging.c | 93 +++++++++++++ | programs/winecfg/staging.c | 93 +++++++++++++ | ||||
| programs/winecfg/winecfg.h | 1 + | programs/winecfg/winecfg.h | 1 + | ||||
| programs/winecfg/winecfg.rc | 10 ++ | programs/winecfg/winecfg.rc | 10 ++ | ||||
| 9 files changed, 394 insertions(+), 99 deletions(-) | 9 files changed, 394 insertions(+), 99 deletions(-) | ||||
| create mode 100644 programs/winecfg/staging.c | create mode 100644 programs/winecfg/staging.c | ||||
| diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c | diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c | ||||
| index 518a99f590..d0f274e99c 100644 | index dd1f74c0fc..2616cd3a66 100644 | ||||
| --- a/dlls/ntdll/loader.c | --- a/dlls/ntdll/loader.c | ||||
| +++ b/dlls/ntdll/loader.c | +++ b/dlls/ntdll/loader.c | ||||
| @@ -93,6 +93,7 @@ struct builtin_load_info | @@ -93,6 +93,7 @@ struct builtin_load_info | ||||
| { | { | ||||
| const WCHAR *load_path; | const WCHAR *load_path; | ||||
| const WCHAR *filename; | const WCHAR *filename; | ||||
| + const WCHAR *fakemodule; | + const WCHAR *fakemodule; | ||||
| NTSTATUS status; | NTSTATUS status; | ||||
| ▲ Show 20 Lines • Show All 587 Lines • ▼ Show 20 Lines | |||||
| + ret = NULL; | + ret = NULL; | ||||
| + TRACE( "no redirection found for %s\n", debugstr_w(path) ); | + TRACE( "no redirection found for %s\n", debugstr_w(path) ); | ||||
| + | + | ||||
| + done: | + done: | ||||
| + RtlFreeHeap( GetProcessHeap(), 0, module ); | + RtlFreeHeap( GetProcessHeap(), 0, module ); | ||||
| + return ret; | + return ret; | ||||
| +} | +} | ||||
| diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h | diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h | ||||
| index 5e4c39e8bd..921f58e187 100644 | index ba296d25c3..9b1dd45fff 100644 | ||||
| --- a/dlls/ntdll/ntdll_misc.h | --- a/dlls/ntdll/ntdll_misc.h | ||||
| +++ b/dlls/ntdll/ntdll_misc.h | +++ b/dlls/ntdll/ntdll_misc.h | ||||
| @@ -203,6 +203,7 @@ enum loadorder | @@ -203,6 +203,7 @@ enum loadorder | ||||
| }; | }; | ||||
| extern enum loadorder get_load_order( const WCHAR *app_name, const WCHAR *path ) DECLSPEC_HIDDEN; | extern enum loadorder get_load_order( const WCHAR *app_name, const WCHAR *path ) DECLSPEC_HIDDEN; | ||||
| +extern WCHAR* get_redirect( const WCHAR *app_name, const WCHAR *path, BYTE *buffer, ULONG size ) DECLSPEC_HIDDEN; | +extern WCHAR* get_redirect( const WCHAR *app_name, const WCHAR *path, BYTE *buffer, ULONG size ) DECLSPEC_HIDDEN; | ||||
| ▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
| + LTEXT "The following settings are experimental and may break stuff!\nMake sure to reset them again in case of a problem.\nGallium Nine requires MESA graphic drivers and AMD/Nvidia GPU.\n",IDC_STATIC,16,16,230,24 | + LTEXT "The following settings are experimental and may break stuff!\nMake sure to reset them again in case of a problem.\nGallium Nine requires MESA graphic drivers and AMD/Nvidia GPU.\n",IDC_STATIC,16,16,230,24 | ||||
| + CONTROL "Enable &Gallium Nine for better D3D9 graphic performance.",IDC_ENABLE_NATIVE_D3D9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,40,230,8 | + CONTROL "Enable &Gallium Nine for better D3D9 graphic performance.",IDC_ENABLE_NATIVE_D3D9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,40,230,8 | ||||
| +END | +END | ||||
| + | + | ||||
| LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | ||||
| /* @makedep: winecfg.ico */ | /* @makedep: winecfg.ico */ | ||||
| -- | -- | ||||
| 2.13.0 | 2.13.3 | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.