Commit graph

615 commits

Author SHA1 Message Date
nishinji
584e1f172f vita3k: Minor optimize, code refactor
Co-authored-by: GermanAizek <GermanAizek@yandex.ru>
2024-05-21 23:42:57 +02:00
evfloriz
46fe22c2f0
gui: Fix about_dialog imgui assert (#3295) 2024-05-21 14:26:19 +02:00
Croden1999
d179e4b6f7 gui/common_dialog: Add IsKeyPressed to the buttons.
app/app_init: Fix typos.
2024-05-20 17:41:12 +02:00
Zangetsu
e189a8ffc6
gui/themes: Fix and refactor position of day moment on start screen. (#3267) 2024-05-19 23:03:53 +02:00
Zangetsu
bdf383858c
readme, gui: Add new supporter. (#3265) 2024-03-31 14:25:37 +02:00
Croden1999
5bdb5ebbfa gui/settings dialog: Add ua (Ukraine language) user language.
translation by Valeriy-Lednikov.

Co-authored-by: Valeriy-Lednikov <Valeriy-Lednikov@users.noreply.github.com>
2024-03-30 22:32:19 +01:00
Croden1999
4785a89cbd gui, lang: Cleanup and improvements.
- gui/lang: Minor lang strings code cleanup.
- gui: Unified window interface.
- gui/user management: Fixed the Open User Folder menuitem.
- lang: Remove initial_setup in id/ms.xml.
2024-03-30 22:32:19 +01:00
Zangetsu
2424f92c2e
gui/settings dialog: Fix Surface Sync using OpenGL (#3255) 2024-03-23 10:02:32 +01:00
bookmist
d20d859ba6 renderer: add actual GPU name into github issue template
IDK why, but github clang-format go crazy on brackets around (version_raw)
2024-03-18 20:01:10 +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
Zangetsu
db7ccec540
gui/live area: Fix transparency of Info bar. (#3234)
- Small reworks for separe window to info bar.
2024-03-14 22:49:34 +01:00
nishinji
a81731084c
external: Import CppCommon to detect CPU and OS (#3227) 2024-03-02 16:29:47 +01:00
Zangetsu38
79bc40003e gui/information bar: Add support of read battery level. 2024-02-27 23:12:19 +03:00
HuanJiCanShang
1b0e65e66d
gui/settings: Add audio tab translation (#3215)
* gui/settings dialog: Fixed a bug.

* gui/settings dialog: Fixed a bug.
2024-02-18 19:10:48 +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
Macdu
aa2c1cb09e
renderer: Implement fractional upscaling (#3207) 2024-02-09 19:52:36 +01:00
Croden
bfb270c613
gui/lang: Update minor lang strings. (#3206) 2024-02-08 12:35:56 +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
Macdu
ba5f9ace08
gui: Fix audio parameter (#3188) 2024-01-19 20:06:02 +01:00
nishinji
d8b8e069d1
vita3k: typo fixes (#3179) 2024-01-18 11:49:08 +01:00
Croden
b1f8cb510d
gui/settings_dialog: Update lang strings and adjust debug options. (#3168)
- gui/content_manager: Fixed small issue about missing addcont (DLC) title.
- lang: Fixed pl.xml and ms.xml load error.
2024-01-14 21:33:28 +01:00
Avellea
50c559e32f
gui: Correct typo in settings_dialog.cpp (#3174)
* Correct typo in settings_dialog.cpp

Asynchronous incorrectly spelled as "Aynchronous".

* Another typo corrected.

Compiled to replace "compiler".
2024-01-13 13:11:06 +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
nishinji
da8a6933d8 app_context_menu: fix URL for stete_report 2023-12-17 01:15:09 -03:00
Macdu
3758867863
gui: fix undefined behavior (#3112) 2023-12-15 21:27:23 +01:00
Croden
62a72bd7c6
gui/lang: Updated translations and fixed typos. (#3020) 2023-12-11 14:15:05 +01:00
Macdu
fe7d6f0165
gui, np: Replace PSN status by signed in (#3103) 2023-12-07 13:39:11 +01:00
Zangetsu
4ac8a41669
lang: Add two static user languages. (#3100)
- Indonesia and Malaysia.
gui/settings dialog: Add current system languages used.

Co-authored-by: Kitakatarashima <secretstarsgoldenid@gmail.com>
2023-11-29 22:23:40 +01:00
Croden1999
b94c5f5dff gui/main_menubar: Add the Open Texture Path menuitem.
gui/app_context_menu: Add the Open/Delete Textures Folder menuitem.
2023-11-26 16:10:33 +01:00
nishinji
07e2350801
gui: add welcome_park as a commercial_app (#3080) 2023-11-21 14:12:04 +01:00
Zangetsu
7674912063
lang: Add support of user custom language. (#3083) 2023-11-21 12:43:13 +01:00
Pedro Montes Alcalde
1bf9a0fbc5
io: Fix export/import textures path being same place as exec in linux 2023-11-19 18:00:32 -03:00
Croden
ecdeb625d6
gui/lang: Improve dialog for some lang strings. (#3067)
- gui/lang: Update lang strings in Settings Dialog and Initial Setup.
- Other fixes and translation update.

Co-authored-by: HuanJiCanShang <HuanJiCanShang@users.noreply.github.com>
2023-11-14 23:09:31 +01:00
Macdu
ef7e635496 renderer, gui: Add keyboard shortcut to toggle texture replacement 2023-11-08 18:34:22 +01:00
Pedro Montes Alcalde
9d23a76621
https: use CURL instead of raw hand made http 2023-11-08 10:46:49 -03:00
Creeot
ca02a186a4 gui: Fix 12-hour time display.
At midnight, GUI displays 0:[MM] AM.
At noon, GUI displays 12:[MM] AM.

This is incorrect; midnight should be rendered as 12:[MM] AM,
and noon should be rendered as 12:[MM] PM.
2023-10-31 14:23:20 +01:00
Macdu
1dc392dda3 renderer/vulkan, gui: Replace shaders compiled by pipelines compiled on Vulkan 2023-10-29 17:11:37 +01:00
Macdu
f4972f6427 config, gui: Add option to disable checking for updates 2023-10-27 18:37:22 +02:00
Croden1999
6fa221cd9a
gui/app context menu: Fixed the missing open folder or delete shaderlog menuItem. 2023-10-23 15:10:56 -03:00
Croden1999
fdf371779f
gui: Fixed open or delete the shaderlog path. 2023-10-23 11:17:25 -03:00
Macdu
bfec3f6291 renderer: Implement texture replacement 2023-10-22 11:07:57 +02:00
Zangetsu38
6987b763c7 gui: Refactor UI navigation code in interface.
- Optimize code by creating lambda to remove duplicate code
2023-10-22 00:26:09 +02:00
Pedro Montes Alcalde
1e7e67be4f
gui: Add log of NFD Error in ever case it can happen (#3006) 2023-10-18 13:36:03 -03:00
redpolline
111c6dc1af gui: Prep-work to support path changes in the renderer 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