izvinite, ia ne nositel iazika, so i am using english.
first, add
buildoptions { "/Zc:threadSafeInit-" }
under
filter configurations:Release
in premake5.lua (if you need the debug build also be able to manualmap, do the same under debug filter), or just add it in visual studio solution configuration
then, check the
CORE::GetWorkingPath
function in core.cpp and change the directory to a fixed directory instead of getting the directory of the dll file.(cuz if u injected it via manualmap, it is unable to find dll info of asphyxia through the module list, so, crash)
for example, I changed it to %appdata%
bool CORE::GetWorkingPath(wchar_t* wszDestination)
{
wchar_t wszModuleName[MAX_PATH];
SHGetSpecialFolderPath(0, wszModuleName, CSIDL_LOCAL_APPDATA, false);
CRT::StringCopy(wszDestination, wszModuleName);
...
}