* Reset controller colours on emulator shutdown
* bruh moment
* Don't use the destructor for this
* clang, formatter of night
* forgot to stage this file
* ffs
* fix tests
* fixed tests?
* gcn tests fixed?
* now?
* possible fixed
---------
Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
* Add error logging for unsupported file descriptors
Log an error when an unsupported file descriptor is encountered.
* Log error with correct variable in file_system.cpp
* fix clang being a whiny bitch
* use {}
* changed from error to warning, and added it to windows version of function
meow
* Fix some new bugs caused by lack of trophy key after #4498
By not adding to the trophy map, games would hit the error return in sceNpTrophyCreateContext instead of the stub for trophy-key-less individuals.
* Revert "Workaround for bad npbind.dat"
This reverts commit 7bd27054f3.
* Move NPCommID checks to sceNpTrophyRegisterContext
CreateContext doesn't seem to check anything, I can run it successfully on a homebrew with none of the NP files. The first errors start in sceNpTrophyRegisterContext.
* Update np_error.h
* Update np_trophy.cpp
* Workaround for bad npbind.dat
Games that check trophy returns still complain, and at this point, it's entirely the user's fault.
However, people don't like that answer, so workaround the issue.
Introduces a check for valid context paths, and a stub OK return that triggers if RegisterContext would've failed on real hardware.
* Better log messages
* sceHttpAddRequestHeader
* added sceHttpRemoveRequestHeader
* implemented a few more functions
* added sceHttpSetProxy
* cleanup
* more cleanup
* fix tests?
* fix tests part2
* Added debug in SendRequest
* improved debug
* forgot
* added real http connection path
* fixes for wipeout
* add custom redirect as it doesn't match the httplib one
* more debug messages
* clang is not my friend
* argg
* make kernelstub configurable
* added url override
* fixup
* ..
* stephen's reviews
* more stephen reviews
* http tests
* fixed tests
* fixed a single tests isssue
* one more fix
* argg
* Uze miniz instead of zlib for libSceZlib
Might fix ROTTR?
* Claaaaang
* Explicitly use miniz's uncompress
* Clang2
* Swap types
In theory, these types are all the same size. Best we use the right ones for the library though.
* Remove "stub" logs
* Restructed PthreadMutex struct
When libc creates mspaces, they modify the data of a PthreadMutex to set the mutex's private flag. Previously, on Linux, this would modify internal data of our TimedMutex, and on Windows this would modify the m_yieldloops variable.
This makes it so our m_flags is at the same offset as the real pthread_mutex struct, so no data corruption occurs.
* Further struct changes
To address review comments
It's recursive in the actual library, and since our implementation in thoroughly based on the actual library, this is needed for our code to function appropriately.
Add check in sceKernelReserveVirtualRange, sceKernelMapNamedDirectMemory, and
sceKernelMapNamedFlexibleMemory per StevenMiller123 review:
- FW >= 1.70 returns EINVAL for Fixed + addr == 0
- Older FW clears Fixed flag to fall through to managed allocation
Co-authored-by: opencode <dev@shadps4.local>
* Only initialize logging once
* Swap LOG macros for std::cerr and std::cout use.
* Add quick exit when trying to log before logger init
* Revert "Swap LOG macros for std::cerr and std::cout use."
This reverts commit a14d46d383.
* Use fmt's functions instead of cerr
Makes the commits a tad cleaner.
* Revert macro change
If I remember right, the if check here was to make sure we didn't throw exceptions after terminating the logger, which can happen due to a race involving some debug libSceVideoOut logs.
* Oops
* Implement trophy migration
* Respect user choice from save migration
* yet another nested subfolder iterator
* refactoring and remove original hardcoded forced migration code
This code has been an absolute mess since the trophy rework. This eliminates several redundant loops through game trophy files, and separates the logic into it's own function.
* Remove old config backend
Trophy key migration now uses the toml library directly, like our config transfer code.
* Don't retrieve user_dir in main
No longer needed.
* Fix version number.
* Use the packages.x86_64-linux namespace.
* linux. prepend no longer required.
* Created build-shadps4 module.
.
.
.
.
.
.
.
* Move dependency list to generator function parameters.
* Using call package to run builder.
* Pull in matching names and use inherit.
* Paths need to be wrapped in a "".
* Put , on the packages.
* And inherit does not need any , .
* Fixups.
* release and releaseWithDebugInfo now use the same builder.
* Set default pacakge to releaseWtihDebugInfo.
* Rename to build, moved down a directory and deleted modules/
.
* Seperated devshell into shell.nix
.
.
.
.
.
* Double ".nix"
* Nix Formatting.
* Included missing dependencies for shell.
.
.
.
.
* Update Lock file.
* Removed old unused shell.nix.
* Collapse shell and build into flake.nix
.
* Window bar patch
.
.
.
* Removed unused patches list.
* As older nix shell was removed. Also remove old documentation.
* Create a mkderivation wrapper lambda.
.
.
* Removed execName
* Call new wrappers instead of duplicated mkDerivation.
* Removed finalAttrs
* Use more semi-colons
* Used clang and the build environment instead of the standard gcc.
* Replaced "git" with current nightly version.
* Automatically pass the required environment variables into the development shell instead of requiring them as part of cmake command.
* Change to an if statement because ! hurts the brain.
* Added perf to devshell package list.
* Added Nix formatter.
.
* Collision with the ++ operator in the environment variable.
* Nix Format.
* Set dummy GameController's m_connected to false
* Remove this check and handle it differently
* Save one reverse lookup on a map
this is mostly irrelevant on performance
* i have no clue so let's just log stuff
* apparently this is the correct default
* swap this to debug logging
* the loathsome clang-formatter
* Revert "shader_recompiler: Pad number of TES passthrough outputs to fragment inputs if needed"
This reverts commit 6436063025.
* Revert "shader_recompiler: Only forward declared number of vertex inputs. (#4293)"
This reverts commit 47f5cc1437.