mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +08:00 
			
		
		
		
	added backup of ConEmu.xml to ./config folder at cmder launch if it exists
This commit is contained in:
		| @@ -158,6 +158,16 @@ void StartCmder(std::wstring path, bool is_single_mode) | ||||
| 			exit(1); | ||||
| 		} | ||||
| 	} | ||||
| 	else { | ||||
| 		if (!CopyFile(cfgPath, oldCfgPath, FALSE)) | ||||
| 		{ | ||||
| 			MessageBox(NULL, | ||||
| 				(GetLastError() == ERROR_ACCESS_DENIED) | ||||
| 				? L"Failed to backup ConEmu.xml file to ./config folder!" | ||||
| 				: L"Failed to backup ConEmu.xml file to ./config folder!", MB_TITLE, MB_ICONSTOP); | ||||
| 			exit(1); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (is_single_mode) | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user