mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 00:51:19 +00:00
Added additional default value of dir.prefix on Windows (#9256)
This commit is contained in:
parent
fa80721ded
commit
71423f6fb9
@ -2195,6 +2195,12 @@ R_API int r_core_config_init(RCore *core) {
|
||||
/* dir.prefix is used in other modules, set it first */
|
||||
{
|
||||
char *pfx = r_sys_getenv("R2_PREFIX");
|
||||
#if __WINDOWS__
|
||||
char invoke_dir[MAX_PATH];
|
||||
if (!pfx && r_sys_get_src_dir_w32 (invoke_dir)) {
|
||||
pfx = strdup (invoke_dir);
|
||||
}
|
||||
#endif
|
||||
if (!pfx) {
|
||||
pfx = strdup (R2_PREFIX);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user