| 
									
										
										
										
											2013-04-17 23:09:55 -04:00
										 |  |  | // Copyright 2013 Dolphin Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-10 13:54:46 -05:00
										 |  |  | #pragma once
 | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-02 19:46:55 -06:00
										 |  |  | #include <string>
 | 
					
						
							| 
									
										
										
										
											2014-02-17 05:18:15 -05:00
										 |  |  | #include <vector>
 | 
					
						
							| 
									
										
										
										
											2013-03-02 19:46:55 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-21 01:47:53 +01:00
										 |  |  | #include "Common/CommonTypes.h"
 | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace DiscIO | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2014-02-21 01:47:53 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | class IFileSystem; | 
					
						
							|  |  |  | class IVolume; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | class IBannerLoader | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2014-06-29 15:31:44 -04:00
										 |  |  | public: | 
					
						
							|  |  |  | 	IBannerLoader() | 
					
						
							| 
									
										
										
										
											2014-07-04 03:53:22 +02:00
										 |  |  | 		: m_IsValid(false) | 
					
						
							|  |  |  | 		, m_pBannerFile(nullptr) | 
					
						
							| 
									
										
										
										
											2014-06-29 15:31:44 -04:00
										 |  |  | 	{} | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-29 15:31:44 -04:00
										 |  |  | 	virtual ~IBannerLoader() | 
					
						
							|  |  |  | 	{} | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-29 15:31:44 -04:00
										 |  |  | 	virtual std::vector<u32> GetBanner(int* pWidth, int* pHeight) = 0; | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-29 15:31:44 -04:00
										 |  |  | 	virtual std::vector<std::string> GetNames() = 0; | 
					
						
							|  |  |  | 	virtual std::string GetCompany() = 0; | 
					
						
							|  |  |  | 	virtual std::vector<std::string> GetDescriptions() = 0; | 
					
						
							| 
									
										
										
										
											2014-06-29 15:38:48 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	bool IsValid() | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		return m_IsValid; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  | 	bool m_IsValid; | 
					
						
							|  |  |  | 	u8* m_pBannerFile; | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-06-07 02:54:07 +00:00
										 |  |  | IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume); | 
					
						
							| 
									
										
										
										
											2014-02-21 01:47:53 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | }  // namespace DiscIO
 |