| 33 | } |
| 34 | |
| 35 | HANDLE CMemFlash::Open( const char * pszFileName ) |
| 36 | { |
| 37 | if(strncmp(pszFileName,HOMEHEADER,HOMEHEADER_SIZE)!=0) return NULL; |
| 38 | SStringA str(pszFileName + HOMEHEADER_SIZE); |
| 39 | int pos=str.ReverseFind(NAME_SEP); |
| 40 | if(pos==-1) return NULL; |
| 41 | FileID *pID=new FileID; |
| 42 | pID->strType=S_CA2T(str.Left(pos)); |
| 43 | pID->strName=S_CA2T(str.Right(str.GetLength()-pos-1)); |
| 44 | return pID; |
| 45 | } |
| 46 | |
| 47 | void CMemFlash::Close( HANDLE f ) |
| 48 | { |
no test coverage detected