2014-02-05 06:49 AM - last edited on 2023-08-01 04:35 PM by Doreena Deng
2014-02-05 10:35 AM
ReignBough wrote:
Is there any other way on getting this name without calling/getting it from the navigator?
API_NavigatorSet set; BNZeroMemory (&set, sizeof (API_NavigatorSet)); set.mapId = API_ProjectMap; GSErrCode err = ACAPI_Environment (APIEnv_GetNavigatorSetID, &set, NULL); if (err == NoError) { char buffer[256]; sprintf (buffer, "Project name: %s", set.name); ACAPI_WriteReport (buffer, true); // to check root item's name API_NavigatorItem navItem; BNZeroMemory (&navItem, sizeof (API_NavigatorItem)); navItem.mapId = API_ProjectMap; err = ACAPI_Environment (APIEnv_GetNavigatorItemID, &set.rootGuid, &navItem); if (err == NoError) { sprintf (buffer, "Root navigator item name: %s", navItem.name); ACAPI_WriteReport (buffer, true); } }