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
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
Macdu
636b1dfedd kernel: Rewrite the way svc and callbacks are handled 2022-09-16 21:57:57 +02:00
Pedro Montes Alcalde
ccca711294
vita3k: Use correct KB/KiB functions (#1971) 2022-07-31 21:10:24 -03:00
Macdu
2eefc9751e vita3k: Remove unnecessary dependencies between librairies and files 2022-07-28 12:24:06 +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
Zangetsu38
e1fdac43be module/load module: enable lle of mp4 & avplayer in auto mode.
config & settings: delete old obsolete value.
2022-05-10 02:19:50 +02:00
bookmist
016f8ece12 kernel\thread, modules: fix TLS in callback calls 2022-04-01 06:22:11 +02:00
Zangetsu38
77fd8e8f78 project: run format. 2022-03-16 02:11:11 +01:00
bookmist
daff9cdca6 modules/SceAvPlayer: code cleanup 2021-12-23 13:25:44 +01:00
bookmist
9251b1c6ce modules/SceAvPlayer: fix compiler warnings, add null check 2021-10-30 21:26:21 +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
scribam
f36331f2c5 modules/SceAvPlayer: returns false when sceAvPlayerIsActive is called with an invalid handle 2021-07-11 11:09:19 +02:00
sunho
58617042c8 kernel: Implement stack arguments in guest function job 2021-05-27 01:56:07 +09: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
sunho
b27b37ac8e sceAvPlayer: Add null check 2021-05-18 03:18:25 +09:00
sunho
c6a20fc894 kernel: Redesign guest function calling 2021-05-18 03:18:25 +09:00
sunho
1e96724d45 kernel: Pull out avplayer,auidodev,videodec,fiber state
kernel: Add ObjectStore
modules: Support library init function
modules: Pull out cpu_protocol
vita3k: Rename .h -> .inc
io: Remove unneccesary base_tick argument
cmake: Folderify modules and kernel
2021-05-09 19:47:59 +02:00
bookmist
5ab77b1361 modules/SceAvPlayer: Fix open video file if path is wrong.
- fix also two compile warning.
Co-authored-by: Zangetsu38 <Dante38@free.fr>
2021-04-12 17:23:30 +02:00
Zangetsu38
8eb422ba73 gui/settings dialog: Add custom config by apps. 2021-04-08 16:32:38 +02:00
Zangetsu38
d19c7f1cad modules/SceAvPlayer: Stub GetVideoDataEx.
- fix video playing on drive girl.
2021-03-24 21:32:56 +01:00
mangren
167f1fcfa6 modules/SceAvPlayer: Fix video frame flashing 2021-03-09 21:25:54 +01:00
bookmist
487e47f742
modules/AvPlayer: clean unused code (#1165) 2021-02-20 22:45:12 +01:00
sunho
3d86d89aa0 modules: use new run_callback 2021-02-20 20:08:28 +01:00
bookmist
0d4fc49b8e
modules/SceAvPlayer: implement event callback and stub some functions (#1138) 2021-02-15 12:25:40 +01:00
Zangetsu38
48daafb6bf gui/settings dialog: Add option for disable video player. 2021-02-08 22:09:32 +01:00
1whatleytay
0beecf723d ngs: run clang-format 2020-07-08 14:33:08 -04:00
1whatleytay
77430da4e6 codec: add h264, mjpeg, player 2020-07-08 14:11:51 -04:00
1whatleytay
34a02553c4
vita3k: remove vita-headers (#649) 2020-02-06 09:44:49 -05:00
Zangetsu38
ba41e627c2 all: Format project 2020-01-12 22:35:27 -05:00
Taylor Whatley
2c24ab40df modules: add dynamic avplayer framelimiter 2019-12-22 00:15:36 -05:00
Taylor Whatley
1caf740650 renderer: decode yuv with sws_scale 2019-12-22 00:15:36 -05:00
Taylor Whatley
579ab7053b modules: implement avplayer shutdown 2019-12-22 00:15:36 -05:00
Taylor Whatley
89e5419ad9 modules: implement basic avplayer 2019-12-22 00:15:36 -05:00
Nicolas Jallamion
06299de242 emulator: Refactor file structure (#557)
Also:
- external: update some submodules.
2019-08-28 16:52:07 +03:00