1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Only attempt to allocate hot heap when hot swapping is enabled

This commit is contained in:
Hunter Bridges 2021-04-14 11:04:54 -07:00
parent 4211c267a6
commit d237c2aba2
6 changed files with 10 additions and 8 deletions

View file

@ -82,7 +82,7 @@ static bool PathEquals(const String& pathA, String& pathB)
void DebugTarget::SetupTargetBinary()
{
bool wantsHotHeap = mDebugger->mDbgProcessId == 0;
bool wantsHotHeap = (mDebugger->mHotSwapEnabled == true && mDebugger->mDbgProcessId == 0);
#ifdef BF_DBG_32
if (wantsHotHeap)