summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MsgHandler.cpp
AgeCommit message (Collapse)Author
2026-05-06MsgHandler: Use log level matching MsgType for alertsDentomologist
When calling `ShowMessageAlert` with a given `MsgType`, log the alert with a `LogLevel` matching the `MsgType` instead of always using `LogLevel::LERROR`.
2026-01-25Remove unused importsMartino Fontana
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
2022-01-09Common/MsgHandler: Use caller's file and line number in log messagesPokechu22
This will assist with finding the source of a panic alert based on logs; before, Common\MsgHandler.cpp:113 (or similar) was always used.
2022-01-09Common/Assert: Actually use the ASSERT_MSG's log type parameterPokechu22
Since it was unused, nonexistent values were used in a few places. I've replaced them.
2022-01-09Common/MsgHandler: Remove non-format variants of PanicAlertPokechu22
They're no longer used.
2021-10-02Fix AbortOnPanicAlert with PanicAlertFmtPokechu22
PR #10066 added functionality to call std::abort when a panic alert occurs; however, that PR only implemented it for MsgAlert and not MsgAlertFmtImpl, meaning that the functionality was not used with PanicAlertFmt (only PanicAlert, which is not used frequently).
2021-08-29Add an option to abort when a panic alert occursLéo Lam
Prompted by https://dolphin.ci/#/builders/24/builds/985 A 1-character typo in a recent PR caused FifoCI builds to break horribly and spew millions of panic alerts until buildbot crashed. This PR adds a new config option -- defaulting to off -- that allows Dolphin to abort early on when a panic alert occurs instead of continuing forever.
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-12MsgHandler: Correct question and warning captionsxvrc
2020-11-09Common/MsgHandler: Add fmt-capable variants of the alert macrosLioncash
Adds an interface that uses fmt under the hood, which is much more flexible than printf, particularly for localization purposes, given fmt supports positional formatters in a cross-platform manner out of the box with no configuration necessary.
2020-10-23Common: Migrate logging to fmtLioncash
Continues the migration of our code over to the fmt logger.
2019-07-20Improve thread safety and remove an unnecessary string allocation from MsgAlertSilent
s_msg_handler still seems thread unsafe, not sure if it should be or not
2019-06-19Common/MsgHandler: Namespace code within the Common namespaceLioncash
Closes another gap in the Common library where code isn't being namespaced under it.
2019-06-19Common/MsgHandler: Brace if statement in MsgAlertLioncash
The condition travels more than one line, so the body should be braced. While we're at it, make the comparison against nullptr explicit.
2019-06-19Common/MsgHandler: Use std::string's empty for emptiness checking in MsgAlertLioncash
Provides more straightforward code compared to negating a length check.
2019-06-16Common/MsgHandler: Amend file-scope variable namesLioncash
Makes them follow our coding style.
2019-06-16Common/MsgHandler: Make default message handler and translator's internally ↵Lioncash
linked Previously these functions were declared without the static specifier, giving them external linkage, which isn't really ideal. Instead, we can place these functions up by the relevant file-scope variables and place them inside an anonymous namespace with said variables, giving them internal linkage.
2019-06-16Common/MsgHandler: Use fmt::print on non-Windows OSesLioncash
Provides the same behavior.
2018-08-07Cleanup: Remove some left over references to wxWidgetsspycrab
2017-08-03MsgHandler: small cleanupMichael M
2017-01-23Add includes for building on Windows without PCHMichael Maltese
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2015-11-20Mark more strings for translationJosJuice
2015-11-08NoGui: Return no to yes/no panic alerts.Scott Mansell
Also, print to stderr instead of stdio.
2015-09-28Fix building with PCH disabled.Rohit Nirmal
2015-09-26Common: Remove other Common prefixed headers from Common.hLioncash
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-02-25Formatting/Whitespace CleanupStevoisiak
Various fixes to formatting and whitespace
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-02-22Make Common/ mostly IWYU clean (and fix errors in rest of the project ↵Pierre Bourdon
detected by this change).
2014-02-18Convert all includes to relative paths.Lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre