// Actually just returns the file name of the script. char * LoadScriptInstance (RESOURCE res) { void *data = res_GetResource (res); if (data) res_DetachResource (res); return (char *) data; }
void * LoadCodeResInstance (RESOURCE res) { void *hData; hData = res_GetResource (res); if (hData) res_DetachResource (res); return hData; }
DWORD LoadGraphicInstance (DWORD res) { MEM_HANDLE hData; hData = res_GetResource (res); if (hData) res_DetachResource (res); return ((DWORD)hData); }
/* Needs to be void * because it could be either a DRAWABLE or a FONT. */ void * LoadGraphicInstance (RESOURCE res) { void *hData; hData = res_GetResource (res); if (hData) res_DetachResource (res); return (hData); }