mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #3596 from lioncash/disk
disk_archive: Minor miscellaneous cleanup
This commit is contained in:
		
						commit
						587bc06adf
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		|  | @ -52,7 +52,7 @@ bool DiskFile::Close() const { | ||||||
| 
 | 
 | ||||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||||
| 
 | 
 | ||||||
| DiskDirectory::DiskDirectory(const std::string& path) : directory() { | DiskDirectory::DiskDirectory(const std::string& path) { | ||||||
|     unsigned size = FileUtil::ScanDirectoryTree(path, directory); |     unsigned size = FileUtil::ScanDirectoryTree(path, directory); | ||||||
|     directory.size = size; |     directory.size = size; | ||||||
|     directory.isDirectory = true; |     directory.isDirectory = true; | ||||||
|  |  | ||||||
|  | @ -46,21 +46,20 @@ protected: | ||||||
| 
 | 
 | ||||||
| class DiskDirectory : public DirectoryBackend { | class DiskDirectory : public DirectoryBackend { | ||||||
| public: | public: | ||||||
|     DiskDirectory(const std::string& path); |     explicit DiskDirectory(const std::string& path); | ||||||
| 
 | 
 | ||||||
|     ~DiskDirectory() override { |     ~DiskDirectory() override { | ||||||
|         Close(); |         Close(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     u32 Read(const u32 count, Entry* entries) override; |     u32 Read(u32 count, Entry* entries) override; | ||||||
| 
 | 
 | ||||||
|     bool Close() const override { |     bool Close() const override { | ||||||
|         return true; |         return true; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| protected: | protected: | ||||||
|     u32 total_entries_in_directory; |     FileUtil::FSTEntry directory{}; | ||||||
|     FileUtil::FSTEntry directory; |  | ||||||
| 
 | 
 | ||||||
|     // We need to remember the last entry we returned, so a subsequent call to Read will continue
 |     // We need to remember the last entry we returned, so a subsequent call to Read will continue
 | ||||||
|     // from the next one.  This iterator will always point to the next unread entry.
 |     // from the next one.  This iterator will always point to the next unread entry.
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue