You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (PathFileExists(cpuCfgPath)) //If machine-specific ConEmu config file exists - use it.
219
+
if (PathFileExists(cpuCfgPath)) //config/ConEmu-%COMPUTERNAME%.xml file exists, use it.
220
220
{
221
-
if (PathFileExists(cfgPath)) //If vendorConEmu config file exists - back it up to config/ConEmu-%COMPUTERNAME%.xml.
221
+
if (PathFileExists(cfgPath)) // vendor/conemu-maximus5/ConEmu.xml file exists, copy vendor/conemu-maximus5/ConEmu.xml to config/ConEmu-%COMPUTERNAME%.xml.
222
222
{
223
223
if (!CopyFile(cfgPath, cpuCfgPath, FALSE))
224
224
{
225
225
MessageBox(NULL,
226
226
(GetLastError() == ERROR_ACCESS_DENIED)
227
-
? L"Failed to copy ConEmu.xml file to ConEmu-%COMPUTERNAME%.xml backup location! Restart Cmder as Administrator."
228
-
: L"Failed to copy ConEmu.xml file to ConEmu-%COMPUTERNAME%.xml backup location!", MB_TITLE, MB_ICONSTOP);
227
+
? L"Failed to copy vendor/conemu-maximus5/ConEmu.xml file to config/ConEmu-%COMPUTERNAME%.xml! Access Denied."
228
+
: L"Failed to copy vendor/conemu-maximus5/ConEmu.xml file to config/ConEmu-%COMPUTERNAME%.xml!", MB_TITLE, MB_ICONSTOP);
229
229
exit(1);
230
230
}
231
231
}
232
-
else//If vendorConEmu config file does not exists - Copy machine-specific config/ConEmu-%COMPUTERNAME%.xml to vendorConEmu.xml file
232
+
else// vendor/conemu-maximus5/ConEmu.xml config file does not exist, copy config/ConEmu-%COMPUTERNAME%.xml to vendor/conemu-maximus5/ConEmu.xml file
233
233
{
234
234
if (!CopyFile(cpuCfgPath, cfgPath, FALSE))
235
235
{
236
236
MessageBox(NULL,
237
237
(GetLastError() == ERROR_ACCESS_DENIED)
238
-
? L"Failed to copy ConEmu-%COMPUTERNAME%.xml file to vendored ConEmu.xml location! Restart Cmder as Administrator."
239
-
: L"Failed to copy ConEmu-%COMPUTERNAME%.xml file to vendored ConEmu.xml location!", MB_TITLE, MB_ICONSTOP);
238
+
? L"Failed to copy conig/ConEmu-%COMPUTERNAME%.xml file to vendor/conemu-maximus5/ConEmu.xml! Access Denied."
239
+
: L"Failed to copy config/ConEmu-%COMPUTERNAME%.xml file to vendor/conemu-maximus5/ConEmu.xml!", MB_TITLE, MB_ICONSTOP);
240
240
exit(1);
241
241
}
242
242
}
243
243
}
244
-
elseif (PathFileExists(userCfgPath)) //If config/user_conemu.xml exists use it.
244
+
elseif (PathFileExists(userCfgPath)) // config/user_conemu.xml exists, use it.
245
245
{
246
-
if (PathFileExists(cfgPath)) //If vendorconemu.xml exits back it up to config/user_conemu.xml.
246
+
if (PathFileExists(cfgPath)) // vendor/conemu-maximus5/ConEmu.xml exists, copy vendor/conemu-maximus5/ConEmu.xml to config/user_conemu.xml.
247
247
{
248
248
if (!CopyFile(cfgPath, userCfgPath, FALSE))
249
249
{
250
250
MessageBox(NULL,
251
251
(GetLastError() == ERROR_ACCESS_DENIED)
252
-
? L"Failed to copy ConEmu.xml file to backup location! Restart Cmder as Administrator."
253
-
: L"Failed to copy ConEmu.xml file to backup location!", MB_TITLE, MB_ICONSTOP);
252
+
? L"Failed to copy vendor/conemu-maximus5/ConEmu.xml file to config/user-conemu.xml! Access Denied."
253
+
: L"Failed to copy vendor/conemu-maximus5/ConEmu.xml file to config/user-conemu.xml!", MB_TITLE, MB_ICONSTOP);
254
254
exit(1);
255
255
}
256
256
}
257
-
else//If vendorconemu.xml does not exist copy user_conemu.xml to vendorconemu.xml
257
+
else// vendor/conemu-maximus5/ConEmu.xml does not exist, copy config/user-conemu.xml to vendor/conemu-maximus5/ConEmu.xml
258
258
{
259
259
if (!CopyFile(userCfgPath, cfgPath, FALSE))
260
260
{
261
261
MessageBox(NULL,
262
262
(GetLastError() == ERROR_ACCESS_DENIED)
263
-
? L"Failed to copy ConEmu.xml file to vendored ConEmu.xml location! Restart Cmder as Administrator."
264
-
: L"Failed to copy ConEmu.xml file to vendored ConEmu.xml location!", MB_TITLE, MB_ICONSTOP);
263
+
? L"Failed to copy config/user-conemu.xml file to vendor/conemu-maximus5/ConEmu.xml! Access Denied."
264
+
: L"Failed to copy config/user-conemu.xml file to vendor/conemu-maximus5/ConEmu.xml!", MB_TITLE, MB_ICONSTOP);
0 commit comments