Commit graph

33 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
nishinji
bd5936a1ba
compat: change time style to yyyy-mm-dd (#3408)
- follow ISO 8601
2024-11-04 20:13:53 +01: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
nishinji
92c4646489
compat: download zipped database (#3287) 2024-06-04 22:06:12 +02:00
Zangetsu
9811c742ef
compat: Fix issue count discrepancy after update. (#3263) 2024-03-30 21:17:22 +01: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
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
Pedro Montes Alcalde
34565e3ef4
Vita2024K: Happy 2024 2024-01-01 12:36: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
Pedro Montes Alcalde
9d23a76621
https: use CURL instead of raw hand made http 2023-11-08 10:46:49 -03: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
Zangetsu38
4ba6675c95 compat: Check if app compat db is outdated before load.
- Get load compat db more speed without full load db two time when have new update.
- fix function name.
- small refactor.
2023-10-11 12:53:45 +02:00
Zangetsu38
f00867d1f0 config & gui/settings dialog: Add option for enable log compat warn. 2023-08-17 23:59:41 +02:00
Croden1999
f615ef0726 gui/compat: Add lang to info message. 2023-06-27 21:19:26 +02:00
Pedro Montes Alcalde
1bb7ef4eb7
vita3k: Add missing cstdint includes 2023-05-08 01:19:44 -03:00
Croden1999
359456c996 modules/SceCommonDialog: Update a few of common strings. 2023-04-13 18:32:59 +02:00
CoffeeBrewer64
75a6bf0d86
Typo fixes #2475 2023-04-06 23:04:05 +02:00
Zangetsu38
e395624811 gui/home screen: Add app filter by compat state.
compat: fix typo of CompatibilityState enum.
gui: fix day on format dd/mm/yyyy for start screen.
2023-04-01 18:47:28 +02:00
Zangetsu38
698edcba7a compat: Added title id valid check. 2023-03-25 22:49:56 +01:00
Zangetsu38
db5d3be442 https: Add support of pause/resume download.
gui/vita3k update: Add timme remaining of download and cancel dialog.
- Very lot refactor.
2023-03-22 19:50:25 +01:00
Zangetsu38
759a81af0d vita3k Add dpi support on linux.
- Disable SDL_WINDOW_ALLOW_HIGHDPI for mac.
compat: little clean code no needed

Co-authored-by: Seungyun Lee <khora.lee.0@gmail.com>
2023-03-04 22:47:30 +01:00
Zangetsu38
08dec7cac7 compat: Add check and log for duplicate issue.
- Info tester request close duplicate issue.
2023-03-02 00:04:32 +01:00
Zangetsu38
578749618f https: Add check of file size dowloaded.
compat: smal improvement in log info.
gui: no display dialog info when app already running.
- fix one mistake in pos of dialog info.
- move vita3k update init after init home, should fix transparency issue in boot when update is available.
2023-03-01 18:51:19 +01:00
Zangetsu38
6da03dbbbb vita3k update: move from curl and powershell to https.
- move openssl code inside https directory.
gui: reworks info msg dialog.
2023-02-26 18:17:12 +01:00
Zangetsu38
2a69c4ed35 compat: move from curl and powershell to openssl.
- should fix problem for some users.
2023-02-24 03:08:04 +01:00
Zangetsu38
cd96effca7 lang: fix forget change id of Compatibility State.
compat: fix sort app after update database.
fix format.
2023-02-19 15:31:46 +01:00
Zangetsu38
0e1e257394 gui/home screen: Add app compatibility sorting feature.
- remove app selector state, no have any utility.
gui/src/app_context_menu: Add cah copy vita3k summary for can easy update issue.
modules/SceCommonDialog: stub MODE PROGRESS BAR for sceSaveDataDialogInit.
2023-02-18 17:57:51 +01:00
Zangetsu38
a4ded14b15 compat: fix negative value of dif. 2023-02-17 02:00:31 +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
Seungyun Lee
04ee757ff6 compat: Fix failure when updating compat DB on macOS 2023-02-15 02:22:58 +01:00
Zangetsu38
af1d634d30 gui/home screen: Add badge of compat.
- Add feature to display icons and compat badges only in visible area.
compat: small refactor compat db loaded.
gui/compile shaders: fix one warning.
2023-02-10 19:46:48 +01:00
Zangetsu
4b9911f9e5 compat/vita3k update: add timeout for check version.
- fix command download when compat path using space.
- little refactor, return error if command fail.
2023-02-02 04:59:52 +01:00
Zangetsu38
02340194d4 vita3k: Add compatibility database.
gui/app context menu: Add Compatiblity menu.
- Add bouton for can create and open issue.
- Add compat state in information app.
2023-02-01 14:17:23 +01:00