Raise exception on FileSystem::openReadRaw
This commit is contained in:
		
							parent
							
								
									0c64b6c4b5
								
							
						
					
					
						commit
						0b04d60ce0
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -650,7 +650,8 @@ void FileSystem::openReadRaw(SDL_RWops &ops,
 | 
				
			||||||
                             bool freeOnClose)
 | 
					                             bool freeOnClose)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PHYSFS_File *handle = PHYSFS_openRead(filename);
 | 
						PHYSFS_File *handle = PHYSFS_openRead(filename);
 | 
				
			||||||
	assert(handle);
 | 
						if (!handle)
 | 
				
			||||||
 | 
							throw Exception(Exception::NoFileError, "%s", filename);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	initReadOps(handle, ops, freeOnClose);
 | 
						initReadOps(handle, ops, freeOnClose);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue