mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:56:43 +00:00 
			
		
		
		
	same for launcher
This commit is contained in:
		
							parent
							
								
									4c2fffdd61
								
							
						
					
					
						commit
						7aaa7f185f
					
				
					 1 changed files with 9 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -180,7 +180,7 @@ void DataFilesPage::setupDataFiles()
 | 
			
		|||
 | 
			
		||||
    desc.add_options()
 | 
			
		||||
        ("data", boost::program_options::value<Files::PathContainer>()->default_value(Files::PathContainer(), "data")->multitoken())
 | 
			
		||||
        ("data-local", boost::program_options::value<std::string>()->default_value(""))
 | 
			
		||||
//        ("data-local", boost::program_options::value<std::string>()->default_value(""))
 | 
			
		||||
        ("fs-strict", boost::program_options::value<bool>()->implicit_value(true)->default_value(false))
 | 
			
		||||
        ("encoding", boost::program_options::value<std::string>()->default_value("win1252"));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -188,17 +188,15 @@ void DataFilesPage::setupDataFiles()
 | 
			
		|||
 | 
			
		||||
    // Put the paths in a boost::filesystem vector to use with Files::Collections
 | 
			
		||||
    Files::PathContainer dataDirs(variables["data"].as<Files::PathContainer>());
 | 
			
		||||
 
 | 
			
		||||
    std::string local(variables["data-local"].as<std::string>());
 | 
			
		||||
    if (!local.empty())
 | 
			
		||||
    {
 | 
			
		||||
        dataDirs.push_back(Files::PathContainer::value_type(local));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (dataDirs.empty())
 | 
			
		||||
    {
 | 
			
		||||
        dataDirs.push_back(mCfgMgr.getLocalPath());
 | 
			
		||||
    }
 | 
			
		||||
//    std::string local(variables["data-local"].as<std::string>());
 | 
			
		||||
//    if (!local.empty())
 | 
			
		||||
//    {
 | 
			
		||||
//        dataDirs.push_back(Files::PathContainer::value_type(local));
 | 
			
		||||
//    }
 | 
			
		||||
 | 
			
		||||
    if (dataDirs.size()>1)
 | 
			
		||||
        dataDirs.resize (1);
 | 
			
		||||
 | 
			
		||||
    mCfgMgr.processPaths(dataDirs);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue