bool PackInitialize(const char * c_pszFolder)
{
#if defined(ENABLE_FOX_FS) || defined(USE_ZFS)
NANOBEGIN
if (_access(c_pszFolder, 0) != 0)
return true;
std::string stFolder(c_pszFolder);
stFolder += "/";
CTextFileLoader::SetCacheMode();
#if defined(USE_RELATIVE_PATH)
CEterPackManager::Instance().SetRelativePathMode();
#endif
CEterPackManager::Instance().SetCacheMode();
CEterPackManager::Instance().SetSearchMode(CEterPackManager::SEARCH_PACK);
CSoundData::SetPackMode();
CEterPackManager::Instance().RegisterPack("pack/maps", "*");
CEterPackManager::Instance().RegisterPack("pack/update1", "d:/ymir work/");
CEterPackManager::Instance().RegisterPack("pack/bgm", "bgm");
CEterPackManager::Instance().RegisterPack("pack/effect", "d:/ymir work/effect");
CEterPackManager::Instance().RegisterPack("pack/etc", "d:/ymir work");
CEterPackManager::Instance().RegisterPack("pack/guild", "d:/ymir work/guild");
CEterPackManager::Instance().RegisterPack("pack/icon", "icon");
CEterPackManager::Instance().RegisterPack("pack/item", "d:/ymir work/item");
CEterPackManager::Instance().RegisterPack("pack/locale", "locale");
CEterPackManager::Instance().RegisterPack("pack/monster", "d:/ymir work/monster");
CEterPackManager::Instance().RegisterPack("pack/monster2", "d:/ymir work/monster2");
CEterPackManager::Instance().RegisterPack("pack/npc", "d:/ymir work/npc");
CEterPackManager::Instance().RegisterPack("pack/npc2", "d:/ymir work/npc2");
CEterPackManager::Instance().RegisterPack("pack/pc", "d:/ymir work/pc");
CEterPackManager::Instance().RegisterPack("pack/pc2", "d:/ymir work/pc2");
CEterPackManager::Instance().RegisterPack("pack/pc3", "d:/ymir work/pc3");
CEterPackManager::Instance().RegisterPack("pack/property", "property");
CEterPackManager::Instance().RegisterPack("pack/sound", "sound");
CEterPackManager::Instance().RegisterPack("pack/terrain", "d:/ymir work/terrainmaps");
CEterPackManager::Instance().RegisterPack("pack/textureset", "textureset");
CEterPackManager::Instance().RegisterPack("pack/tree", "d:/ymir work/tree");
CEterPackManager::Instance().RegisterPack("pack/zone", "d:/ymir work/zone");
CEterPackManager::Instance().RegisterPack("pack/npc_pet", "d:/ymir work/npc_pet");
CEterPackManager::Instance().RegisterPack("pack/npc_mount", "d:/ymir work/npc_mount");
CEterPackManager::Instance().RegisterRootPack((stFolder + std::string("root")).c_str());