[windows] use DataDir for registry key, not InstallDir

This commit is contained in:
nick black 2021-11-29 22:01:40 -05:00
parent abb99d4a67
commit 4b3b904040
2 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#include <stdio.h>
char* notcurses_data_dir(void){
const char key[] = "Software\\Notcurses\\InstallDir";
const char key[] = "Software\\Notcurses\\DataDir";
DWORD plen = 0;
LSTATUS r = RegGetValueA(HKEY_CURRENT_USER, key,
NULL, RRF_RT_REG_SZ, NULL,
@ -27,6 +27,7 @@ char* notcurses_data_dir(void){
free(val);
return NULL;
}
fprintf(stderr, "REGISTRY VALUE [%s]\n", val);
return val;
}

View File

@ -1316,9 +1316,9 @@ dll
[Licence_End]
[Registry]
HKEY_CURRENT_USER
Software\Notcurses\InstallDir
Software\Notcurses\DataDir
<InstallPath>
<InstallPath>\data
1
[Variables]
[SCs]