VirtualBox

Changeset 105109 in vbox


Ignore:
Timestamp:
Jul 3, 2024 9:51:56 AM (5 months ago)
Author:
vboxsync
Message:

libs/Makefile.kmk: Switch to dxvk-2.3.1 from dxvk-native-1.9.2a, bugref:10716 [build fixes]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/dxvk-2.3.1/src/util/util_env.cpp

    r105107 r105109  
    77#include <unistd.h>
    88#include <limits.h>
     9#endif
     10
     11#ifdef VBOX
     12# include <iprt/process.h>
    913#endif
    1014
     
    7276
    7377  std::string getExePath() {
     78#ifdef VBOX
     79    std::array<char, PATH_MAX> exePath = {};
     80    if (!RTProcGetExecutablePath(exePath.data(), exePath.size()))
     81      return std::string("");
     82    return std::string(exePath.begin(), exePath.begin() + strlen(exePath.begin()));
     83#else
    7484#if defined(_WIN32)
    7585    std::vector<WCHAR> exePath;
     
    8797    return std::string(exePath.begin(), exePath.begin() + count);
    8898#endif
     99#endif /* VBOX */
    89100  }
    90101 
     
    109120    std::array<char, 16> posixName = {};
    110121    dxvk::str::strlcpy(posixName.data(), name.c_str(), 16);
     122# if defined(VBOX) && defined(RT_OS_DARWIN)
     123    ::pthread_setname_np(posixName.data());
     124# else
    111125    ::pthread_setname_np(pthread_self(), posixName.data());
     126# endif
    112127#endif
    113128  }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette