Merge branch 'master' of github.com:Ancurio/mkxp
This commit is contained in:
		
						commit
						0a53a894dc
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -112,12 +112,12 @@ void Config::read()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static std::string baseName(const std::string &path)
 | 
					static std::string baseName(const std::string &path)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	size_t pos = path.find_last_of("/\\") + 1;
 | 
						size_t pos = path.find_last_of("/\\");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pos == path.npos)
 | 
						if (pos == path.npos)
 | 
				
			||||||
		pos = 0;
 | 
							return path;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return path.substr(pos);
 | 
						return path.substr(pos + 1);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Config::readGameINI()
 | 
					void Config::readGameINI()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue