Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bbc2b5b9
Commit
bbc2b5b9
authored
Sep 24, 2002
by
Raul Dias
Committed by
Alexandre Julliard
Sep 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new "GlobalRegistryDir" option.
parent
3e2217ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
5 deletions
+34
-5
registry.sgml
documentation/registry.sgml
+9
-0
config
documentation/samples/config
+2
-0
registry.c
misc/registry.c
+23
-5
No files found.
documentation/registry.sgml
View file @
bbc2b5b9
...
...
@@ -257,6 +257,15 @@ ln -sf /usr/local/etc/wine.userreg wine.userreg
<variablelist>
<varlistentry>
<term>GlobalRegistryDir</term>
<listitem>
<para>
Optional. Sets the path to look for the Global
Registry.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>LoadGlobalRegistryFiles</term>
<listitem>
<para>
...
...
documentation/samples/config
View file @
bbc2b5b9
...
...
@@ -220,6 +220,8 @@ WINE REGISTRY Version 2
[registry]
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Where to find the global registries
;"GlobalRegistryDir" = "/etc";
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
...
...
misc/registry.c
View file @
bbc2b5b9
...
...
@@ -64,9 +64,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
reg
);
/* FIXME: following defines should be configured global */
#define SAVE_GLOBAL_REGBRANCH_USER_DEFAULT ETCDIR"/wine.userreg"
#define SAVE_GLOBAL_REGBRANCH_LOCAL_MACHINE ETCDIR"/wine.systemreg"
#define SAVE_GLOBAL_REGBRANCH_USER_DEFAULT "/wine.userreg"
#define SAVE_GLOBAL_REGBRANCH_LOCAL_MACHINE "/wine.systemreg"
/* relative in ~user/.wine/ : */
#define SAVE_LOCAL_REGBRANCH_CURRENT_USER "user.reg"
...
...
@@ -1651,13 +1650,32 @@ static void _load_windows_registry( HKEY hkey_local_machine, HKEY hkey_current_u
/* load global registry files (stored in /etc/wine) [Internal] */
static
void
_load_global_registry
(
HKEY
hkey_local_machine
,
HKEY
hkey_users
)
{
WCHAR
Wglobalregistrydir
[
MAX_PATHNAME_LEN
];
char
globalregistrydir
[
MAX_PATHNAME_LEN
];
char
configfile
[
MAX_PATHNAME_LEN
];
static
const
WCHAR
registryW
[]
=
{
'r'
,
'e'
,
'g'
,
'i'
,
's'
,
't'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
GlobalRegistryDirW
[]
=
{
'G'
,
'l'
,
'o'
,
'b'
,
'a'
,
'l'
,
'R'
,
'e'
,
'g'
,
'i'
,
's'
,
't'
,
'r'
,
'y'
,
'D'
,
'i'
,
'r'
,
0
};
static
const
WCHAR
empty_strW
[]
=
{
0
};
TRACE
(
"(void)
\n
"
);
/* Override ETCDIR? */
PROFILE_GetWineIniString
(
registryW
,
GlobalRegistryDirW
,
empty_strW
,
Wglobalregistrydir
,
MAX_PATHNAME_LEN
);
WideCharToMultiByte
(
CP_ACP
,
0
,
Wglobalregistrydir
,
-
1
,
globalregistrydir
,
MAX_PATHNAME_LEN
,
NULL
,
NULL
);
if
(
globalregistrydir
[
0
]
!=
'/'
)
strcpy
(
globalregistrydir
,
ETCDIR
);
TRACE
(
"GlobalRegistryDir is '%s'.
\n
"
,
globalregistrydir
);
/* Load the global HKU hive directly from sysconfdir */
load_wine_registry
(
hkey_users
,
SAVE_GLOBAL_REGBRANCH_USER_DEFAULT
);
strcpy
(
configfile
,
globalregistrydir
);
strcat
(
configfile
,
SAVE_GLOBAL_REGBRANCH_USER_DEFAULT
);
load_wine_registry
(
hkey_users
,
configfile
);
/* Load the global machine defaults directly from sysconfdir */
load_wine_registry
(
hkey_local_machine
,
SAVE_GLOBAL_REGBRANCH_LOCAL_MACHINE
);
strcpy
(
configfile
,
globalregistrydir
);
strcat
(
configfile
,
SAVE_GLOBAL_REGBRANCH_LOCAL_MACHINE
);
load_wine_registry
(
hkey_local_machine
,
configfile
);
}
/* load home registry files (stored in ~/.wine) [Internal] */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment