Commit graph

41 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
Zangetsu38
f02851437d modules/SceAppMgr: Stub sceAppMgrMmsMount. 2024-11-19 20:25:35 +03:00
Macdu
69961f86e5 modules/SceSharedFb: Implement few functions. 2024-11-03 19:03:29 +03: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
bookmist
d3f3038aee vita3k: set fs::path type for string paths and refactoring
avoid not need conversion string->wstring->string for linux and macos
native logging of fs::path
more correct conversion from std path to boost path
refactor pathes for shaders compiler, shorten parameters lists
crypto::hex_string: remove not needed null character as last character in string
2024-01-24 11:33:30 +03:00
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
redpolline
1fe42cdc4f io: Support emuenv changes
kernel: Support emuenv changes
modules: Support emuenv changes
packages: Support emuenv changes
2023-10-17 13:31:19 +02:00
Macdu
e64fa370c7 modules: cleanup 2023-09-10 23:35:12 +02:00
EXtremeExploit
41a17e79c7 Planet Earth Season 2023 2023-01-02 10:46:20 +01: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
Macdu
0bc9ef9ee7 display, renderer: Sync guest and host fps 2022-10-24 23:27:15 +02:00
Pedro Montes Alcalde
660425bd93
renderer: Add tracy support to all commands 2022-10-22 23:42:31 -03:00
Pedro Montes Alcalde
45bdd66556
tracy: Implement SceAppMgr 2022-10-09 15:30:13 -03:00
Macdu
2eefc9751e vita3k: Remove unnecessary dependencies between librairies and files 2022-07-28 12:24:06 +02:00
hobyst
2233966ab2 Build: Change name of package lib to "packages"
"package" is a reserved CMake target name when CPack is used. Since
OpenSSL enables CPack in their project and it will be implemented in the
emulator in the future, this commit changes its name to "packages" to
avoid conflicts with CPack.
2022-07-11 12:25:35 +02: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
hobyst
0f65fac20d host, package: Decouple package code from host
Since most code inside host library doesn't really have to do with the
emulated PS Vita environment but rather with handling the different
package formats used in the console, this commit moves the code from
the host library into its own dedicated library. In summary:
- Moved package code into its own library and edited function calls
to accomodate the change
- Edited some function interfaces in order not to cause a dependency
hell due to cross-referenced types in headers that depended in
one another and edited function calls and resource access to accomodate
the change
- copy_directories() and copy_path() from `vita3k/interface.cpp` have
been modified and moved to io library due to being used in package
library and others. Keeping them as they were before causes dependency
hell
- All functions whose interface has been changed now have a Doxygen
comment block explaining the new interface
- host has been declared as an INTERFACE CMake library to fix linking
issues on Windows due to the fact that it doesn't compile C++ source
files anymore
2022-07-03 14:31:24 +02:00
Zangetsu38
6655cf16b0 modules: Register nids and function of few library.
- for library Ft2/Motion/KernelForMono/KernelForVM/LibGcc/LibKernel/Mp4/RtcForDriver.
- move library AppMgrUser/DisplayUser/Fios2User/RtcUser/Motion inside DriverUser module.
- Config: remove load lib kernel and load only driver user.
2021-11-04 06:33:57 +01: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
sunho
6c790558e0 Move load_self from host to kernel 2021-05-27 13:12:17 +02:00
sunho
dcfdb2a01b kernel: Rename thread functions and move thread runner out from thread.cpp
kernel: Fill init cpu context from kernel
kernel: Various style nits
2021-05-26 04:53:21 +02:00
sunho
c6790fa021 kernel: Merge thread state and functions & fix gdb 2021-05-22 21:12:11 +02:00
sunho
7d6d79c399 kernel: Merge state and functions 2021-05-19 11:36:18 +09:00
Zangetsu38
efecbb2981 emu: add can switch/exit game. 2021-04-03 00:28:17 +02:00
Zangetsu38
befe4e3986 vita3k: move app_path from title_id. 2021-03-03 13:39:19 +01:00
Zangetsu38
e5355bf8da modules/SceAppMgr: reworks split in interface. 2021-02-26 23:32:12 +01:00
Francisco José García García
7792349a7b modules/sceAppMgr: refactor LoadExec.
Co-authored-by: Zangetsu38 <Dante38@free.fr>
2021-02-26 13:00:22 +01:00
Zangetsu38
4c91313273 modules/SceAppMgrUser,SceDisplayUser & SceRtc/SceRtcUser: move all function inside kernel modules. 2021-01-25 15:49:21 +01:00
scribam
e9ac039fe4 msvc: fix some compiler warnings 2020-11-15 21:46:13 +01:00
IllusionMan1212
2acceac79f SceAppMgr: implement sceAppMgrSaveDataDataSave and sceAppMgrSaveDataDataRemove 2020-09-11 17:50:50 +03:00
Zangetsu38
152f1954e0 app background: fix get and display good bg.
gui: refactor using title id.
2020-08-17 17:36:01 +09:00
Zangetsu38
06addad077 gui: some fix/refactor. 2020-08-16 14:15:17 +02:00
Sunho Kim
d530fee198 appMgr: stub sceAppMgrGetBugdgetInfo 2020-07-26 00:28:13 +09:00
Sunho Kim
cdf9de4dbb debug: refactor cpu & print unicorn error stack traceback 2020-06-21 22:38:46 +03:00
Sunho Kim
2a22d19a20 debug: add stack traceback 2020-06-21 22:38:46 +03:00
EXtremeExploit
5f0ae490e0
vita3k: use KB/MB when possible (#766) 2020-06-17 20:41:35 -04:00
Sunho Kim
7981d7d035 vita3k: improve code log and memory log & add toggling them through gui 2020-06-09 18:38:14 +09:00
totlmstr
4e20885f89 Vita3K: run clang-format 2020-04-07 16:48:08 -04:00
Nicolas Jallamion
c61efe6b41
modules/SceAppMgruser: implement sceAppMgrLoadExec. (#655) 2020-03-09 09:45:36 -04:00
1whatleytay
34a02553c4
vita3k: remove vita-headers (#649) 2020-02-06 09:44:49 -05:00
Nicolas Jallamion
06299de242 emulator: Refactor file structure (#557)
Also:
- external: update some submodules.
2019-08-28 16:52:07 +03:00