Beispiel #1
0
/* Load research message viewdata */
static bool dataResearchMsgLoad(const char* fileName, void** ppData)
{
	VIEWDATA* pViewData = loadResearchViewData(fileName);
	if (!pViewData)
	{
		return false;
	}

	// set the pointer so the release function gets called with it
	*ppData = pViewData;
	return true;
}
Beispiel #2
0
/* Load research message viewdata */
static bool dataResearchMsgLoad(const char *fileName, void **ppData)
{
	WzString *ptr = loadResearchViewData(fileName);
	if (!ptr)
	{
		return false;
	}

	// set the pointer so the release function gets called with it
	*ppData = (void *)ptr;
	return true;
}