forked from eden-emu/eden
		
	vfs: Add unreachable assert to file permissions converter
This commit is contained in:
		
							parent
							
								
									6b97b22716
								
							
						
					
					
						commit
						4f44293e63
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -6,7 +6,7 @@ | |||
| #include <cstddef> | ||||
| #include <iterator> | ||||
| #include <utility> | ||||
| 
 | ||||
| #include "common/assert.h" | ||||
| #include "common/common_paths.h" | ||||
| #include "common/logging/log.h" | ||||
| #include "core/file_sys/vfs_real.h" | ||||
|  | @ -29,6 +29,8 @@ static std::string ModeFlagsToString(Mode mode) { | |||
|             mode_str = "a"; | ||||
|         else if (mode & Mode::Write) | ||||
|             mode_str = "w"; | ||||
|         else | ||||
|             UNREACHABLE_MSG("Invalid file open mode: {:02X}", static_cast<u8>(mode)); | ||||
|     } | ||||
| 
 | ||||
|     mode_str += "b"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zach Hilman
						Zach Hilman