forked from teamnwah/openmw-tes3coop
		
	fix opening BSA on Unicode path
This commit is contained in:
		
							parent
							
								
									417e07fbce
								
							
						
					
					
						commit
						493f8c6050
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -25,6 +25,9 @@ | |||
| 
 | ||||
| #include <stdexcept> | ||||
| 
 | ||||
| #include <boost/filesystem/path.hpp> | ||||
| #include <boost/filesystem/fstream.hpp> | ||||
| 
 | ||||
| #include "../files/constrainedfiledatastream.hpp" | ||||
| 
 | ||||
| using namespace std; | ||||
|  | @ -72,7 +75,8 @@ void BSAFile::readHeader() | |||
|      */ | ||||
|     assert(!isLoaded); | ||||
| 
 | ||||
|     std::ifstream input(filename.c_str(), std::ios_base::binary); | ||||
|     namespace bfs = boost::filesystem; | ||||
|     bfs::ifstream input(bfs::path(filename), std::ios_base::binary); | ||||
| 
 | ||||
|     // Total archive size
 | ||||
|     size_t fsize = 0; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue