mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 02:40:05 +00:00
Log every 100th repeated line
This commit is contained in:
parent
d267880198
commit
5316b0905f
@ -151,6 +151,10 @@ void LogMessage(Class log_class, Level log_level, const char* filename, unsigned
|
||||
if (entry == prev_entry) {
|
||||
prev_entry.count++;
|
||||
prev_entry.timestamp = entry.timestamp;
|
||||
if (prev_entry.count == 100) {
|
||||
PrintColoredMessage(prev_entry);
|
||||
prev_entry.count = 0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (prev_entry.count != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user