summaryrefslogtreecommitdiff
path: root/Source/Core/Common/CommonFuncs.cpp
AgeCommit message (Collapse)Author
2026-07-08mingw: lower case windows includesCraig Carnell
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...)
2025-10-04CommonFuncs: Add StrerrorString version of LastStrerrorString that accepts ↵Jordan Woyak
an error number.
2025-07-19Common: Move GetDeviceProperty() into its own headerAdmiral H. Curtiss
Otherwise we include Windows headers in the entire codebase through CommonFuncs.h
2025-06-13Host: Implement a Windows-only implementation of `GetDeviceNameFromVIDPID`Joshua Vandaële
2023-12-29Common: Fix encoding handling in GetWin32ErrorStringJosJuice
These messages can be localized, so we can't just assume it's all ASCII.
2023-07-28CommonFuncs: Add GetWin32ErrorString().Admiral H. Curtiss
2023-07-12Common/CommonFuncs: Add StrErrorWrapper functionSepalani
2023-04-18Common/CommonFuncs: Move interface into Common namespaceLioncash
Gets these functions out of the global namespace.
2021-12-10Treewide: Adjust order of includesPokechu22
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.
2020-07-16Add Android check for strerror_r variantJosJuice
I don't know why Android does it like this, but at least it's easy to fix. (We are currently at __ANDROID_API__ == 21.)
2019-10-07Move GetModuleName to CommonSilent
This unifies GetModuleFileName calls between Dolphin and WinUpdater and allows to gracefully remove MAX_PATH limit from GetExePath
2018-04-12Reformat all the things!spycrab
2017-12-18Handle both the XSI and GNU versions of strerror_rJosJuice
Trying to force the XSI version by undefining _GNU_SOURCE can lead to compilation errors on some systems because of headers expecting that _GNU_SOURCE is defined. This commit uses define checks to detect which version we have. I tried making an overloaded function (int and const char*) instead, but that led to a warning about one of the variants being unused.
2017-08-18CommonFuncs: LastStrerrorString addedSepalani
2017-06-27Try to make sure that we have the XSI version of strerror_rJosJuice
2017-04-15Rename Misc.cpp to CommonFuncs.cppJosJuice
Because its only function is declared in CommonFuncs.h.