mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 14:47:26 +00:00
Support determining the install path when installed to the 32-bit Windows program files directory.
This commit is contained in:
@@ -287,6 +287,8 @@ ESPEAK_NG_API void espeak_ng_InitializePath(const char *path)
|
||||
|
||||
buf[0] = 0;
|
||||
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\eSpeak NG", 0, KEY_READ, &RegKey);
|
||||
if (RegKey == NULL)
|
||||
RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\WOW6432Node\\eSpeak NG", 0, KEY_READ, &RegKey);
|
||||
size = sizeof(buf);
|
||||
var_type = REG_SZ;
|
||||
RegQueryValueExA(RegKey, "Path", 0, &var_type, buf, &size);
|
||||
|
||||
Reference in New Issue
Block a user