Commit graph

32 commits

Author SHA1 Message Date
Pedro Montes Alcalde
4a14d546ba
Tick Tick Tick, thats the sound of 2024 flying by (#3503) 2025-01-19 18:51:43 -03:00
Saturnsky
7963873aa5
modules/SceSysmem: Set correct start_address for USER_RW_UNCACHE (#3398) 2024-10-05 18:03:44 +02:00
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
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
Macdu
09de94c216 mem: Improve accuracy of virtual memory 2023-11-02 06:10:22 +01:00
Macdu
e64fa370c7 modules: cleanup 2023-09-10 23:35:12 +02:00
Zangetsu38
8aab90b50d modules/SceSysmem: Implement sceKernelOpenMemBlock.
- ignore flags for now.
2023-07-21 18:14:34 +02:00
bookmist
4ba2e086cc Vita3K: code cleanup and optimisations 2023-05-10 15:31:55 +03:00
EXtremeExploit
41a17e79c7 Planet Earth Season 2023 2023-01-02 10:46:20 +01:00
Pedro Montes Alcalde
57dd26bba1
tracy: Add enums overloads for modules that need them (#2171) 2022-10-30 08:41:08 -03:00
bookmist
f03c257a33 modules: Add Tracy to all implemented functions in implemented modules.
modules/tracy: module name macro
Remove unused hack from SceMp4, mark ScePgf/sceFontNewLib unimplemented
2022-10-29 20:35:17 +03:00
hobyst
1169da50bc host: Rename host to emuenv
This commit renames the host library as emuenv (emulated PS Vita
environment) to avoid confusion with the future host OS abstraction
layer
2022-07-03 14:31:24 +02:00
Macdu
80e79be541 modules/SceSysmem: Increase default user_rw alignment 2022-06-26 16:04:04 +02:00
Macdu
7a8e01ec54 modules/SceSysmem: Remove checks in sceKernelAllocMemBlock 2022-06-02 12:51:54 +02:00
Macdu
d19fc5c822 modules/SceSysmem: Allocate blocks with the proper alignment when none specified 2022-06-01 19:59:11 +02:00
scribam
ca83365c07 Run gen-modules 2021-10-16 20:07:20 +02:00
hobyst
168dfb19ca Add license notice on source files which didn't have one
- Also updated the copyright notice year on all files to 2021
2021-08-19 23:14:27 +02:00
Zangetsu38
a01b17525b setting: move PS TV mode custom config. 2021-07-22 12:32:52 +02:00
sunho
2f11285f07 kernel: Implement sceKernelSyncVMDomain 2021-06-01 14:20:05 +02:00
sunho
8576b497a7 kernel: Pull out sysmem state from kernelstate 2021-06-01 14:20:05 +02:00
Zangetsu38
61c1a077a2 modules: Add some nids and funtions for new kernel library.
- relate modules SceKernelThreadMgr, SceProcessmgr, SceSysmem, ScePaf.
2021-04-16 14:07:05 +02:00
Zangetsu38
f19f75fc2e modules/SceSysmem: Align free memory workaround.
Co-authored-by: frangarcj <frangarcj@gmail.com>
2021-01-16 20:02:47 +01:00
Princess-of-Sleeping
729b9d09e5 modules/SceSysmem: Add size check for sceKernelAllocMemBlock/VM. (#1086) 2021-01-13 18:59:43 +01:00
scribam
296203fbf7 modules: sync with latest vita-headers/db.yml 2020-12-04 17:47:43 +01:00
sunho
fa4d5053d8 SceSysmem: use mutex & implement findMemBlockByAddr 2020-07-25 04:10:28 +09:00
Sunho Kim
a5f96765bd SceSysmem: support alignment in sceKernelAllocMemBlock 2020-06-08 15:36:19 +02:00
Zangetsu38
384212ef30 modules/SceSysmem: fix crash if not found block for this uid: 2020-05-20 03:21:29 +03:00
totlmstr
4e20885f89 Vita3K: run clang-format 2020-04-07 16:48:08 -04:00
1whatleytay
34a02553c4
vita3k: remove vita-headers (#649) 2020-02-06 09:44:49 -05:00
Francisco José García García
efd413d962 kernel/sysmem: Fix free mem on Linux 2020-01-16 14:36:08 +02:00
Francisco José García García
47bc370ba3
kernel/sysmem: Implement sceKernelGetMemBlockInfoByAddr 2020-01-16 00:22:42 +01:00
Nicolas Jallamion
06299de242 emulator: Refactor file structure (#557)
Also:
- external: update some submodules.
2019-08-28 16:52:07 +03:00