Commit graph

48 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
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
scribam
612d1f8d81
vita3k: cleanup (#3357)
* module: add missing pragma once

* cmake/vita3k: delete unused files

* vita3k: delete useless semi-colons

* vita3k: cleanup headers

* audio: add missing override to destructors

* vita3k: fix typos

* external: disable unused curl targets
2024-09-02 13:03:58 +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
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
bookmist
9e7e807704 tracy: autoregister modules, faster check if module is profiling, other optimisations 2023-10-17 10:15:57 +03:00
Macdu
6f35f1a3ab vita3k: Use LOG_..._ONCE when appropriate 2023-10-10 16:31:47 +02:00
scribam
df2ffeb48e
external: Update submodules (#2926)
* external: Update CLI11 to version v2.3.2

* external: Update MoltenVK to 1.2.5

* external: Update SPIRV-Cross to sdk-1.3.261.1

* external: Update Vulkan-Headers to v1.3.261

* external: Update capstone to 5.0.1

* external: Update cubeb

* external: Update dirent to 1.24

* external: Update fmt to 10.1.1

* external: Update glad to 2.0.4

* external: Update glslang to sdk-1.3.261.1

* external: Update googletest to v1.14.0

* external: Update imgui to version v1.89.9

* external: Update imgui_club

* external: Update miniz to version 3.0.2

* external: Update nativefiledialog-extended to version v1.1.0

* external: Update openssl to 3.1.2

* external: Update pugixml to version v1.13

* external: Update spdlog to v1.12.0

* external: Update stb

* external: Update tracy to v0.9.1

* external: Update vita-toolchain

* external: Update xxHash to v0.8.2

* external: Update yaml-cpp to version 0.8.0
2023-09-16 13:42:44 +02:00
Macdu
e64fa370c7 modules: cleanup 2023-09-10 23:35:12 +02:00
Zangetsu38
f36797d8f0 gui/home screen: Add color of compat state in filter. 2023-08-01 12:13:58 +02:00
Macdu
ca4371ac31 kernel, modules: Implement sceSysmoduleLoadModuleInternal(WithArg)
Co-Authored-By: bookmist <roshst@yandex.ru>
Co-Authored-By: Zangetsu38 <dante38@free.fr>
2023-07-28 12:17:29 +02:00
bookmist
c7440923c2 vita3k: refactoring module load and start, use LLE for libsmart and libface 2023-07-25 15:16:59 +03:00
bookmist
7d3608808d modules: Describe and partial implement SceRtabi module
used by driver_us.suprx
2023-07-16 21:41:58 +03:00
bookmist
4ba2e086cc Vita3K: code cleanup and optimisations 2023-05-10 15:31:55 +03:00
bookmist
40ee98e560 modules/SceNet: implement LLE libHttp and libSsl 2023-01-05 16:53:07 +03:00
EXtremeExploit
41a17e79c7 Planet Earth Season 2023 2023-01-02 10:46:20 +01:00
bookmist
8edd333400 Fix compiler warnings 2022-11-16 21:39:55 +03:00
Seungyun Lee
f8b9526794 tracy: Fix wrong include path 2022-11-12 12:58:23 +03:00
Pedro Montes Alcalde
628e0f2024
tracy: Update to v0.9 2022-11-12 00:30:10 -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
Macdu
15a4c2a505 tracy: Fix cropped names 2022-05-31 22:02:55 +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
hobyst
4928990518 gui, config: Implement more Tracy options and save 2022-05-07 17:52:12 +02:00
hobyst
e354a43b18 modules and SceDisplay: Basic Tracy implementation 2022-05-07 17:52:12 +02:00
hobyst
f3d8708a4f Build: Enable Tracy for HLE modules 2022-05-07 17:52:12 +02:00
Zangetsu38
77fd8e8f78 project: run format. 2022-03-16 02:11:11 +01:00
Zangetsu38
0f404ed115 config: Add modules mode Automatic and Manual.
- fix one things on sysmodule for check if modules is enable.
2021-12-08 13:09:23 +01:00
scribam
dabfb08f8a
Misc code quality fixes (#1498)
* clang-tidy: run modernize-use-equals-default
* clang-tidy: run modernize-use-override
* screen_render.h: remove redundant access specifier
2021-11-11 17:08:34 +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
c6790fa021 kernel: Merge thread state and functions & fix gdb 2021-05-22 21:12:11 +02: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
Zangetsu38
8eb422ba73 gui/settings dialog: Add custom config by apps. 2021-04-08 16:32:38 +02:00
Zangetsu38
48daafb6bf gui/settings dialog: Add option for disable video player. 2021-02-08 22:09:32 +01:00
Zangetsu38
4c91313273 modules/SceAppMgrUser,SceDisplayUser & SceRtc/SceRtcUser: move all function inside kernel modules. 2021-01-25 15:49:21 +01:00
EXtremeExploit
34bec68371 vita3k: Fix grammar errors 2021-01-24 21:35:40 +01:00
scribam
2db9140643 SceGxm: implement some sceGxmDepthStencilSurface* functions 2020-11-21 11:11:04 +01:00
sunho
bef7555ba5 modules: fix sceClibVsnprintf 2020-10-25 20:23:12 +09:00
Zangetsu38
e34506f1a2 setting dialog: Add automatic module mode.
module: Add automatic module list.
2020-07-25 20:22:21 +02:00
Zangetsu38
7e2b32878d module/load_module: fix apputil name
module/load module: load libhttp also for SCE_SYSMODULE_HTTPS.
2020-07-02 09:13:55 +02:00
Sunho Kim
1503bb9bf8 modules: format code 2020-06-11 18:23:53 +02:00
Sunho Kim
52e41f3bd2 modules: fix hle var import and _pLibPerfCaptureFlagPtr 2020-06-11 10:45:49 +02:00
scribam
e241d98f18 vita3k: Clean up headers 2020-05-25 18:07:28 +02:00
scribam
8312f9b3b6 build: Compilation error fixes 2020-05-22 18:39:06 +02: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