Invalid build method error is now more verbose (umk/ide)

git-svn-id: svn://ultimatepp.org/upp/trunk@9833 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2016-05-15 11:11:55 +00:00
parent eaa611a529
commit 9bd388c679
6 changed files with 35 additions and 9 deletions

View file

@ -115,10 +115,14 @@ String IdeContext::GetDefaultMethod()
VectorMap<String, String> IdeContext::GetMethodVars(const String& method)
{
VectorMap<String, String> map;
LoadVarFile(ConfigFile((String)~method + ".bm"), map);
LoadVarFile(ConfigFile(GetMethodName(method)), map);
return map;
}
String IdeContext::GetMethodName(const String& method)
{
return (String)~method + ".bm";
}
String GetDefaultMethod()
{
@ -130,6 +134,11 @@ VectorMap<String, String> GetMethodVars(const String& method)
return the_ide ? the_ide->GetMethodVars(method) : VectorMap<String, String>();
}
String GetMethodPath(const String& method)
{
return the_ide ? the_ide->GetMethodName(method) : "";
}
bool IdeIsBuilding()
{
return the_ide && the_ide->IdeIsBuilding();