2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2006-05-23 23:43:52 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2006-05-23 23:43:52 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "agi/agi.h"
|
|
|
|
#include "agi/lzw.h"
|
|
|
|
|
|
|
|
#include "common/config-manager.h"
|
2006-06-24 08:07:48 +00:00
|
|
|
#include "common/fs.h"
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
namespace Agi {
|
|
|
|
|
2006-12-06 19:27:02 +00:00
|
|
|
int AgiLoader_v3::version() {
|
|
|
|
return 3;
|
|
|
|
}
|
|
|
|
|
2006-12-06 21:23:01 +00:00
|
|
|
void AgiLoader_v3::setIntVersion(int ver) {
|
2007-01-16 12:40:51 +00:00
|
|
|
_intVersion = ver;
|
2006-12-06 19:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int AgiLoader_v3::getIntVersion() {
|
2007-01-16 12:40:51 +00:00
|
|
|
return _intVersion;
|
2006-12-06 19:27:02 +00:00
|
|
|
}
|
2006-05-23 23:43:52 +00:00
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
int AgiLoader_v3::detectGame() {
|
|
|
|
int ec = errUnk;
|
2006-05-23 23:43:52 +00:00
|
|
|
bool found = false;
|
|
|
|
|
2008-09-03 11:22:51 +00:00
|
|
|
Common::FSList fslist;
|
2008-10-02 16:58:59 +00:00
|
|
|
Common::FSNode dir(ConfMan.get("path"));
|
2006-05-23 23:43:52 +00:00
|
|
|
|
2008-10-02 16:58:59 +00:00
|
|
|
if (!dir.getChildren(fslist, Common::FSNode::kListFilesOnly)) {
|
2007-06-05 21:02:35 +00:00
|
|
|
warning("AgiEngine: invalid game path '%s'", dir.getPath().c_str());
|
2007-01-16 12:40:51 +00:00
|
|
|
return errInvalidAGIFile;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
2008-09-03 11:22:51 +00:00
|
|
|
for (Common::FSList::const_iterator file = fslist.begin();
|
2006-05-23 23:43:52 +00:00
|
|
|
file != fslist.end() && !found; ++file) {
|
2007-06-05 21:02:35 +00:00
|
|
|
Common::String f = file->getName();
|
2006-05-23 23:43:52 +00:00
|
|
|
f.toLowercase();
|
|
|
|
|
|
|
|
if (f.hasSuffix("vol.0")) {
|
2007-05-26 15:14:25 +00:00
|
|
|
memset(_vm->_game.name, 0, 8);
|
2007-06-06 13:35:41 +00:00
|
|
|
strncpy(_vm->_game.name, f.c_str(), MIN((uint)8, f.size() > 5 ? f.size() - 5 : f.size()));
|
2007-01-16 12:40:51 +00:00
|
|
|
debugC(3, kDebugLevelMain, "game.name = %s", _vm->_game.name);
|
|
|
|
_intVersion = 0x3149; // setup for 3.002.149
|
|
|
|
ec = _vm->v3IdGame();
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
found = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!found) {
|
|
|
|
debugC(3, kDebugLevelMain, "not found");
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errInvalidAGIFile;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return ec;
|
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
int AgiLoader_v3::loadDir(struct AgiDir *agid, Common::File *fp,
|
2006-05-23 23:43:52 +00:00
|
|
|
uint32 offs, uint32 len) {
|
2007-01-16 12:40:51 +00:00
|
|
|
int ec = errOK;
|
2006-05-23 23:43:52 +00:00
|
|
|
uint8 *mem;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
fp->seek(offs, SEEK_SET);
|
2007-01-16 12:40:51 +00:00
|
|
|
if ((mem = (uint8 *)malloc(len + 32)) != NULL) {
|
2006-05-23 23:43:52 +00:00
|
|
|
fp->read(mem, len);
|
|
|
|
|
|
|
|
/* set all directory resources to gone */
|
|
|
|
for (i = 0; i < MAX_DIRS; i++) {
|
|
|
|
agid[i].volume = 0xff;
|
|
|
|
agid[i].offset = _EMPTY;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* build directory entries */
|
|
|
|
for (i = 0; i < len; i += 3) {
|
|
|
|
agid[i / 3].volume = *(mem + i) >> 4;
|
|
|
|
agid[i / 3].offset = READ_BE_UINT24(mem + i) & (uint32) _EMPTY;
|
|
|
|
}
|
|
|
|
|
|
|
|
free(mem);
|
|
|
|
} else {
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errNotEnoughMemory;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return ec;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct agi3vol {
|
|
|
|
uint32 sddr;
|
|
|
|
uint32 len;
|
|
|
|
};
|
|
|
|
|
2006-12-06 19:27:02 +00:00
|
|
|
int AgiLoader_v3::init() {
|
2007-01-16 12:40:51 +00:00
|
|
|
int ec = errOK;
|
|
|
|
struct agi3vol agiVol3[4];
|
2006-05-23 23:43:52 +00:00
|
|
|
int i;
|
|
|
|
uint16 xd[4];
|
|
|
|
Common::File fp;
|
|
|
|
Common::String path;
|
|
|
|
|
2007-02-10 20:50:00 +00:00
|
|
|
if (_vm->getPlatform() == Common::kPlatformAmiga) {
|
|
|
|
path = Common::String("dirs");
|
|
|
|
_vm->_game.name[0] = 0; // Empty prefix
|
2007-02-13 15:27:36 +00:00
|
|
|
} else if (_vm->getFeatures() & GF_MACGOLDRUSH) {
|
2007-02-11 11:23:30 +00:00
|
|
|
path = "grdir";
|
|
|
|
_vm->_game.name[0] = 0; // Empty prefix
|
2007-02-10 20:50:00 +00:00
|
|
|
} else {
|
|
|
|
path = Common::String(_vm->_game.name) + DIR_;
|
|
|
|
}
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
if (!fp.open(path)) {
|
|
|
|
printf("Failed to open \"%s\"\n", path.c_str());
|
2007-01-16 12:40:51 +00:00
|
|
|
return errBadFileOpen;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
/* build offset table for v3 directory format */
|
|
|
|
fp.read(&xd, 8);
|
|
|
|
fp.seek(0, SEEK_END);
|
|
|
|
|
|
|
|
for (i = 0; i < 4; i++)
|
2007-01-16 12:40:51 +00:00
|
|
|
agiVol3[i].sddr = READ_LE_UINT16((uint8 *) & xd[i]);
|
2006-05-23 23:43:52 +00:00
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
agiVol3[0].len = agiVol3[1].sddr - agiVol3[0].sddr;
|
|
|
|
agiVol3[1].len = agiVol3[2].sddr - agiVol3[1].sddr;
|
|
|
|
agiVol3[2].len = agiVol3[3].sddr - agiVol3[2].sddr;
|
|
|
|
agiVol3[3].len = fp.pos() - agiVol3[3].sddr;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
if (agiVol3[3].len > 256 * 3)
|
|
|
|
agiVol3[3].len = 256 * 3;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
fp.seek(0, SEEK_SET);
|
|
|
|
|
|
|
|
/* read in directory files */
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = loadDir(_vm->_game.dirLogic, &fp, agiVol3[0].sddr, agiVol3[0].len);
|
2006-05-23 23:43:52 +00:00
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
if (ec == errOK) {
|
|
|
|
ec = loadDir(_vm->_game.dirPic, &fp, agiVol3[1].sddr, agiVol3[1].len);
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
if (ec == errOK) {
|
|
|
|
ec = loadDir(_vm->_game.dirView, &fp, agiVol3[2].sddr, agiVol3[2].len);
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
if (ec == errOK) {
|
|
|
|
ec = loadDir(_vm->_game.dirSound, &fp, agiVol3[3].sddr, agiVol3[3].len);
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return ec;
|
|
|
|
}
|
|
|
|
|
2006-12-06 19:27:02 +00:00
|
|
|
int AgiLoader_v3::deinit() {
|
2007-01-16 12:40:51 +00:00
|
|
|
int ec = errOK;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
#if 0
|
|
|
|
/* unload words */
|
2007-01-16 12:40:51 +00:00
|
|
|
agiV3UnloadWords();
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
/* unload objects */
|
2007-01-16 12:40:51 +00:00
|
|
|
agiV3UnloadObjects();
|
2006-05-23 23:43:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return ec;
|
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
int AgiLoader_v3::unloadResource(int t, int n) {
|
2006-05-23 23:43:52 +00:00
|
|
|
switch (t) {
|
|
|
|
case rLOGIC:
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->unloadLogic(n);
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
case rPICTURE:
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->_picture->unloadPicture(n);
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
case rVIEW:
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->unloadView(n);
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
case rSOUND:
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->_sound->unloadSound(n);
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
return errOK;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This function does noting but load a raw resource into memory.
|
|
|
|
* If further decoding is required, it must be done by another
|
|
|
|
* routine.
|
|
|
|
*
|
|
|
|
* NULL is returned if unsucsessful.
|
|
|
|
*/
|
2007-01-16 12:40:51 +00:00
|
|
|
uint8 *AgiLoader_v3::loadVolRes(AgiDir *agid) {
|
2006-05-23 23:43:52 +00:00
|
|
|
char x[MAX_PATH];
|
2007-01-16 12:40:51 +00:00
|
|
|
uint8 *data = NULL, *compBuffer;
|
2006-05-23 23:43:52 +00:00
|
|
|
Common::File fp;
|
|
|
|
Common::String path;
|
|
|
|
|
2006-05-24 19:51:37 +00:00
|
|
|
debugC(3, kDebugLevelResources, "(%p)", (void *)agid);
|
2006-05-23 23:43:52 +00:00
|
|
|
sprintf(x, "vol.%i", agid->volume);
|
2007-01-16 12:40:51 +00:00
|
|
|
path = Common::String(_vm->_game.name) + x;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
if (agid->offset != _EMPTY && fp.open(path)) {
|
|
|
|
fp.seek(agid->offset, SEEK_SET);
|
|
|
|
fp.read(&x, 7);
|
|
|
|
|
|
|
|
if (READ_BE_UINT16((uint8 *) x) != 0x1234) {
|
|
|
|
debugC(3, kDebugLevelResources, "path = %s", path.c_str());
|
|
|
|
debugC(3, kDebugLevelResources, "offset = %d", agid->offset);
|
|
|
|
debugC(3, kDebugLevelResources, "x = %x %x", x[0], x[1]);
|
|
|
|
error("ACK! BAD RESOURCE");
|
2008-07-09 02:27:05 +00:00
|
|
|
|
|
|
|
_vm->quitGame();
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
agid->len = READ_LE_UINT16((uint8 *) x + 3); /* uncompressed size */
|
|
|
|
agid->clen = READ_LE_UINT16((uint8 *) x + 5); /* compressed len */
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
compBuffer = (uint8 *)calloc(1, agid->clen + 32);
|
|
|
|
fp.read(compBuffer, agid->clen);
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
if (x[2] & 0x80 || agid->len == agid->clen) {
|
|
|
|
/* do not decompress */
|
2007-01-16 12:40:51 +00:00
|
|
|
data = compBuffer;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
#if 0
|
|
|
|
/* CM: added to avoid problems in
|
|
|
|
* convert_v2_v3_pic() when clen > len
|
|
|
|
* e.g. Sierra demo 4, first picture
|
|
|
|
* (Tue Mar 16 13:13:43 EST 1999)
|
|
|
|
*/
|
|
|
|
agid->len = agid->clen;
|
|
|
|
|
|
|
|
/* Now removed to fix Gold Rush! in demo4 */
|
|
|
|
#endif
|
|
|
|
} else {
|
|
|
|
/* it is compressed */
|
|
|
|
data = (uint8 *)calloc(1, agid->len + 32);
|
2007-01-16 12:40:51 +00:00
|
|
|
lzwExpand(compBuffer, data, agid->len);
|
|
|
|
free(compBuffer);
|
2006-05-23 23:43:52 +00:00
|
|
|
agid->flags |= RES_COMPRESSED;
|
|
|
|
}
|
|
|
|
|
|
|
|
fp.close();
|
|
|
|
} else {
|
|
|
|
/* we have a bad volume resource */
|
|
|
|
/* set that resource to NA */
|
|
|
|
agid->offset = _EMPTY;
|
|
|
|
}
|
|
|
|
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Loads a resource into memory, a raw resource is loaded in
|
|
|
|
* with above routine, then further decoded here.
|
|
|
|
*/
|
2007-01-16 12:40:51 +00:00
|
|
|
int AgiLoader_v3::loadResource(int t, int n) {
|
|
|
|
int ec = errOK;
|
2006-05-23 23:43:52 +00:00
|
|
|
uint8 *data = NULL;
|
|
|
|
|
|
|
|
if (n > MAX_DIRS)
|
2007-01-16 12:40:51 +00:00
|
|
|
return errBadResource;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
switch (t) {
|
|
|
|
case rLOGIC:
|
|
|
|
/* load resource into memory, decrypt messages at the end
|
|
|
|
* and build the message list (if logic is in memory)
|
|
|
|
*/
|
2007-01-16 12:40:51 +00:00
|
|
|
if (~_vm->_game.dirLogic[n].flags & RES_LOADED) {
|
2006-05-23 23:43:52 +00:00
|
|
|
/* if logic is already in memory, unload it */
|
2007-01-16 12:40:51 +00:00
|
|
|
unloadResource(rLOGIC, n);
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
/* load raw resource into data */
|
2007-01-16 12:40:51 +00:00
|
|
|
data = loadVolRes(&_vm->_game.dirLogic[n]);
|
|
|
|
_vm->_game.logics[n].data = data;
|
2006-05-23 23:43:52 +00:00
|
|
|
|
|
|
|
/* uncompressed logic files need to be decrypted */
|
|
|
|
if (data != NULL) {
|
|
|
|
/* resloaded flag gets set by decode logic */
|
|
|
|
/* needed to build string table */
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = _vm->decodeLogic(n);
|
|
|
|
_vm->_game.logics[n].sIP = 2;
|
2006-05-23 23:43:52 +00:00
|
|
|
} else {
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errBadResource;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*logics[n].sIP=2; *//* saved IP = 2 */
|
|
|
|
/*logics[n].cIP=2; *//* current IP = 2 */
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->_game.logics[n].cIP = _vm->_game.logics[n].sIP;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* if logic was cached, we get here */
|
|
|
|
/* reset code pointers incase it was cached */
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->_game.logics[n].cIP = _vm->_game.logics[n].sIP;
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
case rPICTURE:
|
|
|
|
/* if picture is currently NOT loaded *OR* cacheing is off,
|
|
|
|
* unload the resource (caching==off) and reload it
|
|
|
|
*/
|
2007-01-16 12:40:51 +00:00
|
|
|
if (~_vm->_game.dirPic[n].flags & RES_LOADED) {
|
|
|
|
unloadResource(rPICTURE, n);
|
|
|
|
data = loadVolRes(&_vm->_game.dirPic[n]);
|
2006-05-23 23:43:52 +00:00
|
|
|
if (data != NULL) {
|
2007-01-16 12:40:51 +00:00
|
|
|
data = _vm->_picture->convertV3Pic(data, _vm->_game.dirPic[n].len);
|
|
|
|
_vm->_game.pictures[n].rdata = data;
|
|
|
|
_vm->_game.dirPic[n].flags |= RES_LOADED;
|
2006-05-23 23:43:52 +00:00
|
|
|
} else {
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errBadResource;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case rSOUND:
|
2007-01-16 12:40:51 +00:00
|
|
|
if (_vm->_game.dirSound[n].flags & RES_LOADED)
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
data = loadVolRes(&_vm->_game.dirSound[n]);
|
2006-12-06 19:27:02 +00:00
|
|
|
if (data != NULL) {
|
2007-08-15 22:00:31 +00:00
|
|
|
// Freeing of the raw resource from memory is delegated to the createFromRawResource-function
|
|
|
|
_vm->_game.sounds[n] = AgiSound::createFromRawResource(data, _vm->_game.dirSound[n].len, n, *_vm->_sound);
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->_game.dirSound[n].flags |= RES_LOADED;
|
2006-05-23 23:43:52 +00:00
|
|
|
} else {
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errBadResource;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case rVIEW:
|
|
|
|
/* Load a VIEW resource into memory...
|
|
|
|
* Since VIEWS alter the view table ALL the time can we
|
|
|
|
* cache the view? or must we reload it all the time?
|
|
|
|
*/
|
|
|
|
/* load a raw view from a VOL file into data */
|
2007-01-16 12:40:51 +00:00
|
|
|
if (_vm->_game.dirView[n].flags & RES_LOADED)
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
unloadResource(rVIEW, n);
|
|
|
|
data = loadVolRes(&_vm->_game.dirView[n]);
|
2006-12-06 19:27:02 +00:00
|
|
|
if (data != NULL) {
|
2007-01-16 12:40:51 +00:00
|
|
|
_vm->_game.views[n].rdata = data;
|
|
|
|
_vm->_game.dirView[n].flags |= RES_LOADED;
|
|
|
|
ec = _vm->decodeView(n);
|
2006-05-23 23:43:52 +00:00
|
|
|
} else {
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errBadResource;
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
2007-01-16 12:40:51 +00:00
|
|
|
ec = errBadResource;
|
2006-05-23 23:43:52 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ec;
|
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
int AgiLoader_v3::loadObjects(const char *fname) {
|
|
|
|
return _vm->loadObjects(fname);
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
int AgiLoader_v3::loadWords(const char *fname) {
|
|
|
|
return _vm->loadWords(fname);
|
2006-05-23 23:43:52 +00:00
|
|
|
}
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
} // End of namespace Agi
|