Minor Update:
- Add GetAddress() to CApplciation - Call GetAddress() from GetHandleAddress() is SelectableCore - Correct "Name" overload in SelectableCore->Init()
This commit is contained in:
@@ -404,6 +404,24 @@ CFunctionCore * CApplication::GetFunction( const char * Name )
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
CDataMember * CApplication::GetAddress( const char * SearchAddress )
|
||||
{
|
||||
CDataMember * AddressDef = NULL;
|
||||
char NamePath[100];
|
||||
char * Address;
|
||||
|
||||
// Address renamed?
|
||||
sprintf( NamePath, "Application/Addresses/Rename/%s", SearchAddress );
|
||||
if (!(Address = (char*)Config->GetChStr( NamePath, NULL, false ))) {
|
||||
Address = (char*)SearchAddress;
|
||||
}
|
||||
|
||||
// Get address def
|
||||
AddressDef = AddressList->GetChild( Address );
|
||||
return AddressDef;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
bool CApplication::Run( bool TerminateOnError )
|
||||
{
|
||||
bool CleanTerminate = true;
|
||||
|
||||
Reference in New Issue
Block a user