@@ -63,8 +63,8 @@ void ContentFile::FreeAllLoaded() {
6363int ContentFile::ReadProperty (const std::string_view& propName, Reader& reader) {
6464 StartPropertyList (return Serializable::ReadProperty (propName, reader));
6565
66- MatchForwards (" FilePath" )
67- MatchProperty (" Path" , { SetDataPath (reader.ReadPropValue ()); });
66+ MatchForwards (" FilePath" );
67+ MatchProperty (" Path" , { SetDataPath (reader.ReadPropValue ()); });
6868 MatchProperty (" IsMemoryPNG" , { reader >> m_IsMemoryPNG; });
6969
7070 EndPropertyList;
@@ -199,10 +199,8 @@ void ContentFile::ReadAndStoreBMPFileInfo(FILE* imageFile) {
199199
200200void ContentFile::ManuallyLoadDataPNG (const std::string& filePath, SDL_Surface* surface) {
201201 s_MemoryPNGs[filePath] = surface;
202- std::cout << filePath << " " ;
203202
204203 int bitDepth = SDL_GetPixelFormatDetails (surface->format )->bits_per_pixel ;
205- std::cout << bitDepth << std::endl;
206204 BITMAP* bitmap = create_bitmap_ex (bitDepth, surface->w , surface->h );
207205
208206 // Allegro doesn't align lines, SDL does 4byte alignment
@@ -401,7 +399,7 @@ FMOD::Sound* ContentFile::LoadAndReleaseSound(bool abortGameForInvalidSound, boo
401399 }
402400 if (!System::PathExistsCaseSensitive (m_DataPath)) {
403401 bool foundAltExtension = false ;
404- for (const std::string& altFileExtension: c_SupportedAudioFormats) {
402+ for (const char * altFileExtension: c_SupportedAudioFormats) {
405403 const std::string altDataPathToLoad = m_DataPathWithoutExtension + altFileExtension;
406404 if (System::PathExistsCaseSensitive (altDataPathToLoad)) {
407405 g_ConsoleMan.AddLoadWarningLogExtensionMismatchEntry (m_DataPath, m_FormattedReaderPosition, altFileExtension);
0 commit comments