VpStatusType VpMakeVp890DeviceObject( VpDevCtxType *pDevCtx, Vp890DeviceObjectType *pDevObj) { InitDeviceObject(pDevObj); if (pDevCtx != VP_NULL) { return VpMakeVp890DeviceCtx(pDevCtx, pDevObj); } else { return VP_STATUS_SUCCESS; } } /* VpMakeVp890DeviceObject() */
BOOL XProc_DeleteCharacter::InitializeProcess(void) { #ifdef _XDWDEBUG g_NormalGameExit = TRUE; #else g_NormalGameExit = FALSE; #endif _XSetDefaultPath(); if( !g_pTitleFlashObject ) { g_pTitleFlashObject = GetFlashControl(); if( !g_pTitleFlashObject ) return FALSE; g_pTitleFlashObject->initialize( gHWnd,gHInst,g_pTitleFlashOffScreenTexture); g_pTitleFlashObject->SetLowQuality(); } HDC pDC = GetDC( gHWnd ); g_pTitleFlashObject->SetDC( pDC ); if( g_LanguageType == _XLANGUAGE_TYPE_KOREAN ) { strcpy(flashfilename, _T("MAKING00.swf")); } else if( g_LanguageType == _XLANGUAGE_TYPE_VIETNAMESE ) { strcpy(flashfilename, _T("vn_MAKING00.swf")); } else if( g_LanguageType == _XLANGUAGE_TYPE_TAIWANESE ) { strcpy(flashfilename, _T("tw_MAKING00.swf")); } else { strcpy(flashfilename, _T("MAKING00.swf")); } _XPackageArchive package; _XSetDefaultPath( _XDEF_DEFAULTPATH_SCRIPTER ); #ifdef _XTESTSERVER if( !package.OpenPackage( _T("tsXSCENESCRIPT.XP") ) ) { return FALSE; } #else if( !package.OpenPackage( _T("XSCENESCRIPT.XP") ) ) { return FALSE; } #endif g_pTitleFlashObject->FreeBuffer(); g_pTitleFlashObject->ControlClose(); int resourceid = package.FindResource( flashfilename ); if( resourceid >= 0 ) { long filesize = package.GetPackedFileSize( resourceid ); g_pTitleFlashObject->SetResourceFilePtr( package.GetPackedFile( resourceid ), filesize ); g_pTitleFlashObject->ControlOpen( flashfilename ); g_pTitleFlashObject->SetLowQuality(); } package.FinalizePackage(); g_pTitleFlashObject->SetDC( 0 ); ReleaseDC( gHWnd, pDC ); g_pTitleFlashObject->SetOffScreenTextureObject( g_pTitleFlashOffScreenTexture ); g_EnvironmentManager.m_ObjectLight.Position = D3DXVECTOR3( -100.0f, 40.0f, -100.0f ); m_SelectedZone = 1; InitDeviceObject(); // 초기화가 끝나면 프로세스 활성화.. SetEnableProcess( TRUE ); return TRUE; }