Commit graph

108 commits

Author SHA1 Message Date
Saturnsky
f0c22ea2e9 gui/highdpi: auto adjust font size based on DPI and window scale 2025-01-21 10:30:25 +03:00
SaturnSky
6612689b41 gui/highdpi: add X11 DPI fetch for Linux support 2025-01-21 10:30:25 +03:00
SaturnSky
57afbc4f75 gui/highdpi: Split DPI scaling into system and manual handling 2025-01-21 10:30:25 +03:00
SaturnSky
134d9e6446 gui/highdpi: Separate logical and drawable viewport management 2025-01-21 10:30:25 +03:00
SaturnSky
5ee304044d gui/highdpi: Enable Windows High DPI and remove Linux-specific implementation 2025-01-21 10:30:25 +03:00
Pedro Montes Alcalde
4a14d546ba
Tick Tick Tick, thats the sound of 2024 flying by (#3503) 2025-01-19 18:51:43 -03:00
Pedro Montes Alcalde
b2dea4e4ec
app: Ignore XDG_DATA_DIRS for shared path (#3445) 2024-11-29 10:29:23 -03:00
SpikeHD
0ebcc09292
patch: Add support for patch files (#3419)
* feat: poc patch loading

* fix: remove some logging, tweak filename requirements

* fix: clang format

* fix: loop -> memcpy

* fix: patching the wrong file

* fix: patch path in shared path on linux

* fix: newline

* fix: change to txt

* fix: explicit std

* fix: conditionally load patches

* fix: stroull -> stoull
2024-11-15 23:32:55 +01:00
oltolm
c61895e6f4
vita3k: Add support for mingw-w64 (#3406)
* make the code compile on mingw-w64

* make compile with Clang 19

* make compile with GCC
2024-10-26 23:41:51 +02:00
oltolm
70e034efc5
cmake: Improve mingw support (#3360)
* fix CMake scripts for mingw-w64

* ffmpeg: update submodule
2024-09-26 00:08:47 +02: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
Macdu
3f5a00883e app: Disable round window corners on Windows 2024-09-07 21:20:24 +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
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
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
ac73ee8270
app: Improve path support for Linux and macOS. (#3193) 2024-01-29 11:14:52 +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
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
nn9dev
a59a432ce9 Fixes an issue where if Vita3K is called to run from an AppImage (not AS an AppImage) it will incorrectly believe that it is running AS an AppImage, and try to read its files from a place they do not exist
Fixes an issue where if Vita3K is called to run from an AppImage (not AS an AppImage) it will incorrectly believe that it is running AS an AppImage, and try to read its files from a place they do not exist.
2023-12-25 09:47:06 +01:00
Zangetsu
37ad684fcb
app/app init: Enable the init log path for OS assign only. (#3104) 2023-12-04 15:01:42 +01:00
Pedro Montes Alcalde
201777fac6
io/appimage: Correctly handle appdir for static and shared assets 2023-11-22 12:17:44 -03:00
Seungyun Lee
77ffb423be
io: set default static assets path with base path 2023-11-20 03:30:01 -03: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
Macdu
f49ef10e50 modules/SceGxm, display, renderer: Implement frame prediction 2023-11-16 11:28:36 +01:00
Macdu
bfec3f6291 renderer: Implement texture replacement 2023-10-22 11:07:57 +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
Macdu
1a9122803d gui, renderer: Add renderer accuracy option 2023-09-24 14:53:47 +02:00
nishinji
ada3fe0671 gui: allow stretching the display area 2023-08-08 17:18:41 +02:00
Macdu
18f9b84276 renderer: Refractor Screen Filtering 2023-05-23 23:11:22 +02:00
Zangetsu38
39bfd76424 vita3k: implement Pause/resume app. 2023-05-06 22:49:48 +02:00
Macdu
b8cdbc76a3 gui: Correctly apply DPI scaling to fonts 2023-04-26 06:14:22 +02:00
CoffeeBrewer64
75a6bf0d86
Typo fixes #2475 2023-04-06 23:04:05 +02:00
Zangetsu38
69a501204a gui: Add more keep aspect ratio and scaling font.
- should fix size of font in full screen.
app/app init: enable calculate dpi for Linux and windows only.
2023-03-23 05:23:56 +01:00
Zangetsu38
9e0473175f app/app init: Disable high dpi for steam deck.
fix some format.
2023-03-07 12:59:23 +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
Macdu
e2b07dc4f8 renderer/vulkan: Add PageTable implementation for memory mapping 2023-02-28 20:44:10 +01:00
EXtremeExploit
41a17e79c7 Planet Earth Season 2023 2023-01-02 10:46:20 +01:00
Macdu
5121ecdfd0 app: Do not access fields of a moved struct 2022-12-17 17:02:06 +01:00
Macdu
10c08288fa audio: Add Cubeb backend 2022-12-17 17:02:06 +01:00
Macdu
6c46e0aa40 vita3k: Bring back the macOS build.
Co-Authored-By: Zangetsu <dante38@free.fr>
Co-Authored-By: Seungyun Lee <khora.lee.0@gmail.com>
2022-11-07 15:23:37 +01:00
Macdu
b6e1fe24aa renderer: Add Vulkan renderer 2022-08-26 16:52:25 +02:00
Pedro Montes Alcalde
4b82fb3a58
opengl: Update OpenGL version when it can't create context 2022-08-23 19:24:48 -03:00
Macdu
2eefc9751e vita3k: Remove unnecessary dependencies between librairies and files 2022-07-28 12:24:06 +02:00
Pedro Montes Alcalde
406e70543a
vita3k: Change frames/sec to FPS and refactor a little (#1968) 2022-07-24 00:25:22 -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
Zangetsu38
802430cc91 app: add backend render used in title bar. 2022-06-24 19:12:10 +02:00
Zangetsu38
784c26fec0 settings dialog: Improve and clean code of set AF.
- delete some value not needed for init config.
- fix set config of aniso and fxaa with using current config.
app: set AF level used in title.
2022-06-15 00:12:05 +02:00
Macdu
94ba4ea166 app: Display real internal resolution in window title 2022-06-09 13:14:30 +02:00