Commit Graph
963 Commits
Author SHA1 Message Date
Kenix3 040051dc86 LeftOrRightStick -> WhichStick
Resolves #707
2024-12-11 22:06:58 -05:00
Kenix3andGitHub 275b0d32c9 Uses a struct in in mResourceCache in the ResourceManager. (#740)
* Now uses a struct in ResourceManager cache map key.

* Adds logic to be able to load a raw File from specific Archive via ResourceManager

* Fixes issue of setting the hash function for ResourceCacheData in the incorrect place.

* Remove whitespace in ResourceManager.h

* Changes bind to lambda in LoadResourceAsync.

* clang-format

* Rename ResourceCachdData -> ResourceIdentifier

* Moves Archive to ResourceInitData and renames ResourceIdentifier.LoadArchvie -> Parent

* Removing more whitespace.

* clang-format

* CacheData -> Identifier

* Simplify ArchiveManager.LoadFile

* Caching the hash on construction of ResourceIdentifier.

* clang-format

* ResourceCacheDataHash -> ResourceIdentifierHash

* Uses a better function for combining multiple hashes.

* ResourceIdentifier.GetHash to private.
2024-12-11 21:04:41 -05:00
ArchezandGitHub 27cd261bf4 Add method for Metal to setup imgui for floating windows (#739) 2024-12-10 22:48:04 -05:00
LywxandGitHub c1f84799de Implemented SetMousePos (#738) 2024-12-10 22:00:45 -05:00
ee1c0df9c9 Added mouse api interface (#731)
* Added WIP mouse support

* Fixed compilation

* Added mouse press state

* Fixed tidy

* Added support for mouse capturing (SetMouseCapture)

* Added mouse wheel support

* mouse backward & forward support

* bool IsMouseCaptured()

---------

Co-authored-by: lightmanLP <50497969+lightmanLP@users.noreply.github.com>
2024-12-09 21:29:03 -05:00
MegaMechandGitHub 63513146bf Allow Ports To Configure Default Button Mappings (#724)
* Update ButtonMappingFactory.cpp

* Update AxisDirectionMappingFactory.cpp

* Update cvars.cmake

* Update ButtonMappingFactory.cpp

* As per review

* Add sdl controller mapping

* tidy

* Update cvars.cmake

* Update ButtonMappingFactory.cpp

* tidy
2024-12-09 13:18:25 -05:00
MalkierianandGitHub 1a8f6c0db9 Optimize filtered ListFiles() to only iterate once. (#737)
* Optimize filtered `ListFiles()` to only iterate once.

* Remove "unfiltered" version of ListFiles, and add a default argument value of a blank string.
Use `std::string::empty()` instead of string compare, and remove redundant check.
2024-12-09 12:50:20 -05:00
CaladiusandGitHub 99d78d6138 Update Grayscale8bpp to remove black backgrounds from Digit Textures (#735)
* Update Grayscale8bpp to remove black backgrounds from Digit Textures in SoH

* Adding Grayscale4bpp as well.
2024-12-07 11:40:13 -05:00
coco875andGitHub d252cc241e Update DisplayListFactory.cpp (#734) 2024-12-06 21:14:48 -05:00
ArchezandGitHub 31c800099d Add control for managing framebuffer clearing (#732) 2024-12-06 16:48:32 -05:00
LywxandGitHub 534fd7d8df Changed format on gfx trace (#730)
* Changed format to add more debug

* Fixed format
2024-12-03 13:33:19 -05:00
LywxandGitHub 4a4a54c842 Added simple gfx trace system (#559)
* Rebased

* Fixed tidy

* Fixed tidy again

* Added trace on F3DGwords

* Fixed static_assert to count for Trace

* Wrapped gbi trace into an ifdef

* Fixed tidy
2024-12-01 14:52:57 -05:00
briaguyaandGitHub 5e34a4eb47 multiplayer disconnected controller fixes (#725)
* wip fixes

* remove commented out stuff

* clang format
2024-12-01 13:16:25 -05:00
LywxandGitHub 09aec10779 Fixed ios compilation (#728) 2024-12-01 13:06:28 -05:00
Alejandro Asenjo NittiandGitHub 4810a17e66 Fix for G_TEXTURE_GEN_LINEAR. Authored-by: @DarioSamo (#727) 2024-11-30 10:28:58 -05:00
ArchezandGitHub 80c2c5e9c6 remove unneeded quiet flag in patch command (#722) 2024-11-18 21:21:38 -05:00
EmillandGitHub 9bbf56b913 Fix texture edge with transparent objects (#721)
The "texture edge" mode as it is written in the shader assumes non-transparent objects, or actually that the alpha mask goes around a non-transparent object. Texture edge + transparent objects can be represented with the threshold solution instead.

The transparent balloons in Mario Kart 64 use CVG_X_ALPHA with blender turned on (new colour * alpha + previous colour * (1-alpha)).
2024-11-18 20:51:43 -05:00
ArchezandGitHub bfff9bf131 Execute logic to reset rsp state on ucode load (#719) 2024-11-18 20:28:29 -05:00
balloondude2andGitHub 30eb79b349 Audio Player Updates (#718)
* update to int32_t in AudioPlayer

* move function definitions and remove constexpr
2024-11-09 05:11:15 -05:00
balloondude2andGitHub be15c728de clarify audioBackend getter and setter (#716) 2024-11-05 19:42:47 -05:00
balloondude2andGitHub 2d6bae2da2 remove unused functions (#717) 2024-11-05 19:18:37 -05:00
AloXado320andGitHub 00c6bcc882 Fix Gui Menu buttons (#692)
* Fix Gui Menu buttons

* swap if else conditions
2024-10-22 18:10:49 -04:00
LywxandGitHub cd7721fae2 Fixed null crash on textures (#694)
* Fixed null crash on textures

* Fixed tidy
2024-10-22 17:45:02 -04:00
LywxandGitHub 9ec8b987c7 [Breaking Change] Make the display lists ucode aware (#693)
* [Breaking Change] Make the display lists ucode aware

* Fixed tidy

* Added more ucodes and implemented ucode into resource

* Fixed compilation

* Fixed missing cases on f3d and handled end in a better way

* Fixed tidy
2024-10-22 17:31:29 -04:00
Lars-Christian SellandandGitHub 736ad68251 Updates to Context.cpp for macOS Game mode support (#690)
* Update Context.cpp

* Removed mkdir from LUS

Also merged expand tilde and the #if defined(__APPLE__) in GetAppDirectoryPath since it was only used there.

* fixed an oopsie

* Update Context.cpp

* Removed the 4 spaces from the accidental tab.
2024-10-20 15:34:20 -04:00