summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | yuzu: Resolve C++20 deprecation warnings related to lambda capturesGravatar Lioncash2020-08-033-21/+21
| | |_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++20 deprecates capturing the this pointer via the '=' capture. Instead, we replace it or extend the capture specification.
* | | | | | | | | | Merge pull request #4474 from lioncash/hle-profileGravatar David2020-08-041-17/+26
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | profile_manager: Make use of designated initializers
| * | | | | | | | | | profile_manager: Make use of std::nulloptGravatar Lioncash2020-08-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows some implementations to completely avoid unnecessarily zeroing out the internal buffer.
| * | | | | | | | | | profile_manager: Make use of designated initializersGravatar Lioncash2020-08-031-13/+22
| | |/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | More compact code.
* | | | | | | | | | Merge pull request #4473 from lioncash/cheat-desigGravatar bunnei2020-08-031-105/+121
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | dmnt_cheat_vm: Make use of designated initializers
| * | | | | | | | | | dmnt_cheat_vm: Make use of designated initializersGravatar Lioncash2020-08-031-105/+121
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows for more compact code.
* | | | | | | | | | Merge pull request #4456 from Morph1984/stub-really-long-fs-funcGravatar bunnei2020-08-037-63/+120
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute
| * | | | | | | | | | minor nitsGravatar Morph2020-07-311-1/+3
| | | | | | | | | | |
| * | | | | | | | | | fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttributeGravatar Morph2020-07-302-23/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stub these 2 service commands required for Animal Crossing: New Horizons Update 1.4.0
| * | | | | | | | | | fs: Rename SaveDataDescriptor to SaveDataAttributeGravatar Morph2020-07-305-41/+63
| | |_|_|_|/ / / / / | |/| | | | | | | |
* | | | | | | | | | Merge pull request #4482 from lioncash/ldr-signGravatar bunnei2020-08-031-3/+2
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | service/ldr: Resolve sign mismatch warnings
| * | | | | | | | | | service/ldr: Resolve sign mismatch warningsGravatar Lioncash2020-08-031-3/+2
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were performing an int < size_t comparison. We can just correct the type of the induction variable.
* | | | | | | | | | Merge pull request #4468 from lioncash/regcacheGravatar bunnei2020-08-031-10/+15
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | registered_cache: Resolve -Wmaybe_uninitialized warnings
| * | | | | | | | | | registered_cache: Resolve -Wmaybe_uninitialized warningsGravatar Lioncash2020-08-031-10/+15
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | While we're at it, we can avoid a redundant map lookup.
* | | | | | | | | | Merge pull request #4471 from ogniK5377/sm-getservice-conceptGravatar bunnei2020-08-031-3/+2
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | sm: Make use of IsBaseOf for GetService
| * | | | | | | | | | sm: Make use of IsBaseOf for GetServiceGravatar David Marcec2020-08-031-3/+2
| | |/ / / / / / / / | |/| | | | | | | |
* | | | | | | | | | Merge pull request #4467 from lioncash/modeGravatar bunnei2020-08-032-18/+21
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with Mode
| * | | | | | | | | file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with ModeGravatar Lioncash2020-08-032-18/+21
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Same behavior, minus a hand-rolled operator.
* | | | | | | | | ipc: Allow all trivially copyable objects to be passed directly into ↵Gravatar David2020-08-039-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WriteBuffer (#4465) * ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer With the support of C++20, we can use concepts to deduce if a type is an STL container or not. * More agressive concept for stl containers * Add -fconcepts * Move to common namespace * Add Common::IsBaseOf
* | | | | | | | | Merge pull request #4439 from lioncash/cpuGravatar David2020-08-031-3/+3
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | cpu_manager: Remove redundant std::function declarations
| * | | | | | | | cpu_manager: Remove redundant std::function declarationsGravatar Lioncash2020-07-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can just return the function directly. Making for less reading.
* | | | | | | | | xts_archive: Check if the file is nullptr prior to parsingGravatar Morph2020-07-291-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes an access violation where the file no longer exists at the specified path while being parsed.
* | | | | | | | | registered_cache: Add support for removing folder ncasGravatar Morph2020-07-292-53/+54
| | | | | | | | |
* | | | | | | | | Merge pull request #4442 from lioncash/devicememGravatar bunnei2020-07-283-11/+4
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | device_memory: Remove unused system member
| * | | | | | | | | device_memory: Remove unused system memberGravatar Lioncash2020-07-273-11/+4
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't used by anything in particular, so it can be removed.
* | / / / / / / / configure_graphics: Remove Force 30 FPS modeGravatar Morph2020-07-282-2/+0
| |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The introduction of multicore rendered this setting non-functional as timing code was changed. This removes the setting entirely.
* | | | | | | | core_timing: Make use of uintptr_t to represent user_dataGravatar Lioncash2020-07-2713-38/+46
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Makes the interface future-proofed for supporting other platforms in the event we ever support platforms with differing pointer sizes. This way, we have a type in place that is always guaranteed to be able to represent a pointer exactly.
* | | | | | | remove unused variable;Gravatar CrazyMax2020-07-271-1/+0
| | | | | | |
* | | | | | | nvflinger: Mark interface functions with return values as [[nodiscard]]Gravatar Lioncash2020-07-251-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not using the return value of these functions are undeniably the source of a bug. This way we allow compilers to loudly make any future misuses evident.
* | | | | | | nvflinger: Use return value of Lock()Gravatar Lioncash2020-07-253-4/+4
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | comex reported in #4424 that we were incorrectly discarding the return value of Lock() which is correct.
* | | | | | Merge pull request #4350 from ogniK5377/hid-update-connectedGravatar bunnei2020-07-252-33/+37
|\ \ \ \ \ \ | | | | | | | | | | | | | | hid: Only update keyboard & debug pad inputs if enabled
| * | | | | | hid: Only update keyboard & debug pad inputs if enabledGravatar David Marcec2020-07-162-33/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we would ignore this setting and would update the states regardless of the user setting
* | | | | | | Merge pull request #4380 from ogniK5377/swkbd-inline-1Gravatar bunnei2020-07-242-13/+49
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | swkbd: Return result for Calc request for inlined swkbd
| * | | | | | Address issuesGravatar David Marcec2020-07-201-2/+2
| | | | | | |
| * | | | | | swkbd: Return result for Calc request for inlined swkbdGravatar David Marcec2020-07-192-13/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes random swkbd popups in monster hunter
* | | | | | | network: add missing include for BSDsGravatar Jan Beich2020-07-221-0/+2
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/core/network/network.cpp:112:28: error: use of undeclared identifier 'SHUT_RD' constexpr int SD_RECEIVE = SHUT_RD; ^ src/core/network/network.cpp:113:25: error: use of undeclared identifier 'SHUT_WR' constexpr int SD_SEND = SHUT_WR; ^ src/core/network/network.cpp:114:25: error: use of undeclared identifier 'SHUT_RDWR' constexpr int SD_BOTH = SHUT_RDWR; ^ src/core/network/network.cpp:120:37: error: unknown type name 'in_addr'; did you mean 'in_addr_t'? constexpr IPv4Address TranslateIPv4(in_addr addr) { ^~~~~~~ in_addr_t /usr/include/netdb.h:66:20: note: 'in_addr_t' declared here typedef __uint32_t in_addr_t; ^ src/core/network/network.cpp:121:27: error: member reference base type 'in_addr_t' (aka 'unsigned int') is not a structure or union const u32 bytes = addr.s_addr; ~~~~^~~~~~~ src/core/network/network.cpp:121:15: error: variables defined in a constexpr function must be initialized const u32 bytes = addr.s_addr; ^ src/core/network/network.cpp:126:10: error: incomplete result type 'sockaddr' in function definition sockaddr TranslateFromSockAddrIn(SockAddrIn input) { ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:127:5: error: unknown type name 'sockaddr_in'; did you mean 'sockaddr'? sockaddr_in result; ^~~~~~~~~~~ sockaddr /usr/include/netdb.h:142:9: note: 'sockaddr' declared here struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:127:17: error: variable has incomplete type 'sockaddr' sockaddr_in result; ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:131:29: error: use of undeclared identifier 'AF_INET' result.sin_family = AF_INET; ^ src/core/network/network.cpp:135:29: error: use of undeclared identifier 'AF_INET' result.sin_family = AF_INET; ^ src/core/network/network.cpp:139:23: error: use of undeclared identifier 'htons' result.sin_port = htons(input.portno); ^ src/core/network/network.cpp:143:14: error: variable has incomplete type 'sockaddr' sockaddr addr; ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:156:1: error: unknown type name 'linger' linger MakeLinger(bool enable, u32 linger_value) { ^ src/core/network/network.cpp:157:5: error: unknown type name 'linger' linger value; ^ src/core/network/network.cpp:185:16: error: use of undeclared identifier 'AF_INET' return AF_INET; ^ src/core/network/network.cpp:195:16: error: use of undeclared identifier 'SOCK_STREAM' return SOCK_STREAM; ^ src/core/network/network.cpp:197:16: error: use of undeclared identifier 'SOCK_DGRAM' return SOCK_DGRAM; ^ src/core/network/network.cpp:207:16: error: use of undeclared identifier 'IPPROTO_TCP' return IPPROTO_TCP; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=]
* | | | | | Merge pull request #4306 from ReinUsesLisp/bsd-networkGravatar David2020-07-215-0/+840
|\ \ \ \ \ \ | |/ / / / / |/| | | | | core/network: Add network abstraction
| * | | | | core/network: Add network abstractionGravatar ReinUsesLisp2020-07-195-0/+840
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a network abstraction designed to implement bsd:s but at the same time work as a generic abstraction to implement any networking code we have to use from core. This is implemented on top of BSD sockets on Unix systems and winsock on Windows. The code is designed around winsocks having compatibility definitions to support both BSD and Windows sockets.
* | | | | | Merge pull request #4348 from lioncash/nanoGravatar bunnei2020-07-1813-71/+80
|\ \ \ \ \ \ | | | | | | | | | | | | | | core_timing: Make usage of nanoseconds more consistent in the interface
| * | | | | | core_timing: Remove unused data memberGravatar Lioncash2020-07-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Shrinks the size of the CoreTiming class by 8 bytes.
| * | | | | | core_timing: Make TimedCallback take std::chrono::nanosecondsGravatar Lioncash2020-07-1513-44/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enforces our desired time units directly with a concrete type.
| * | | | | | core_timing: Make use of std::chrono with ScheduleEventGravatar Lioncash2020-07-1510-32/+42
| | | | | | |
* | | | | | | Merge pull request #4345 from Morph1984/fix-createfileGravatar bunnei2020-07-181-0/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | filesystem: Create subdirectories prior to creating a file
| * | | | | | | Add comment to clarify the nullptr checkGravatar Morph2020-07-161-0/+1
| | | | | | | |
| * | | | | | | filesystem: Create subdirectories prior to creating a fileGravatar Morph2020-07-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If subdirectories exist in the given path parameter and don't exist in the real filesystem create them prior to creating the files within. This fixes the softlocks upon save creation in The Legend of Zelda: Breath of the Wild
* | | | | | | | Merge pull request #4273 from ogniK5377/async-shaders-prodGravatar bunnei2020-07-183-0/+5
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | video_core: Add asynchronous shader decompilation and compilation
| * | | | | | | | Drop settings namespaceGravatar David Marcec2020-07-171-2/+1
| | | | | | | | |
| * | | | | | | | Rebase for per game settingsGravatar David Marcec2020-07-173-0/+6
| | |_|/ / / / / | |/| | | | | |
* | | | | | | | Merge pull request #4365 from lioncash/miiGravatar bunnei2020-07-171-53/+54
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | mii/manager: Make use of designated initializers
| * | | | | | | | mii/manager: Make use of designated initializersGravatar Lioncash2020-07-161-53/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows returning the structure in a more concise manner.