@@ -136,22 +136,22 @@ bool CRenderWareSA::HasClothesReplacementChanged()
136136// Add a file to the clothes directory
137137//
138138// //////////////////////////////////////////////////////////////
139- bool CRenderWareSA::ClothesAddFile (const char * pFileData, size_t fileSize, const char * pFileName )
139+ bool CRenderWareSA::ClothesAddFile (const char * fileData, std:: size_t fileSize, const char * fileName )
140140{
141- if (!pFileData || !pFileName )
141+ if (!fileData || !fileName )
142142 return false ;
143143
144- if (MapFind (ms_ClothesFileDataMap, pFileName ))
144+ if (MapFind (ms_ClothesFileDataMap, fileName ))
145145 return false ;
146146
147147 DirectoryInfoSA entry{};
148148 entry.m_streamingSize = GetSizeInBlocks (fileSize);
149- strncpy (entry.m_name , pFileName , sizeof (entry.m_name ));
149+ std:: strncpy (entry.m_name , fileName , sizeof (entry.m_name ));
150150
151151 if (!g_clothesDirectory->AddEntry (entry))
152152 return false ;
153153
154- MapSet (ms_ClothesFileDataMap, pFileName , (char *)pFileData );
154+ MapSet (ms_ClothesFileDataMap, fileName , (char *)fileData );
155155 bClothesReplacementChanged = true ;
156156
157157 return true ;
@@ -164,14 +164,14 @@ bool CRenderWareSA::ClothesAddFile(const char* pFileData, size_t fileSize, const
164164// Remove a file from the clothes directory
165165//
166166// //////////////////////////////////////////////////////////////
167- bool CRenderWareSA::ClothesRemoveFile (char * pFileData )
167+ bool CRenderWareSA::ClothesRemoveFile (char * fileData )
168168{
169- if (!pFileData )
169+ if (!fileData )
170170 return false ;
171171
172172 for (auto iter = ms_ClothesFileDataMap.begin (); iter != ms_ClothesFileDataMap.end ();)
173173 {
174- if (iter->second == pFileData )
174+ if (iter->second == fileData )
175175 {
176176 if (!g_clothesDirectory->RemoveEntry (iter->first .c_str ()))
177177 return false ;
@@ -191,14 +191,9 @@ bool CRenderWareSA::ClothesRemoveFile(char* pFileData)
191191// Check if clothe file exits
192192//
193193// //////////////////////////////////////////////////////////////
194- bool CRenderWareSA::HasClothesFile (const char * pFileName )
194+ bool CRenderWareSA::HasClothesFile (const char * fileName )
195195{
196- if (!pFileName)
197- {
198- return false ;
199- }
200-
201- if (!MapFind (ms_ClothesFileDataMap, pFileName))
196+ if (!fileName || !MapFind (ms_ClothesFileDataMap, fileName))
202197 {
203198 return false ;
204199 }
0 commit comments