- auto convert = [&appPaths, enableR2R, doGenUniqueBaseSystem, isAppNI](const std::string& path, const char* name) {
- uintptr_t baseAddr = 0;
-
-#ifdef UNIQUE_DEFAULT_BASE_ADDR_SUPPORT
- if (doGenUniqueBaseSystem && !isAppNI && isTPADll(path)) {
- baseAddr = getNextBaseAddr();
- }
-#endif
-
- if (!crossgen(path, appPaths.c_str(), enableR2R, baseAddr, isAppNI)) {
-#ifdef UNIQUE_DEFAULT_BASE_ADDR_SUPPORT
- if (doGenUniqueBaseSystem && !isAppNI && baseAddr != 0) {
- updateBaseAddrFile(path, baseAddr);
- }
-#endif
-
+ auto convert = [&appPaths, enableR2R, isAppNI](const std::string& path, const char* name) {
+ if (!crossgen(path, appPaths.c_str(), enableR2R, isAppNI)) {