diff --git a/CMakeLists.txt b/CMakeLists.txt index f5f8df1d0b4..08f94c02aa9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1007,19 +1007,14 @@ endif() if(VITA) target_link_libraries(${BIN_TARGET} PRIVATE ScePower_stub - SceNet_stub - SceNetCtl_stub - freetype - png - m - z - FLAC - vorbisfile - vorbis - ogg - mikmod - mpg123 + SceAppUtil_stub ) + if(NOT NONET) + target_link_libraries(${BIN_TARGET} PRIVATE + SceNet_stub + SceNetCtl_stub + ) + endif() #target_compile_definitions(${BIN_TARGET} PRIVATE VITA) endif() diff --git a/Source/main.cpp b/Source/main.cpp index 117256c9404..7433f3c1c3b 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -10,6 +10,8 @@ #endif #ifdef __vita__ #include +#include "platform/vita/network.h" +#include "platform/vita/random.hpp" #endif #ifdef RUN_TESTS #include diff --git a/Source/platform/vita/network.cpp b/Source/platform/vita/network.cpp index c55788c1d12..0eefc1ec476 100644 --- a/Source/platform/vita/network.cpp +++ b/Source/platform/vita/network.cpp @@ -1,7 +1,9 @@ +#include "platform/vita/network.h" + +#ifndef NONET #include #include #include -#include "platform/vita/network.h" #include #include #include @@ -30,3 +32,8 @@ void vita_enable_network() return; } } +#else +void vita_enable_network() +{ +} +#endif // !NONET \ No newline at end of file diff --git a/Source/platform/vita/random.cpp b/Source/platform/vita/random.cpp index 297959ed266..6c0576c4b7e 100644 --- a/Source/platform/vita/random.cpp +++ b/Source/platform/vita/random.cpp @@ -1,3 +1,6 @@ +#include "random.hpp" + +#ifndef NONET #include #include #include @@ -32,3 +35,8 @@ void randombytes_vitarandom_init() { randombytes_set_implementation(&randombytes_vitarandom_implementation); } +#else +void randombytes_vitarandom_init() +{ +} +#endif // !NONET \ No newline at end of file