mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
enhancement: added one more native lib path
Added /usr/lib/amiberry as one more native lib search path
This commit is contained in:
parent
a81609343c
commit
e763a6b602
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user