enhancement: added one more native lib path

Added /usr/lib/amiberry as one more native lib search path
This commit is contained in:
Dimitris Panokostas 2024-09-02 21:32:22 +02:00
parent a81609343c
commit e763a6b602
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929

View File

@ -4139,15 +4139,21 @@ const TCHAR** uaenative_get_library_dirs(void)
{
static const TCHAR** nats;
static TCHAR* path;
static TCHAR* libpath;
if (nats == NULL)
nats = xcalloc(const TCHAR*, 3);
nats = xcalloc(const TCHAR*, 4);
if (path == NULL) {
path = xcalloc(TCHAR, MAX_DPATH);
_tcscpy(path, plugins_dir.c_str());
}
if (libpath == NULL)
{
libpath = strdup(_T("/usr/lib/amiberry"));
}
nats[0] = home_dir.c_str();
nats[1] = path;
nats[2] = libpath;
return nats;
}