mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Remove unsupported media formats from client.cpp
This commit is contained in:
		@@ -770,7 +770,6 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
 | 
			
		||||
 | 
			
		||||
	const char *image_ext[] = {
 | 
			
		||||
		".png", ".jpg", ".bmp", ".tga",
 | 
			
		||||
		".pcx", ".ppm", ".psd", ".wal", ".rgb",
 | 
			
		||||
		NULL
 | 
			
		||||
	};
 | 
			
		||||
	name = removeStringEnd(filename, image_ext);
 | 
			
		||||
@@ -818,7 +817,7 @@ bool Client::loadMedia(const std::string &data, const std::string &filename,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const char *model_ext[] = {
 | 
			
		||||
		".x", ".b3d", ".md2", ".obj",
 | 
			
		||||
		".x", ".b3d", ".obj",
 | 
			
		||||
		NULL
 | 
			
		||||
	};
 | 
			
		||||
	name = removeStringEnd(filename, model_ext);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user