TYPE_File* ToppyFramework::Hdd_Fopen(char *name ) { CString sName(name); if ((sName.Find("/")!=-1) || (sName.Find("\\")!=-1)) { LogError("Tried to open a file with a path in the name - %s", name); return 0; } FILE* handle = fopen(MakePath(name), "rb+"); // open for update if (handle == NULL) { LogError("Failed to open file %s", (LPCSTR) MakePath(name)); return 0; } TYPE_File* pToppyHandle = new TYPE_File(); ZeroMemory(pToppyHandle, sizeof(TYPE_File)); strncpy(pToppyHandle->name, name, 100); m_mapOpenFiles[pToppyHandle] = handle; pToppyHandle->size = Hdd_Flen(pToppyHandle); LogInfo("Opened %s - handle 0x%x, TYPE_File 0x%x", (LPCSTR) MakePath(name), handle, pToppyHandle); pToppyHandle->startCluster = GetStartClusterHash(name); pToppyHandle->totalCluster = 0; // TODO: more initialization? return pToppyHandle; }
bool TRoss::FullLoad(const char* _RossPath) { if (!LoadOnlyConstants(_RossPath)) return false; if(!MakePath (RossPath, "Cortege.bin", CortegeFile)) { m_LastError = "cannot find Cortege.bin"; return false; }; if(!MakePath (RossPath, "Units.bin", UnitsFile) ) { m_LastError = "cannot find Units.bin"; return false; }; BuildUnits (); if(!BuildCorteges ()) { m_LastError = "Cannot build corteges"; return false; } return true; }
void Cwd(char *param) { char tmp[PATH_MAX]; if (param[0] == '/') MakePath(tmp, "", param); else MakePath(tmp, path, param); if (chdir(tmp) == -1) { Error(param); } else { if (getcwd(tmp, PATH_MAX) == NULL) ERRS("Permission denied"); else { if (anonymous_login) { if (strncmp(basedir, tmp, strlen(basedir)) != 0) { chdir(basedir); strcpy(path, "/"); } else { strncpy(path, &tmp[strlen(basedir)], PATH_MAX); strcat(path, "/"); }; } else strcpy(path, tmp); outs("250 CWD command successful."); }; }; };
sBool sDIFile::SetAttr(sInt attr,void *data,sInt s) { sChar path[sDI_PATHSIZE]; sChar path2[sDI_PATHSIZE]; sInt result; result = sTRUE; switch(attr) { case sDIA_NAME: MakePath(path); MakePath(path2,(sChar *)data); result = sSystem->RenameFile(path,path2); if(result) sCopyString(Name,(sChar *)data,sizeof(Name)); break; case sDIA_DATA: MakePath(path); result = sSystem->SaveFile(path,(sU8 *)data,s); if(result) Size = s; else ;//Size = 0; // need better error handling here! break; default: result = sFALSE; break; } return result; }
void CWndSelectAwakeCase::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); ItemProp* pProp = (ItemProp*)prj.GetItemProp( m_dwItemIndex ); if( pProp ) m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, pProp->szIcon ), 0xffff00ff ); m_pTexGuage = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "Wndguage.tga" ), 0xffff00ff ); if( !m_pTexGuage ) Error( "CWndSelectAwakeCase::OnInitialUpdate m_pTexGuage(Wndguage.tga) is NULL" ); AddWndStyle( WBS_MODAL ); RestoreDeviceObjects( ); }
/* * Initialize the process by reading environment variables and files */ static void Initialize(void) { char *temp; ListOfString *fileList; int stateDirLen; /* * Process miscellaneous parameters from the initial environment. */ checkpointThreshold = IntGetEnv(CKP_THRESHOLD_VAR, CKP_THRESHOLD_DEFAULT); cartHoldSeconds = IntGetEnv(CART_HOLD_MINUTES_VAR, CART_HOLD_MINUTES_DEFAULT)*60; /* * Create an empty in-memory shopping cart data structure. */ cartTablePtr = &cartTable; Tcl_InitHashTable(cartTablePtr, TCL_STRING_KEYS); /* * Compute the state directory name from the initial environment * variables. */ stateDir = getenv(STATE_DIR_VAR); stateDirLen = Strlen(stateDir); assert(stateDirLen > 0); if(stateDir[stateDirLen - 1] == '/') { stateDir[stateDirLen - 1] = '\000'; } fcgiProcessId = getenv(PID_VAR); if(fcgiProcessId != NULL) { stateDir = StringCat4(stateDir, ".", fcgiProcessId, "/"); } else { stateDir = StringCat(stateDir, "/"); } /* * Read the state directory to determine the current * generation number and a list of files that may * need to be deleted (perhaps left over from an earlier * system crash). Recover the current generation * snapshot and log (either or both may be missing), * populating the in-memory shopping cart data structure. * Take a checkpoint, making the current log empty. */ AnalyzeStateDir(stateDir, SNP_PREFIX, &generation, &fileList); snapshotPath = MakePath(stateDir, SNP_PREFIX, generation); RecoverFile(snapshotPath); logPath = MakePath(stateDir, LOG_PREFIX, generation); numLogRecords = RecoverFile(logPath); Checkpoint(); /* * Clean up stateDir without removing the current snapshot and log. */ while(fileList != NULL) { char *cur = ListOfString_Head(fileList); if(strcmp(snapshotPath, cur) && strcmp(logPath, cur)) { remove(cur); } fileList = ListOfString_RemoveElement(fileList, cur); } }
WORD ToppyFramework::Hdd_ChangeDir(char *dir ) { CString sChange = dir; if (sChange == ".") return 1; if (sChange.ReverseFind(L'/') == sChange.GetLength() -1) { return 0; // toppy doesn't like stuff ending with / } else { if (sChange.ReverseFind(L'.') == sChange.GetLength() - 1) sChange += "/"; // however this routine likes it so we put one on to make the code below simpler } while (sChange.Left(3) == "../") { if (m_sCurrentFolder == "/") return 1; int iTrim = m_sCurrentFolder.ReverseFind('/'); if (iTrim >= 0) m_sCurrentFolder = m_sCurrentFolder.Left(iTrim); sChange = sChange.Mid(3); } if (sChange.IsEmpty()) return 1; word result = 1; CString sNewDir = MakePath(sChange); if (_access(sNewDir, 00) != 0) { result = 0; while (true) { int iTrim = sChange.ReverseFind('/'); sChange = sChange.Left(iTrim); if (sChange.IsEmpty()) break; sNewDir = MakePath(sChange); if (_access(sNewDir, 00) == 0) break; } } if (!sChange.IsEmpty()) m_sCurrentFolder += "/"; m_sCurrentFolder += sChange; return result; }
void CWndPartyCtrl::OnInitialUpdate() { CRect rect = GetWindowRect(); m_wndScrollBar.AddWndStyle( WBS_DOCKING ); m_wndScrollBar.Create( WBS_VERT, rect, this, 1000 );//,m_pSprPack,-1); m_nFontHeight = 20;//GetFontHeight( &g_2DRender ); RestoreDeviceObjects(); m_texGauEmptyNormal.LoadTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "GauEmptySmall.bmp" ), 0xffff00ff, TRUE ); m_texGauFillNormal.LoadTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "GauFillSmall.bmp" ), 0xffff00ff, TRUE ); }
string MakeUserRoot(string &userName) { string path = GetEnvVar("USER_ROOT"); if(path.empty()) { path = USER_ROOT; } MakePath(path,userName); MakePath(path,"/home/wwwroot"); return path; }
QString WUploadThread::MakeUploadPath(MessageRef ref) { QString filename; if (GetStringFromMessage(ref, "beshare:File Name", filename) == B_OK) { QString path; if (GetStringFromMessage(ref, "winshare:Path", path) == B_OK) return MakePath(path, filename); if (GetStringFromMessage(ref, "beshare:Path", path) == B_OK) return MakePath(path, filename); } return QString::null; }
void MysteryDungeonMaker::CreateDungeon() { ResetMap(); std::vector<Component> section_components; const size_t sectionRowNum = dungeonSize->DungeonRowNum(); const size_t sectionColumnNum = dungeonSize->DungeonColumnNum(); for (size_t i = 0; i < sectionRowNum; i++) { for (size_t j = 0; j < sectionColumnNum; j++) { section_components.push_back(Component(i, j)); this->sections[i][j].SetComponent(i, j); } } std::random_device rd; shuffle(section_components.begin(), section_components.end(), std::mt19937_64(rd())); for (int i = 0; i < roomNum; i++) { int i_section = section_components[i].i; int j_section = section_components[i].j; int width = GetRandInRange(minRoomWidth, sectionColumnNum - 4); int height = GetRandInRange(minRoomHeight, sectionRowNum - 4); MakeRoom(Component(i_section, j_section), width, height); } MakePath(); }
BOOL CWndBlessingCancel::OnDropIcon( LPSHORTCUT pShortcut, CPoint point ) { CItemElem* pTempElem; pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId ); if( g_xRandomOptionProperty->GetRandomOptionKind( pTempElem ) == CRandomOptionProperty::eBlessing && g_xRandomOptionProperty->GetRandomOptionSize( pTempElem->GetRandomOptItemId() )) { // 하락 상태가 된 아이템만 올릴 수 있다. if(pTempElem != NULL) { if(m_pItemElem) m_pItemElem->SetExtra(0); m_pItemElem = pTempElem; m_pEItemProp = m_pItemElem->GetProp(); m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START); pButton->EnableWindow(TRUE); LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_CHANGE ); if(m_pEItemProp != NULL) { m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff ); } } } else { g_WndMng.PutString( prj.GetText(TID_GAME_BLESSEDNESS_CANCEL), NULL, 0xffff0000 ); return FALSE; } return TRUE; }
void PreConnection(char *param, char open_mode, int data_mode) { char tmp[PATH_MAX]; char mode[3]; struct stat s; MakePath(tmp, path, param); mode[0] = open_mode; if (transfer_type == 'i') mode[1] = 'b'; else mode[1] = 't'; mode[2] = 0; if (data_mode && stat(tmp, &s) == -1) { Error(param); return; }; if ((data_file = fopen(tmp, mode)) == NULL) { Error(param); return; }; if (open_mode != 'a') fseek(data_file, file_rest, SEEK_SET); if (data_mode) { sprintf(tmp, "%s (%d bytes)", param, (int)(s.st_size - file_rest)); } else { strcpy(tmp, param); }; DataConnection(data_mode, transfer_type, tmp); };
//----------------------------------------------------------------------------- BOOL CMapInformationManager::LoadMapMonsterInformationPack( void ) { for( MapComboBoxDataVector::iterator Iterator = m_MapNameVector.begin(); Iterator != m_MapNameVector.end(); ++Iterator ) { CMapComboBoxData* pMapComboBoxData = ( CMapComboBoxData* )( *Iterator ); if( pMapComboBoxData == NULL ) { continue; } if( pMapComboBoxData->GetMapMonsterInformationFileName() == _T( "" ) ) { continue; } CMapMonsterInformationPack* pMapMonsterInformationPack = new CMapMonsterInformationPack; if( pMapMonsterInformationPack->LoadScript( MakePath( DIR_THEME, pMapComboBoxData->GetMapMonsterInformationFileName() ) ) == FALSE ) { continue; } m_MapMonsterInformationPackMap[ pMapComboBoxData->GetID() ] = pMapMonsterInformationPack; } return TRUE; }
bool BackupMgr::SaveBackup(SciDoc*sci) { FXString savename; FXString untitled; untitled.format(FN_FMT, backupdir.text(), abs(getpid()), SciDocUtils::ID(sci)); if (SciDocUtils::Filename(sci).empty()) { savename=untitled; } else { if (FXStat::isFile(untitled)) { RemoveBackup(untitled); } #ifdef WIN32 savename=SciDocUtils::Filename(sci).text(); savename.substitute(':', '%', true); savename.prepend(backupdir.text()); #else savename.format("%s%s", backupdir.text(), SciDocUtils::Filename(sci).text()); #endif } if (MakePath(FXPath::directory(savename))) { if (SciDocUtils::SaveToFile(sci,savename.text(),false)) { SciDocUtils::NeedBackup(sci, false); return true; } else { lasterror=SciDocUtils::GetLastError(sci); ErrorMessage(_("Failed to save backup"), savename); return false; } } else { return false; } }
void FileMisc::ReplaceExtension(CString& sFilePath, const TCHAR* szExt) { CString sDrive, sDir, sFile; SplitPath(sFilePath, &sDrive, &sDir, &sFile); MakePath(sFilePath, sDrive, sDir, sFile, szExt); }
CString FileMisc::GetFullPath(const CString& sFilePath, const CString& sRelativeToFolder) { if (!::PathIsRelative(sFilePath)) { // special case: filename has no drive letter and is not UNC if (sFilePath.Find(_T(":\\")) == -1 && sFilePath.Find(_T("\\\\")) == -1) { CString sFullPath, sDrive; SplitPath(sRelativeToFolder, &sDrive); return MakePath(sFullPath, sDrive, NULL, sFilePath); } // else return sFilePath; } CString sSrcPath(sRelativeToFolder); FileMisc::TerminatePath(sSrcPath); sSrcPath += sFilePath; TCHAR szFullPath[MAX_PATH + 1]; BOOL bRes = ::PathCanonicalize(szFullPath, sSrcPath); return bRes ? CString(szFullPath) : sSrcPath; }
BOOL CWndLvReqDown::OnDropIcon( LPSHORTCUT pShortcut, CPoint point ) { CItemElem* pTempElem; pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId ); // 하락 상태가 된 아이템만 올릴 수 있다. if( pTempElem != NULL) { if(pTempElem->GetLevelDown() < 0) { if(m_pItemElem) m_pItemElem->SetExtra(0); m_pItemElem = pTempElem; m_pEItemProp = m_pItemElem->GetProp(); if(m_pEItemProp != NULL) { m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff ); } m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1); pButton->EnableWindow(TRUE); } } return TRUE; }
void CWndPvpBase::OnInitialUpdate() { CWndBase::OnInitialUpdate(); int y = 105; if( g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ) ) m_wndChangeJob.Create( ">", 0, CRect( 135, y, 135+40, y + 13 ), this, 10 ); #if __VER >= 9 // __CSC_VER9_2 SetTexture( m_pApp->m_pd3dDevice, MakePath( "Data\\Theme\\", ::GetLanguage(), _T( "WndPvP2.tga" ) ), TRUE ); #else //__CSC_VER9_2 SetTexture( m_pApp->m_pd3dDevice, MakePath( "Data\\Theme\\", ::GetLanguage(), _T( "wndPvP.tga" ) ), TRUE ); #endif //__CSC_VER9_2 FitTextureSize(); }
/* BrowseDlg用 WM_COMMAND 処理 */ BOOL TBrowseDirDlg::EvCommand(WORD wNotifyCode, WORD wID, LPARAM hwndCtl) { switch (wID) { case MKDIR_BUTTON: { char dirBuf[MAX_PATH], path[MAX_PATH]; TInputDlg dlg(dirBuf, this); if (dlg.Exec() != IDOK) return TRUE; MakePath(path, fileBuf, dirBuf); if (::CreateDirectory(path, NULL)) { strcpy(fileBuf, path); dirtyFlg = TRUE; PostMessage(WM_CLOSE, 0, 0); } } return TRUE; case RMDIR_BUTTON: if (::RemoveDirectory(fileBuf)) { GetParentDir(fileBuf, fileBuf); dirtyFlg = TRUE; PostMessage(WM_CLOSE, 0, 0); } return TRUE; } return FALSE; }
int ShellExtFunc(char *setup_dir, ShellExtOpe kind) { char buf[MAX_PATH]; int ret = FALSE; MakePath(buf, setup_dir, CURRENT_SHEXTDLL); HMODULE hShellExtDll = TLoadLibrary(buf); if (hShellExtDll) { BOOL (WINAPI *IsRegisterDll)(void) = (BOOL (WINAPI *)(void)) GetProcAddress(hShellExtDll, "IsRegistServer"); HRESULT (WINAPI *UnRegisterDll)(void) = (HRESULT (WINAPI *)(void)) GetProcAddress(hShellExtDll, "DllUnregisterServer"); if (IsRegisterDll && UnRegisterDll) { switch (kind) { case CHECK_SHELLEXT: ret = IsRegisterDll(); break; case UNREGISTER_SHELLEXT: ret = UnRegisterDll(); break; } ::FreeLibrary(hShellExtDll); } } return ret; }
// See if there is a pending reboot which must be activated before installing the given product. // If so, reboot. void MasterInstaller_t::TestAndPerformPendingReboot(int iProduct) { bool fTestRegPendingRename = m_ppmProductManager->GetRebootTestRegPendingFlag(iProduct); bool fTestWininit = m_ppmProductManager->GetRebootWininitFlag(iProduct); bool fRebootPending = g_fRebootPending; if (!fRebootPending && fTestRegPendingRename) { // We need to see if the PendingFileRenameOperations registry setting is present: LONG lResult; HKEY hKey = NULL; lResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("System\\CurrentControlSet\\Control\\Session Manager"), NULL, KEY_READ, &hKey); // We don't proceed unless the call above succeeds: if (ERROR_SUCCESS == lResult) { lResult = RegQueryValueEx(hKey, _T("PendingFileRenameOperations"), NULL, NULL, NULL, NULL); RegCloseKey(hKey); if (ERROR_SUCCESS == lResult) fRebootPending = true; } } if (!fRebootPending && fTestWininit) { // We need to test if the file Wininit.ini is present. // Find out where Windows is located: _TCHAR * pszWinPath = GetFolderPathNew(CSIDL_WINDOWS); if (pszWinPath) { // Add the file name: _TCHAR * pszWininitPath = MakePath(pszWinPath, _T("Wininit.ini")); delete[] pszWinPath; pszWinPath = NULL; // See if the file exists: FILE * f; if (_tfopen_s(&f, pszWininitPath, _T("r")) == 0) { fclose(f); fRebootPending = true; } delete[] pszWininitPath; pszWininitPath = NULL; } } if (fRebootPending && m_ppmProductManager->GetFlushRebootFlag(iProduct)) { g_Log.Write(_T("A reboot is pending and %s requires it to be flushed."), m_ppmProductManager->GetName(iProduct)); g_ProgRecord.WriteRunOnce(); FriendlyReboot(); // Doesn't return } }
bool TRoss::ReadUnitComments() { m_UnitComments.clear(); UnitCommentsFile[0] = 0; if (!MakePath (RossPath, "Comments.bin", UnitCommentsFile)) { ErrorMessage ("Cannot find Comments.bin or Comments.txt"); return false; }; if (!IsBinFile (UnitCommentsFile)) return false; ReadVector<TUnitComment>(UnitCommentsFile, m_UnitComments); sort (m_UnitComments.begin(), m_UnitComments.end()); // handle the error with comments in some previous versions if (m_UnitComments.size() != m_Units.size()) { EstablishOneToOneCorrespondenceBetweenEntriesAndComments(*this); }; assert(m_UnitComments.size() == m_Units.size()); m_bShouldSaveComments = true; return true; };
ContentHandle* ContentManager::ReadFile(std::wstring fileName) { auto p = MakePath(fileName); ContentHandle* ch = nullptr; if (m_dictHandles.TryGet(p, &ch)) { if (ch && !ch->IsClosed()) return ch; } else if (m_dictHandles.TryGet(fileName, &ch)) { if (ch && !ch->IsClosed()) return ch; } if (PathExists(p)) { ch = new ContentHandle(p); if (ch->GetStream()->operator!()) ch = nullptr; if (ch) RegisterHandle(p, ch); } else { Formats::SMC::smcs_info inf; if (m_pSystem->GetEntry(fileName, &inf)) { ch = new ContentHandle(inf); if (ch) RegisterHandle(fileName, ch); } } return ch; }
BOOL CNpcProperty::LoadDialog( LPCHARACTER lpCharacter ) { if( lpCharacter->m_szDialog[0] == '\0' ) return FALSE; #if defined(__REMOVE_SCIRPT_060712) int n = strlen( lpCharacter->m_szDialog ) - 4; if( n > 0 ) { strcpy( m_szName, lpCharacter->m_szDialog ); m_szName[n] = '\0'; _tcslwr( m_szName ); return TRUE; } else return FALSE; #else // __REMOVE_SCIRPT_060712 char lpOutputString[100] = { 0, }; sprintf( lpOutputString, "dialog file: %s\n", lpCharacter->m_szDialog ); OutputDebugString( lpOutputString ); m_Dialog.Free(); return m_Dialog.LoadScript( MakePath( DIR_DIALOG, ::GetLanguage(), lpCharacter->m_szDialog ) ); #endif // not __REMOVE_SCIRPT_060712 }
void CWndVendorCtrl::OnInitialUpdate( void ) { CRect rect = GetWindowRect(); rect.left = rect.right - 15; m_pTex = m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "WndPosMark.tga" ), 0xffff00ff ); }
//----------------------------------------------------------------------------- BOOL CMapInformationManager::LoadRainbowNPCInformationPack( void ) { m_pRainbowNPCInformationPack = new CRainbowNPCInformationPack; m_pRainbowNPCInformationPack->LoadScript( MakePath( DIR_THEME, _T( "texMapRainbow_NPC.inc" ) ) ); return TRUE; }
void CWndRegVend::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndStatic* pStatic = (CWndStatic*)GetDlgItem(WIDC_SELLNUM); CRect rect = pStatic->GetWindowRect(TRUE); m_pt[0] = pStatic->GetWindowRect(TRUE).TopLeft(); m_pt[0].y -= 4; m_pt[0].x -= 4; pStatic->AddWndStyle(WSS_MONEY); pStatic = (CWndStatic*)GetDlgItem(WIDC_SELLPRI); rect = pStatic->GetWindowRect(TRUE); m_pt[1] = pStatic->GetWindowRect(TRUE).TopLeft(); m_pt[1].y -= 4; m_pt[1].x -= 4; pStatic->AddWndStyle(WSS_MONEY); m_bIsFirst = TRUE; m_Calc.m_nValue = 0; m_Calc.m_ch = 0; SetFocus(); m_pTex = m_textureMng.AddTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "WndVenderArrowEx.tga" ), 0xffff00ff ); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
int FileMisc::FindFiles(const CString& sFolder, CStringArray& aFiles, LPCTSTR szPattern) { CFileFind ff; CString sSearchSpec; MakePath(sSearchSpec, NULL, sFolder, szPattern, NULL); BOOL bContinue = ff.FindFile(sSearchSpec); while (bContinue) { bContinue = ff.FindNextFile(); if (!ff.IsDots()) { if (ff.IsDirectory()) { FindFiles(ff.GetFilePath(), aFiles, szPattern); } else { aFiles.Add(ff.GetFilePath()); } } } return aFiles.GetSize(); }
void CWndGuideTextMgr::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); DelWndStyle(WBS_MOVE); AddWndStyle(WBS_TOPMOST); m_wndTitleBar.SetVisible( FALSE ); m_bVisible = FALSE; CWndText* pWndText; CWndButton* pWndButton; pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 ); m_Rect[0] = pWndText->GetWndRect(); pWndButton = (CWndButton*)GetDlgItem( WIDC_BACK ); m_Rect[1] = pWndButton->GetWndRect(); #if __VER >= 12 // __MOD_TUTORIAL pWndButton->SetVisible(FALSE); #endif pWndButton = (CWndButton*)GetDlgItem( WIDC_NEXT ); m_Rect[2] = pWndButton->GetWndRect(); m_Rect[3] = GetWndRect(); m_nCurrentVector = 0; m_VecGuideText.clear(); m_pTextureBG = m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "GuideBG.tga" ), 0, TRUE ); }