Commit graph

114 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
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
EXtremeExploit
41a17e79c7 Planet Earth Season 2023 2023-01-02 10:46:20 +01:00
Macdu
37c46db9dc host: Handle correctly utf8 paths 2022-10-14 18:56:14 +02:00
hobyst
3b74ceb5d9 host, gui: Abstract file browser window calls
This commit creates the first library of the host OS abstraction
layer to access native OS dialogs using a more flexible C++ API
and implements file browser dialogs using nativefiledialog-extended
so that XDG desktop portals can be used to spawn these dialogs
in Linux.
2022-08-31 19:48:44 -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
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
AtticFinder65536
1c425ce11c gui/host: ask before rm work.bin/rif after install
Ask the user to delete the work.bin/rif file after installing it from
the license install dialog, like what happens in the pkg install and
archive install dialog. Also fix typo in the successful install message.
2022-06-13 14:29:12 +02:00
Zangetsu38
8a40b19e5f io: fix open file when create flag is not here.
modules/SceAppUtil: fix open file flag.
2022-05-23 15:41:06 +02:00
Zangetsu38
edf82c4277 modules/SceAppUtil: Implement SceAppUtil(Load/Save)SafeMemory.
- Allow Escape plain go to playable.
2022-05-23 13:50:52 +02:00
Zangetsu38
e726e03923 shader: using self name for path of shaders cache. 2022-05-03 16:04:10 +02:00
bookmist
da8ae7d1b4 host: fix some warnings 2022-03-17 06:16:05 +01:00
Zangetsu38
77fd8e8f78 project: run format. 2022-03-16 02:11:11 +01:00
Zangetsu38
9549d86901 modules/SceAppUtil: Add support of (date/time) on SystemParamGetInt.
- move both format from user to cfg.
- stub time zone and summer time.
- Add support of user name created in SystemParamGetString.
2022-03-06 12:40:43 +01:00
pent0
c85b005db7 display: Attempt emulate vsync instead of relying on main thread. 2022-02-25 14:55:11 +01:00
Zangetsu38
73ae376c71 vita3K: add support of install app patch.
- refactor some code.
2022-02-23 18:22:09 +01:00
Zangetsu38
f5073260ed lang: complete refactor. 2022-02-20 23:06:57 +01:00
Zangetsu38
a630171274 modules/SceAppUtil: Implement sceAppUtilSaveDataSlotSearch. 2022-01-13 05:51:55 +01:00
Zangetsu38
0130034fea gui: add avg, min and max value with graphic of fps. 2022-01-12 01:07:33 +01:00
Zangetsu38
673874ce5b modules/SceCommonDialog: fix savedata dialog when emptyparam is null.
- refactor check_empty_param for no have double code.
- app util: clean double value.
- modules/(SceAppUtil/SceAppMgrUser): set good value name.
2021-12-28 23:29:34 +01:00
Zangetsu38
6a71f50d71 external: update psvpfstools.
- fix compile.
2021-12-14 18:58:45 +01:00
scribam
667b9a8f7e
Update externals (#1499)
* external: Update CLI11 to tag v2.1.2
* external: Update dirent
* external: Update elfio to tag Release_3.9
* external: Update fmt to tag 8.0.1 and spdlog to tag v1.9.2
* external: Update glad
* external: Update googletest
* external: Update imgui to tag v1.85
* external: Update miniz to tag 2.2.0
* external: Update stb
* external: Update vita-toolchain
* external: Update yaml-cpp to tag yaml-cpp-0.7.0
2021-11-11 17:23:34 +01:00
Zangetsu38
16dbbd9349 modules/(SceCtrl/SceTouch): fix and refactor
- add controllers connected in log when app boot.
- add correct struct of both SceCtrlData(2)
- set touch mode in good place.
- refactor refresh controllers.
- implement sceCtrlGetWirelessControllerInfo.
- using DS4 type when is DS4/Dual Sense.
2021-11-04 19:18:44 +01:00
Zangetsu38
95b32c48ea addcont: Add support of INSTALL_DIR_ADDCONT value in sfo.
- should fix game no found dlc after install it.
2021-10-30 22:27:30 +02:00
Zangetsu38
d9ddb97fef savedata: Add support of INSTALL_DIR_SAVEDATA value in sfo. 2021-10-22 21:17:23 +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
dde9461edc interface: fix patch install.
- also prevent crash if try copy same license file.
2021-06-25 20:28:30 -07:00
Zangetsu38
3373b19dde gui/archive install dialog: refactor dialog.
- allow can using folder for install some archive in same time.
2021-05-30 22:44:04 +02:00
Zangetsu38
8b0400a077 notice: fix notice update for addcont. 2021-05-31 03:02:53 +09:00
sunho
6c790558e0 Move load_self from host to kernel 2021-05-27 13:12:17 +02:00
sunho
6a0caa1af1 kernel: Ignore some invalid process param 2021-05-27 04:04:17 +02:00
sunho
d2e676c970 kernel: Add stack traceback 2021-05-24 03:36:52 +02:00
scribam
4424ae596d SceNetCtl: Code refactoring 2021-05-24 03:36:42 +02:00
bookmist
8ebefa4935 kernel, load_self: Another fix for empty tls 2021-05-14 20:57:47 +02:00
bookmist
3121086434 kernel, load_self: Fix for empty tls 2021-05-14 12:20:59 +02:00
sunho
6425df04a9 pkg: Set compressed false after decompressing 2021-05-11 15:16:44 +02:00
sunho
f4f4e5799e kernel: Add elf dumping 2021-05-11 15:16:44 +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
sunho
8ba4419433 cpu: Pull out nid extraction and debugging helpers 2021-05-08 14:34:20 +02:00
sunho
f76f2f2c39 cpu: Fix dynarmic exclusive instructions, halting, breakpoint, stepping
kernel: Refactor CPUDepInject
config: Add dynarmic_cpu option
2021-05-08 14:34:20 +02:00
Zangetsu38
8060a55978 gui: fix and refactor dpi scale/font scale.
settings dialog: fix lle kernel for custom config.
2021-05-03 05:54:39 +02:00
Yunotchi
c9a9055f59 gui: add better support for high dpi displays 2021-04-29 16:19:12 +02:00
sunho
05cbb938cc gdb: Toggle gdbstub with config file 2021-04-25 05:56:02 +02:00
Zangetsu38
880fff8bf4 modules/SceIme: Implement virtual keyboard. 2021-04-20 19:06:24 +02:00
Zangetsu38
6f4aab035c gui: few small fix.
- main & live area: fix crash on live area/hb with check license only for ps app.
- fix crash on install nonpdrm archive.
- fix ime dialog string sended.
- fix one typo for license install dialog.
2021-04-20 11:57:42 +02:00
Zangetsu38
1f2d9b7327 modules/SceAppUtil/SceAppUtil: Implement AppParamGetInt.
gui: Add install license dialog.
2021-04-19 18:29:04 +02:00
totlmstr
024b71285f mem: split mem.h 2021-04-12 17:32:23 +02:00