Beispiel #1
0
int AgiEngine::agiDeinit() {
    int ec;

    cleanInput();		// remove all words from memory
    agiUnloadResources();	// unload resources in memory
    _loader->unloadResource(rLOGIC, 0);
    ec = _loader->deinit();
    unloadObjects();
    unloadWords();

    clearImageStack();

    return ec;
}
Beispiel #2
0
int AgiEngine::agiDeinit() {
	int ec;

	if (!_loader)
		return errOK;

	_words->clearEgoWords(); // remove all words from memory
	agiUnloadResources();    // unload resources in memory
	_loader->unloadResource(RESOURCETYPE_LOGIC, 0);
	ec = _loader->deinit();
	unloadObjects();
	_words->unloadDictionary();

	clearImageStack();

	return ec;
}