mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Fixed hot swapping issue
This commit is contained in:
parent
7d64d6dd21
commit
8c599ee7db
2 changed files with 16 additions and 7 deletions
|
@ -939,13 +939,21 @@ namespace IDE
|
|||
var bfProject = gApp.mBfBuildSystem.mProjectMap[project];
|
||||
bool bfHadOutputChanges = false;
|
||||
List<String> bfFileNames = scope List<String>();
|
||||
if (project.mCurBfOutputFileNames == null)
|
||||
if (hotProject == null)
|
||||
{
|
||||
project.mCurBfOutputFileNames = new .();
|
||||
bfCompiler.GetOutputFileNames(bfProject, true, out bfHadOutputChanges, project.mCurBfOutputFileNames);
|
||||
if (project.mCurBfOutputFileNames == null)
|
||||
{
|
||||
project.mCurBfOutputFileNames = new .();
|
||||
bfCompiler.GetOutputFileNames(bfProject, true, out bfHadOutputChanges, project.mCurBfOutputFileNames);
|
||||
}
|
||||
for (var fileName in project.mCurBfOutputFileNames)
|
||||
bfFileNames.Add(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
bfCompiler.GetOutputFileNames(bfProject, true, out bfHadOutputChanges, bfFileNames);
|
||||
defer:: ClearAndDeleteItems(bfFileNames);
|
||||
}
|
||||
for (var fileName in project.mCurBfOutputFileNames)
|
||||
bfFileNames.Add(fileName);
|
||||
if (bfHadOutputChanges)
|
||||
project.mNeedsTargetRebuild = true;
|
||||
|
||||
|
@ -1031,7 +1039,8 @@ namespace IDE
|
|||
|
||||
if (project.mGeneralOptions.mTargetType == .CustomBuild)
|
||||
{
|
||||
DoPostBuild();
|
||||
if (hotProject == null)
|
||||
DoPostBuild();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue