MRI-Binding: Allow manually specifying load paths in config
This commit is contained in:
		
							parent
							
								
									393a283d99
								
							
						
					
					
						commit
						ec16210f8a
					
				
					 4 changed files with 48 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -84,6 +84,7 @@ void Config::read(int argc, char *argv[])
 | 
			
		|||
	        PO_DESC_ALL
 | 
			
		||||
	        ("RTP", po::value<StringVec>()->composing())
 | 
			
		||||
	        ("fontSub", po::value<StringVec>()->composing())
 | 
			
		||||
	        ("rubyLoadpath", po::value<StringVec>()->composing())
 | 
			
		||||
	        ;
 | 
			
		||||
 | 
			
		||||
	po::variables_map vm;
 | 
			
		||||
| 
						 | 
				
			
			@ -118,6 +119,8 @@ void Config::read(int argc, char *argv[])
 | 
			
		|||
 | 
			
		||||
	GUARD_ALL( fontSubs = vm["fontSub"].as<StringVec>(); );
 | 
			
		||||
 | 
			
		||||
	GUARD_ALL( rubyLoadpaths = vm["rubyLoadpath"].as<StringVec>(); )
 | 
			
		||||
 | 
			
		||||
#undef PO_DESC
 | 
			
		||||
#undef PO_DESC_ALL
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,6 +57,8 @@ struct Config
 | 
			
		|||
 | 
			
		||||
	std::vector<std::string> fontSubs;
 | 
			
		||||
 | 
			
		||||
	std::vector<std::string> rubyLoadpaths;
 | 
			
		||||
 | 
			
		||||
	/* Game INI contents */
 | 
			
		||||
	struct {
 | 
			
		||||
		std::string scripts;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue