That dont work (for me) either... Where did that idea come from Lukas?

I had to got this far to get it to go...
Code:
ENTITY* ent_create2(STRING* filename, VECTOR* pos, VOID* actionn)
{
	int size;	void* pFile = file_load(filename, NULL, &size);
	STRING* shortname=str_create(_chr(filename));
	while(str_stri(shortname,"\\"))	str_clip(shortname, str_stri(shortname,"\\"));
	add_buffer(shortname, pFile, size);		
	ENTITY* ent = ent_create(shortname, pos, actionn);		
	add_buffer(shortname, NULL, 0);		file_load(NULL, pFile, 0);
	str_remove(shortname);			return(ent);
}


And I have no idea whats going to happen if you try to load files from
different folders that have the same name....

I suspect the first one to be opened will keep on being reused...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial