mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
enhancement: Log command line parameters on startup (fixes #1380)
If logging is enabled, also log the full command line used to start up
This commit is contained in:
parent
d34f437687
commit
41f350ae9c
@ -1217,6 +1217,13 @@ static void parse_cmdline_and_init_file(int argc, TCHAR **argv)
|
||||
{
|
||||
_tcscpy (optionsfile, _T(""));
|
||||
|
||||
write_log("Command line parameters:");
|
||||
for (int i = 0; i < argc; i++)
|
||||
{
|
||||
write_log(" %s", argv[i]);
|
||||
}
|
||||
write_log("\n");
|
||||
|
||||
parse_cmdline_2(argc, argv);
|
||||
|
||||
_tcscat(optionsfile, restart_config);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user