Vita3K-Android/vita3k
bookmist 1fda880a94 vita3k: big code cleanup
Improvements
* lang: a bit more verbose error on wrong lang xml

Bugfixes
* kernel/sync_primitives: fix theoretically possible AV
* modules/SceAudio: a bit more correct sceAudioOutSetConfig
* fix wrong objects initialisation ({0} -> {})

Warning fixes
* clang warning: Macro argument should be enclosed in parentheses
[bugprone-macro-parentheses]
* modules: set unsigned type for Sce*ErrorCode enums
* clang warning: variable might be not be initialized
* clang warning: Function returns by const value. Consider returning by non-const value instead.
* clang warning: Prefer transparent functors [modernize-use-transparent-functors]

Refactoring
* io/device: move functions implementation from .h to .cpp file
* vita3k: fix fs::path usage
* clang warning: 'if' statement is unnecessary; deleting null pointer has no effect
* vita3k: use structured bindings and references in for-each-loops
* vita3k: simplify container operations, extract frequent operations to utility functions
* clang⚠️ 'contains' member function can be used
* kernel/sync_primitives: refactoring. drop unused parameter of handle_timeout
* vita3k: drop unused function parameters

* vita3k: fix typecasts
use static_cast instead of reinterpret casts if possible
use correct constants (1/1.0/1.0f)
correct variable types to minimise typecasts
use explicit typecasts (not everywhere)
replace c-style typecasts to c++ style typecasts (not everywhere)
* clang warning: remove redundant typecasts
* clang warning: Cast drops const qualifier

Optimisation
* vita3k: remove unused includes
* clang warning: Constness of returning variable prevents automatic move
[performance-no-automatic-move]
* clang warning: String concatenation results in allocation of unnecessary temporary strings
[performance-inefficient-string-concatenation]
* vita3k: use std::move
* vita3k: optimization. push_back -> emplace_back
* vita3k: fix datatypes to avoid unnesessary conversions
* clang warning: remove unneeded string->c_str->string conversion
* clang warning: The parameter is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
* clang warning: 'find' called with a string literal consisting of a single character
[performance-faster-string-find]
* clang warning: Result of a postfix operator is discarded, consider replacing it with a prefix operator
* clang warning: Pass value parameters by const reference

Code cleanup
* io/io: remove once used variables
* net/posixsocket: remove struct keyword
* vita3k: use raw string literals to avoid excessive escaping
* vita3k: refactoring. replace Ptr<> to pointer in Sce functions
* vita3k: drop unused variables and incorrect comments
* clang warning: readability-inconsistent-declaration-parameter-name
* clang warning: Extra ';' after member function definition
* clang warning: Possible misuse of comma operator (, is used instead of ;)
* clang warning: Algorithm accepting an iterator and a count can be used
* clang warning: Declaration and assignment can be joined
* clang warning: Type trait can be simplified using a template alias or a variable template

* vita3k: cleanup class methods
remove unimplemented (and obviously not used) methods
move deleted methods to public
change empty body to =default
remove auto constructors
set member default values
2024-03-18 15:44:56 +03:00
..
app vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
audio vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
codec vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
compat vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
config vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
cpu vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
ctrl vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
dialog vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
display vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
emuenv vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
features Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
gdbstub vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
glutil vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
gui vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
gxm vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
host vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
http vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
ime vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
io vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
kernel vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
lang vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
mem vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
module vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
modules vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
motion vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
net vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
ngs vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
nids Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
np vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
packages vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
regmgr vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
renderer vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
rtc Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
script vita3K: Bump version to 0.2.0. (#3173) 2024-01-14 22:33:48 +01:00
shader vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
shaders-builtin Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
threads Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
touch vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
util vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
vkutil vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
CMakeLists.txt external: Import CppCommon to detect CPU and OS (#3227) 2024-03-02 16:29:47 +01:00
dir_doc.cpp host, gui: Abstract file browser window calls 2022-08-31 19:48:44 -03:00
interface.cpp vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
interface.h vita3k: set fs::path type for string paths and refactoring 2024-01-24 11:33:30 +03:00
main.cpp vita3k: big code cleanup 2024-03-18 15:44:56 +03:00
performance.cpp Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
resource.h Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
Vita3K.ico
Vita3K.png
Vita3K.rc Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
Windows.manifest vita3k/manifest: set default encoding on windows to utf-8 2023-03-31 01:13:54 +03:00