mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-14 06:52:52 +03:00
More WIP, debugger starting correctly. Tested several commands and all working.
This commit is contained in:
@@ -767,7 +767,7 @@ void ProjectBuildManager::runCurrentConfig( StatusAppOutputController* saoc, boo
|
||||
}
|
||||
}
|
||||
|
||||
bool ProjectBuildManager::hasBuildConfig() {
|
||||
bool ProjectBuildManager::hasBuildConfig() const {
|
||||
return !getBuilds().empty() && !mConfig.buildName.empty();
|
||||
}
|
||||
|
||||
@@ -779,6 +779,20 @@ bool ProjectBuildManager::hasRunConfig() {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::optional<ProjectBuildStep> ProjectBuildManager::getCurrentRunConfig() {
|
||||
if ( hasBuildConfig() ) {
|
||||
auto build = getBuild( mConfig.buildName );
|
||||
if ( build != nullptr && build->hasRun() ) {
|
||||
for ( const auto& crun : build->mRun ) {
|
||||
if ( crun->name == mConfig.runName || mConfig.runName.empty() ) {
|
||||
return build->replaceVars( *crun.get() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
void ProjectBuildManager::runConfig( StatusAppOutputController* saoc ) {
|
||||
if ( !isRunningApp() && !getBuilds().empty() ) {
|
||||
BoolScopedOp op( mRunning, true );
|
||||
|
||||
Reference in New Issue
Block a user