forked from eden-emu/eden
		
	Merge pull request #6493 from Morph1984/fs-nodiscard
common: fs: Miscellaneous changes
This commit is contained in:
		
						commit
						0308a2679e
					
				
					 10 changed files with 48 additions and 48 deletions
				
			
		|  | @ -24,17 +24,12 @@ constexpr FS::FileAccessMode ModeFlagsToFileAccessMode(Mode mode) { | |||
|     case Mode::Read: | ||||
|         return FS::FileAccessMode::Read; | ||||
|     case Mode::Write: | ||||
|         return FS::FileAccessMode::Write; | ||||
|     case Mode::ReadWrite: | ||||
|         return FS::FileAccessMode::ReadWrite; | ||||
|     case Mode::Append: | ||||
|         return FS::FileAccessMode::Append; | ||||
|     case Mode::ReadAppend: | ||||
|         return FS::FileAccessMode::ReadAppend; | ||||
|     case Mode::WriteAppend: | ||||
|         return FS::FileAccessMode::Append; | ||||
|     case Mode::All: | ||||
|         return FS::FileAccessMode::ReadAppend; | ||||
|         return FS::FileAccessMode::ReadWrite; | ||||
|     default: | ||||
|         return {}; | ||||
|     } | ||||
|  |  | |||
|  | @ -313,7 +313,7 @@ void SynchronizeInternal(AM::Applets::AppletManager& applet_manager, DirectoryGe | |||
|         LOG_ERROR(Service_BCAT, "Boxcat synchronization failed with error '{}'!", res); | ||||
| 
 | ||||
|         if (res == DownloadResult::NoMatchBuildId || res == DownloadResult::NoMatchTitleId) { | ||||
|             void(Common::FS::RemoveFile(zip_path)); | ||||
|             Common::FS::RemoveFile(zip_path); | ||||
|         } | ||||
| 
 | ||||
|         HandleDownloadDisplayResult(applet_manager, res); | ||||
|  | @ -445,7 +445,7 @@ std::optional<std::vector<u8>> Boxcat::GetLaunchParameter(TitleIDVersion title) | |||
|             LOG_ERROR(Service_BCAT, "Boxcat synchronization failed with error '{}'!", res); | ||||
| 
 | ||||
|             if (res == DownloadResult::NoMatchBuildId || res == DownloadResult::NoMatchTitleId) { | ||||
|                 void(Common::FS::RemoveFile(bin_file_path)); | ||||
|                 Common::FS::RemoveFile(bin_file_path); | ||||
|             } | ||||
| 
 | ||||
|             HandleDownloadDisplayResult(applet_manager, res); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bunnei
						bunnei