| Age | Commit message (Collapse) | Author |
|
|
|
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=]
|
|
core/network: Add network abstraction
|
|
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.
|
|
core_timing: Make usage of nanoseconds more consistent in the interface
|
|
filesystem: Create subdirectories prior to creating a file
|
|
video_core: Add asynchronous shader decompilation and compilation
|
|
mii/manager: Make use of designated initializers
|
|
mii/manager: Resolve sign mismatch warnings
|
|
dmnt_cheat_vm: Implement opcode 0xC3 (ReadWriteStaticRegister)
|
|
fs: Fix RomFS building when zero byte files are present
|
|
|
|
|
|
settings: Make use of std::string_view over std::string for logging
|
|
core/CMakeLists: Add missing physical_memory.h header file
|
|
kernel: Remove unused variables
|
|
kernel/thread: Remove unimplemented function prototype
|
|
Allows this header file to show up in IDE CMake generators.
|
|
Eliminates reliance on an indirect include.
|
|
Previously the loop termination condition was testing variables of
different signedness.
|
|
Allows returning the structure in a more concise manner.
|
|
hle: service: mii: Rewrite service to properly support creation of random and default miis.
|
|
address_space_info: Make use of designated initializers
|
|
This isn't used, so it can be removed.
|
|
Resolves some compiler warnings in the Linux build.
|
|
|
|
All these do are return std::function instances of static functions, so
these can be used without an instance of the CPU manager.
|
|
Shrinks the data structure by 8 bytes.
|
|
Previously this header was relying on indirect inclusions that are no
longer satisfied.
|
|
main: Set async gpu properly after loading per-game setting
|
|
kernel/handle_table: Remove usages of the global system instance
|
|
registered_cache: Remove previous update/dlc if it exists on install
|
|
|
|
|
|
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
|
|
memory_layout: Remove unused data member
|
|
Shrinks the size of the CoreTiming class by 8 bytes.
|
|
Enforces our desired time units directly with a concrete type.
|
|
|
|
A sign conversion warning was occurring due to an int < size_t
comparison.
|
|
These aren't directly important or commonly used within the process, so
we can move these to the bottom to allow everything else to be more
likely to be within a cache line.
|
|
Removes even more usages of the global system instance, trimming away
more dependencies on global variables and making them explicit in the
interface.
|
|
In all usages of LogSetting(), string literals are provided.
std::string_view is better suited here, as we won't churn a bunch of
string allocations every time the settings are logged out.
While we're at it, we can fold LogSetting() into LogSettings(), given
it's only ever used there.
|
|
This is only used in one place, so we can fold it into the calling code,
eliminating a place for the global system instance to be used.
|
|
|
|
|
|
|
|
- This checks for and removes old updates or dlc based on title id. If a content meta nca exists within the registered cache, it will attempt to remove all the ncas associated with the content meta before installing a new update/dlc
|
|
|
|
This was based on Atmosphére's DMNT Cheat VM:
- https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp
- https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp
From Atmosphére's documentation: "Code type 0xC3 reads or writes a static register with a given register"
There are now only two remaining opcodes to implement (PauseProcess and BreakProcess)
This is untested because I don't have any experience in testing cheats on yuzu
|