Commit graph

710 commits

Author SHA1 Message Date
RyleFury
f370ccc1b0 Update SceRtcUser.cpp
Fix the last argument type of sceRtcTickAddDays, sceRtcTickAddHours and sceRtcTickAddYears fixing freezes and bad dates in games.
2025-03-28 18:09:13 +03:00
Pedro Montes Alcalde
4a14d546ba
Tick Tick Tick, thats the sound of 2024 flying by (#3503) 2025-01-19 18:51:43 -03:00
Zangetsu38
81b5daf2af modules/SceSaveDataDialog: Fix display list when size is 0 in cont.
- moving check empty param inside check save file.
modules/SceMsgDialog: Fix reset bar progress in init.
2025-01-12 01:10:50 +03:00
Zangetsu38
5720241850 packages: Implement decrypt fself in a fly.
- Refactor license.
2025-01-02 18:55:43 +03:00
Narr the Reg
c6140e263d motion: Remove initialized variable 2025-01-02 18:55:10 +03:00
Narr the Reg
84c297f8b2 motion: Return proper error codes 2025-01-02 18:55:10 +03:00
Saturnsky
c8e621f328
gui/controllers: align controller assignment behavior with Vita TV (#3447)
* gui/controllers: align controller assignment behavior with Vita TV

* controllers: separate port indexing between sceCtrl and SDL_GameController logic

* controllers: handle null controller and name during initialization
2025-01-01 23:57:53 +01:00
Zangetsu38
d86e7cf8d6 modules/SaveDataDialog: Refactor check save file in Continue.
- Fix crash caused by few check empty param on any call.
- Fix GetStatus when current type of common dialog is not SaveDataDialog.
2024-12-31 02:02:47 +03:00
Zangetsu38
0a3ba020c3 gui/save data dialog: fix display slot with empty param in load list.
- Same app display empty save in load mode when empty param is give on this mode.
- fix position of title of list when is too long.
gui/ime dialog: Fix enter name with delete submit and cancel button mapped on keyboard.
2024-12-25 18:02:39 +03:00
Saturnsky
3ef6220197
modules/SceMotion: Improve motion support (#3441)
* modules/SceMotion: Improve motion support

* motion: Set sensor limits and make use of deadband and tilt correction

* motion: Stub set angle threshold

* motion: improve basic_orientation calculation

* motion: optimize gyro deadband and basic orientation calculations

Co-authored-by: Narr the Reg <5944268+german77@users.noreply.github.com>

---------

Co-authored-by: Narr the Reg <5944268+german77@users.noreply.github.com>
2024-12-09 23:08:54 +01:00
Narr the Reg
19be7c32b5
touch: Validate all input params and simplify code (#3449) 2024-11-30 10:39:34 +01:00
Macdu
3182669795 modules/SceError: Implement GetExternalString. 2024-11-27 14:13:33 +03:00
Zangetsu38
f02851437d modules/SceAppMgr: Stub sceAppMgrMmsMount. 2024-11-19 20:25:35 +03:00
bookmist
8a4a81cff7 modules/SceDisplay: Implement GetMaximumFrameBufResolution. 2024-11-18 19:00:18 +03:00
SpikeHD
0ebcc09292
patch: Add support for patch files (#3419)
* feat: poc patch loading

* fix: remove some logging, tweak filename requirements

* fix: clang format

* fix: loop -> memcpy

* fix: patching the wrong file

* fix: patch path in shared path on linux

* fix: newline

* fix: change to txt

* fix: explicit std

* fix: conditionally load patches

* fix: stroull -> stoull
2024-11-15 23:32:55 +01:00
SaturnSky
934fdadd47 modules/SceGxm: Improve sync object handling and simplify display queue logic 2024-11-05 21:33:59 +01:00
Macdu
e78b375676 modules/SceIpmi: Adding module and stub few functions.
modules/module parent: Adding create vtable fonction.
2024-11-05 00:12:26 +03:00
Macdu
6f110b4a95 modules/SceDisplayUser: stub sceDisplaySetFrameBufInternal. 2024-11-05 00:09:58 +03:00
Macdu
e3fbe9d9d8 modules/SceGxm: Stub some SceGxmInternal functions. 2024-11-05 00:09:58 +03:00
bookmist
d2c6c4ac4f kernel: more correct thread local storage emulation, also stub ThreadVfpException functions
used mostly for lle libkernel
2024-11-05 00:06:59 +03:00
Macdu
69961f86e5 modules/SceSharedFb: Implement few functions. 2024-11-03 19:03:29 +03:00
oltolm
c61895e6f4
vita3k: Add support for mingw-w64 (#3406)
* make the code compile on mingw-w64

* make compile with Clang 19

* make compile with GCC
2024-10-26 23:41:51 +02:00
Saturnsky
52b82dd31d
modules/SceGxm: Prevent viewport updates outside of the scene (#3400) 2024-10-17 21:53:12 +02:00
双子叶植物
f43ac8765e
modules/SceIme: fix IME crash due to no initial text (#3394)
* modules: fix IME crush due to no initial text

* modules: simplify fixing IME crash due to no initial text

Co-authored-by: bookmist <roshst@yandex.ru>

---------

Co-authored-by: Dicot0721 <dicot1450@qq.com>
Co-authored-by: bookmist <roshst@yandex.ru>
2024-10-06 21:47:13 +02:00
Saturnsky
97764c04cf
modules/SceKernel: Implement sceKernelGetEventPattern (#3397) 2024-10-05 18:42:51 +02:00
Saturnsky
7963873aa5
modules/SceSysmem: Set correct start_address for USER_RW_UNCACHE (#3398) 2024-10-05 18:03:44 +02:00
Saturnsky
faab9d6aff
modules: Add SceUlobjDbg related new NIDs (#3388) 2024-10-03 21:14:58 +02:00
Saturnsky
2cf413955f
modules/SceJpeg: Improve JPEG decoding accuracy (#3380) 2024-09-25 00:05:36 +02:00
scribam
77abeaa167
vita3k: More cleanup (#3379)
* vita3k: Use C++17 nested namespace definition

* vita3k: Remove redundant call to c_str()

* vita3k: Prefer C++ header

* vita3k: Use structured bindings

* shader: Add explicit fallthrough

* vita3k: Cleanup headers and dependencies

* util: Add WIN32_LEAN_AND_MEAN before <Windows.h>

* modules: Remove redundant 'const' specifier on a constexpr variable

* modules: Remove redundant return statement at the end of a function with a void return type

* clang-format: Use C++20 standard

* vita3k: Insert new line at EOF

* host: rename filesystem.hpp to filesystem.h
2024-09-18 21:48:08 +02:00
SaturnSky
f51cdf1b35 modules/SceJpeg: Implement MCU-based decoding and pitch calculation 2024-09-10 22:03:02 +02:00
nishinji
541631822c gui: some small improvements
- Add option to disable motion
- Add jpeg format support for screenshots
2024-08-08 18:45:55 +02:00
Pedro Montes Alcalde
4abf877d43
io/modules: Make modules load the case sensitive file found in fs 2024-06-23 17:17:03 -03:00
Macdu
d600229820 codec, modules/SceAudio: Implement bit rate value 2024-06-22 13:47:40 +02:00
bookmist
a0b3218466 modules/SceNgs: fix crash of Helldivers game 2024-05-22 22:51:24 +03:00
nishinji
b8ef1dd732 vita3k: Use constexpr for constants and small optimize 2024-05-21 23:42:57 +02:00
nishinji
584e1f172f vita3k: Minor optimize, code refactor
Co-authored-by: GermanAizek <GermanAizek@yandex.ru>
2024-05-21 23:42:57 +02:00
Seungyun Lee
418f234394
ci: respond to github action's macOS runner change (#3282) 2024-04-26 23:31:14 +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
Macdu
e3a201d485
kernel: Add support for module unloading/reloading (#3246) 2024-03-15 10:07:25 +01:00
Macdu
26a79d2d9d
renderer: Improve transfer copy and downscale (#3232) 2024-03-11 22:35:28 +01:00
bookmist
6ce9b6598e vita3k: some minor bugfixes
kernel/thread: fix possible crash in log_stack_traceback
modules/SceLibKernel: more correct sceClibSnprintf
kernel/load_self: fix possible crash on incorrect library modules. load process params from first loaded module (eboot.bin) only
modules/SceGxm: fix crash if display_thread not found
kernel/debugger: remove direct access to mem.memory to support memory mapping more complete
vita3k: remove direct access to kernel.threads (it's not thread-safe)
vita3k: implement and fix virtual destructors for class hierarchies to prevent memory leaks (except screen_filters)
clang-tidy warning: Constructing string from nullptr is undefined behaviour
clang warning: use after std::move
2024-02-12 20:21:40 +03:00
bookmist
c3e5707f48 modules/SceHttp: fix crash on HLE of creating https connection 2024-02-09 10:07:42 +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
Macdu
59ac163fc0
display: Add FPS hack (#3189) 2024-01-20 12:28:51 +01:00
Dubrova Dzmitry
dae92a695e
modules/SceAudio: Fix sceAudioOutSetConfig implementation (#3186) 2024-01-18 12:56:57 +01:00
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
Macdu
b4ce2bdbac
modules/SceGxm: Improve softlock prevention for sync object (#3162) 2023-12-31 16:38:51 +01:00
Macdu
7d542171c7
modules/SceNgs: Improve sceNgsAT9GetSectionDetails (#3150) 2023-12-31 10:31:48 +01:00
Macdu
74edbed7d3
modules/SceThreadmgr: Return 1 as the process id (#3148) 2023-12-30 16:39:47 +01:00
Macdu
bef1567a61
renderer/vulkan: Implement async pipeline compilation (#3145) 2023-12-25 23:56:48 +01:00