Commit graph

167 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
410eaf4d0e gui: refactoring and cleanup
* extract functions to draw text centered
* fix a bug when one button could be mapped to two commands (for screenshots and texture replacement)
* replace magic strings to enum types, move static vars inside corresponding functions, fix datatypes
* global vars as static, add or remove ref if needed
2024-11-09 02:18:08 +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
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
nishinji
b3b0b22210 vita3k/interface: support JPEG screenshot format 2024-08-08 18:45:55 +02:00
nishinji
76bd1ce445
config: Makes log level display easier to understand (#3269) 2024-05-20 18:08:21 +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
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
Macdu
aa2c1cb09e
renderer: Implement fractional upscaling (#3207) 2024-02-09 19:52:36 +01:00
Macdu
17886d827e
renderer: Add screenshot support (#3202) 2024-02-04 14:25:52 +01:00
Zangetsu
b5aa1ec5dd
gui/settings dialog; Add audio tab & small refactor. (#3198)
audio: remove double init oF global volume value.
2024-02-01 23:29:43 +01:00
Steveice10
b0ef22a1a2
gui, audio: Implement global volume percent setting. (#3194) 2024-01-28 23:25:32 +01: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
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36:32 -03:00
Macdu
bef1567a61
renderer/vulkan: Implement async pipeline compilation (#3145) 2023-12-25 23:56:48 +01:00
Macdu
fe7d6f0165
gui, np: Replace PSN status by signed in (#3103) 2023-12-07 13:39:11 +01:00
Zangetsu
7674912063
lang: Add support of user custom language. (#3083) 2023-11-21 12:43:13 +01:00
Macdu
ef7e635496 renderer, gui: Add keyboard shortcut to toggle texture replacement 2023-11-08 18:34:22 +01:00
Macdu
f4972f6427 config, gui: Add option to disable checking for updates 2023-10-27 18:37:22 +02:00
Macdu
bfec3f6291 renderer: Implement texture replacement 2023-10-22 11:07:57 +02:00
EXtremeExploit
0cd71ceb86 config: Get rid of default.yml 2023-10-18 02:59:41 +02:00
redpolline
f165e43409 emuenv: use XDG_DATA_DIRS / XDG_CACHE_HOME / XDG_CONFIG_HOME to init paths on Linux only
app: Fixes to support changes to emuenv, move path init from main.cpp to app::init_paths()
compat: Fixes to support changes to emuenv
config: Fixes to support changes to emuenv
lang: Fixes to support changes to emuenv
util: Fixes to support changes to emuenv

Note: End-users wishing to use the base_dir as their storage for user-data (original behavior)
can do so under Linux by running the following in a terminal or shell script (Windows and other OSes are not affected by this commit):
'XDG_DATA_DIRS="./" XDG_CACHE_HOME="./" XDG_CONFIG_HOME="./" ./Vita3K'

This change is needed to build flatpaks (Issue Vita3K/Vita3K#1418) and to fix Issue Vita3K/Vita3K#664 (use XDG directory standard for store config and logs).
2023-10-17 13:31:19 +02:00
bookmist
9e7e807704 tracy: autoregister modules, faster check if module is profiling, other optimisations 2023-10-17 10:15:57 +03:00
Macdu
6697648d9e config, main: Allow firmware files to be installed using the command line 2023-10-11 13:01:12 +02:00
Macdu
462a1d3aaa config: Fix inconsistencies in command description 2023-10-11 13:01:12 +02:00
Macdu
ba12f69be2 config: Set renderer accuracy to high by default 2023-09-27 09:26:31 +02:00
Macdu
1a9122803d gui, renderer: Add renderer accuracy option 2023-09-24 14:53:47 +02:00
Zangetsu38
0f5c58a9af gui/controllers dialog: Add custom LED color support.
- Add checkbox for enable custom color.
- Fix End() pos.
2023-09-18 15:09:12 +02:00
Zangetsu38
4c775f69c3 ctrl: Improve controller bindings.
- Fix navigate in ui with controllers.
- Add motion support string of french language.
- Add ext remap button support of controllers.
- Add press any key of keyboard for cancel remap.
- Add mapped button name from type of gamepad.
- Add reset controller binding button.
- fix typo of rebind_controls for lang.
2023-09-13 23:11:00 +02:00
Zangetsu38
b8ae624f73 touch: Add touchpad support.
- Allow double touch in pc with using touchpad of DS/4.
- Add draw touchpad cursor when is used.
- Add config for allow disable show this cursor per game.
2023-09-11 23:49:36 +02:00
Dzmitry Dubrova
290051ff7b ctrl: Implement controller remapping
Co-authored-by: nn9dev <39563889+nn9dev@users.noreply.github.com>
2023-09-02 12:38:08 +02:00
Zangetsu38
4ffb602b27 config & gui/settings dialog: Add Option to display system apps.
- For can allow disable disable display system apps from the home screen to the main menu bar only.
2023-08-18 15:43:32 +02:00
Zangetsu38
f00867d1f0 config & gui/settings dialog: Add option for enable log compat warn. 2023-08-17 23:59:41 +02:00
Zangetsu38
90255cdd11 config: Fix default Mapping of R2 buttons.
- should fix some game for cross input in default button set.
2023-08-14 21:45:14 +02:00
nishinji
ada3fe0671 gui: allow stretching the display area 2023-08-08 17:18:41 +02:00
Princess-of-Sleeping
f239ad72b7 config: Added support show/demo mode switch. 2023-07-21 16:05:56 +02:00
Zangetsu38
349d89a9eb gui: Add option to allow disable display of compile shaders dialog. 2023-07-02 15:35:47 +02:00
Zangetsu38
9837745e54 config: Add option of vulkan validation layer.
- Allow can disable it for no impact performance of game when sdk is installed.
2023-05-28 23:07:59 +02:00
Saturnsky
d16f87c337
modules/sceJpegEncUser, codec: Implement stubbed functions (#2608)
- MJpeg and sceJpegEncoderSetValidRegion functions are not yet supported.
- Ignores the CompressionRatio parameter.
2023-05-28 16:07:31 +02:00
Macdu
18f9b84276 renderer: Refractor Screen Filtering 2023-05-23 23:11:22 +02:00
bookmist
4ba2e086cc Vita3K: code cleanup and optimisations 2023-05-10 15:31:55 +03:00
bookmist
d34159c328 gui: better align in controls_dialog and live area help page. make gui controls configurable
and some optimization and refactoring
2023-04-17 23:50:12 +03:00
Macdu
3828e7a584 renderer/vulkan: Implement surface sync 2023-04-08 08:23:57 +02:00
CoffeeBrewer64
75a6bf0d86
Typo fixes #2475 2023-04-06 23:04:05 +02:00
Zangetsu38
ea1b38375c gui/settings dialog: Add option to allow disable linear filter.
config: fix options of using shaders cache.
- delete inside command line.
2023-03-08 20:55:26 +01:00
bookmist
dd603f3417 modules: implement some functions:
modules/SceThreadmgr: implement _sceKernelGetMutexInfo, sceKernelSetTimerTimeWide
refactor _sceKernelGetLwMutexInfoById
_sceKernelGetSemaInfo - fix returning data
_sceKernelGetThreadInfo - also return thread exit status
sceKernelChangeThreadVfpException, sceIoIoctl - describe parameters

modules/SceGxm: implement sceGxmProgramGetOutputRegisterFormat, sceGxmDepthStencilSurfaceGetFormat

modules/SceRtcUser: implement sceRtcCompareTick, sceRtcGetDosTime, sceRtcGetWin32FileTime

modules/SceKernelModulemgr: sceKernelGetModuleInfo change assert to error code

modules/SceLibKernel: sceKernelCreateMutex: add stub if priority ceiling feature is used

config/state: add forgotten module (SceNetInternal) into tracy modules list
2023-03-01 23:30:26 +01:00
Zangetsu38
be07a53904 gui/app context menu/compat: Add pre-filled body in create issue.
- gui: rename struct LiveAreaState live_area to VitaAreaState vita_area.
- gui: fix click on button of info message when start screen is open.
- gui/themes: fix one warning compile.
2023-02-18 02:45:30 +01:00
Zangetsu38
15d57ac228 gui: Add function to display first info msg in dialog instead of log.
- This new function is used currently only to display compatibility log messages in dialog.
vita3k updater: set init update inside thread, fix freeze in boot.
2023-02-16 22:55:48 +01:00