Skip to content

Commit 99d4545

Browse files
committed
remove debug print
1 parent cbf5ca8 commit 99d4545

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Source/System/ContentFile.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void ContentFile::FreeAllLoaded() {
6363
int 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

200200
void 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

Comments
 (0)