Increase # of maximum log files from 3 to 4

This commit is contained in:
KeatonTheBot 2025-04-19 00:33:41 -05:00
parent ebe623bc07
commit 45db10220e

View file

@ -46,9 +46,9 @@ namespace Ryujinx.Common.Logging.Targets
return null;
}
// Clean up old logs, should only keep 3
// Clean up old logs, should only keep 4
FileInfo[] files = logDir.GetFiles("*.log").OrderBy((info => info.CreationTime)).ToArray();
for (int i = 0; i < files.Length - 2; i++)
for (int i = 0; i < files.Length - 3; i++)
{
try
{