Lioncash
2e7dc4cac9
gl_shader_cache: Remove unused program_code vector in GetShaderAddress()
Given std::vector is a type with a non-trivial destructor, this
variable cannot be optimized away by the compiler, even if unused.
Because of that, something that was intended to be fairly lightweight,
was actually allocating 32KB and deallocating it at the end of the
function.
7 years ago
fearlessTobi
9a6bfc55f3
yuzu: Fix stick UI direction order
7 years ago
bunnei
b55d8111e6
renderer_opengl: Implement a new shader cache.
7 years ago
bunnei
a0e1566dc5
gl_rasterizer_cache: Update to use RasterizerCache base class.
7 years ago
bunnei
382852418b
video_core: Add RasterizerCache class for common cache management code.
7 years ago
Lioncash
c6024379a4
vfs_real: Remove unused variable in CreateDirectoryRelative()
7 years ago
Lioncash
d3934d7da7
registered_cache: Get rid of variable shadowing in ProcessFiles()
Prevents compiler warnings.
7 years ago
tech4me
d26a46feed
set: Fixed GetAvailableLanguageCodes() to follow the max_entries
Rightnow, in games use GetAvailableLanguageCodes(), there is a WriteBuffer() with size larger than the buffer_size. (Core Critical core\hle\kernel\hle_ipc.cpp:WriteBuffer:296: size (0000000000000088) is greater than buffer_size (0000000000000078))
0x88 = 17(languages) * 8
0x78 = 15(languages) * 8
GetAvailableLanguageCodes() can only support 15 languages.
After firmware 4.0.0 there are 17 supported language instead of 15, to enable this GetAvailableLanguageCodes2() need to be used.
So GetAvailableLanguageCodes() will be caped at 15 languages.
Reference:
http://switchbrew.org/index.php/Settings_services
7 years ago
Lioncash
f708207ae6
kernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHED
We can make this error code an alias of the resource limit exceeded
error code, allowing us to get rid of the lingering 3DS error code of
the same type.
7 years ago
Lioncash
bfb0c87b7b
kernel/error: Amend error code for ERR_PORT_NAME_TOO_LONG
We can treat this as an alias of TooLarge for documentation purposes.
This also lets us get rid of another lingering 3DS-related error code.
7 years ago
Lioncash
81ca46dd17
kernel/error: Add error code for the handle table being full
This replaces the lingering 3DS constant with the proper one, and
utilizes it within HandleTable's Create() member function.
7 years ago
Lioncash
b8be5524bc
kernel/error: Add error code for invalid memory permissions
7 years ago
Lioncash
2fd45093f2
kernel/error: Correct kernel error code for invalid combination
7 years ago
Lioncash
e81354ae38
svc: Return process title ID if queried in GetInfo()
We already have the variable itself set up to perform this task, so we
can just return its value from the currently executing process instead
of always stubbing it to zero.
7 years ago
Zach Hilman
6314a799aa
file_sys/crypto: Fix missing/unnecessary includes
7 years ago
Lioncash
43e0d865fa
core: Namespace all code in the arm subdirectory under the Core namespace
Gets all of these types and interfaces out of the global namespace.
7 years ago
Lioncash
c65713832c
debug_utils: Remove unused includes
Quite a bit of these aren't necessary directly within the debug_utils
header and can be removed or included where actually necessary.
7 years ago
Lioncash
1e6a209649
debug_utils: Make BreakpointObserver class' constructor explicit
Avoids implicit conversions.
7 years ago
Lioncash
b6425c0511
debug_utils: Initialize active_breakpoint member of DebugContext
Ensures that all class members are initialized.
7 years ago
Lioncash
20800f2df7
maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch()
The start and finish events should likely not be right after one another
like this, otherwise the batch will appear to complete immediately
7 years ago
Lioncash
8492ec1669
core: Remove always true conditionals in Load()
These conditions are always true, since the outer conditional already
checks for these conditions.
7 years ago
Lioncash
c74b7ee204
file_util: Correct return value in early exit of ReadFileToString()
While still essentially being zero, we should be returning a numeric
value here, not a boolean typed value.
7 years ago
Laku
36093a3e4d
fix SEL_IMM bitstring
7 years ago
Lioncash
ec59e4a6c5
hid: Move core include to cpp file
This isn't required to be in the header. Instead, directly include what
this header needs and move it to the cpp file where it belongs.
7 years ago
Lioncash
8fd9eb71b4
gl_rasterizer: Correct assertion condition in SyncLogicOpState()
Previously the assert would always be hit, since it was the equivalent
of: array == nullptr, which is never true.
7 years ago
Lioncash
f6f5c2e4d8
filesystem: Fix typo in log message
7 years ago
Tobias
165c23c848
Port #4013 from Citra: "Init logging sooner so we dont miss some logs on startup" ( #1142 )
* Port #4013 from Citra: "Init logging sooner so we dont miss some logs on startup"
* Fix compilation
7 years ago
Zach Hilman
d1a6dd61d1
xci: Ignore NCA files with updates in secure
7 years ago
Zach Hilman
4f18c17df7
content_archive: Add update title detection
This is needed because the title IDs of update NCAs will not use the update title ID. The only sure way to tell is to look for a partition with BKTR crypto.
7 years ago
David
5049ca5d8c
Added GetBootMode ( #1107 )
* Added GetBootMode
Used by homebrew
* Added enum for GetBootMode
7 years ago
tech4me
ba2972bc64
Shaders: Added decodings for IADD3 instructions
7 years ago
Zach Hilman
06487c2c8d
hex_util: Replace logic_errors with LOG_CRITICAL
Makes it so malformed hex strings do not crash the entire program.
7 years ago
Zach Hilman
67fa51ea2f
qt: Add filename and title id to window title while running
7 years ago
David Marcec
78b109d195
Addressed plu TTF changes
7 years ago
Zach Hilman
ccfd176382
key_manager: Eliminate indexed for loop
7 years ago
Zach Hilman
119ab308b5
key_manager: Create keys dir if it dosen't exist
On call to WriteKeyToFile, so that the autogenerated file can be written.
7 years ago
Zach Hilman
a7e8d10969
file_sys: Cut down on includes and copies
7 years ago
Zach Hilman
42dc856ce1
crypto: Eliminate magic constants
7 years ago
Zach Hilman
61a5b56abd
key_manager: Add support for autogenerated keys
Stored in a separate file than manual keys.
7 years ago
Zach Hilman
f26fc64cb4
key_manager: Add support for KEK and SD seed derivation
7 years ago
Zach Hilman
cde665c565
key_manager: Switch to boost flat_map for keys
Should make key gets marginally faster.
7 years ago
Zach Hilman
60b7a3b904
game_list: Add SD registration loading to game list
7 years ago
Zach Hilman
ab44192ab0
file_sys: Implement NAX containers
7 years ago
Zach Hilman
8b52d6682a
registration: Add GetEntryUnparsed methods
Returns the file before calling parser on it.
7 years ago
Zach Hilman
13524578b6
sdmc_factory: Add SDMC RegisteredCache getter
7 years ago
Zach Hilman
4112dd6b4e
qt: Make default row data title name and title id
Helps with installed games by making the title not a hexadecimal id string, instead the name.
7 years ago
Zach Hilman
bf33f80fae
vfs: Add GetOrCreateDirectoryRelative method
7 years ago
Zach Hilman
ef3768f323
filesystem: Add CreateFactories methods to fs
Allows frontend to create registration caches for use before a game has booted.
7 years ago
Zach Hilman
410062031b
filesystem: Add logging to registration getters
7 years ago
Zach Hilman
b247e0cab0
loader: Add new NAX-specific errors and messages
7 years ago