diff --git a/meta_lite/icon.png b/meta_lite/icon.png new file mode 100644 index 0000000..2958d52 Binary files /dev/null and b/meta_lite/icon.png differ diff --git a/meta_lite/meta.xml b/meta_lite/meta.xml new file mode 100644 index 0000000..62c1cf4 --- /dev/null +++ b/meta_lite/meta.xml @@ -0,0 +1,19 @@ + + + SwapDRC Lite + OatmealDome and Yahya14 + https://gbatemp.net/threads/swap-drc-for-tv-only-wii-u-games.478026/#post-7458492 + 1.3 + 201707190000000 + Switch TV display onto the gamepad + Switch Display, Audio, and Gamepad Sensor Bar: + - Press L and Minus together. + - Press the TV button. + + Switch on/off Gamepad LCD: + - Press and hold R-Stick for 3 seconds. + + Special thanks to: Maschell, dimok, NWPlayer123, Brienj, and BKOOL999. + + tool + diff --git a/src/main.c b/src/main.c index e035a16..68f899c 100644 --- a/src/main.c +++ b/src/main.c @@ -103,12 +103,15 @@ int Menu_Main() InitSocketFunctionPointers(); InitGX2FunctionPointers(); InitSysFunctionPointers(); - InitFSFunctionPointers(); InitVPadFunctionPointers(); InitAXFunctionPointers(); InitProcUIFunctionPointers(); +#if !LITE + InitFSFunctionPointers(); +#endif + - log_init("192.168.0.181"); + log_init("192.168.2.18"); SetupKernelCallback(); @@ -126,8 +129,11 @@ int Menu_Main() } ApplyPatches(); + +#if !LITE log_printf("Starting the TCPGecko server.\n"); start_pygecko(); +#endif if(!isInMiiMakerHBL()){ //Starting the application // Check for Splatoon (Gambit) @@ -165,6 +171,27 @@ int Menu_Main() OSScreenEnableEx(0, 1); OSScreenEnableEx(1, 1); +#if LITE + OSScreenClearBufferEx(0, 0); + OSScreenClearBufferEx(1, 0); + + PRINT_TEXT2(0, 1, "SwapDRC Lite is now ready..."); + PRINT_TEXT2(0, 3, "Tip: Swap screens with the TV button."); + + OSScreenFlipBuffersEx(0); + OSScreenFlipBuffersEx(1); + os_sleep(2); + + MEM1_free(screenBuffer); + screenBuffer = NULL; + + memoryRelease(); + + isFirstBoot = 0; + SYSLaunchMenu(); + +#else // LITE + // Render IP selector and check for buttons u_serv_ip ip; ip.full = ((192 << 24) | (168 << 16) | (2 << 8) | (18 << 0)); @@ -347,9 +374,11 @@ int Menu_Main() log_printf("Returning to application.\n"); log_printf("De-initializing logging.\n"); + log_deinit(); isFirstBoot = 0; SYSLaunchMenu(); +#endif } return EXIT_RELAUNCH_ON_LOAD; } @@ -358,7 +387,9 @@ int Menu_Main() Patching all the functions!!! */ void ApplyPatches(){ +#if !LITE PatchInvidualMethodHooks(method_hooks_cafiine, method_hooks_size_cafiine, method_calls_cafiine); +#endif PatchInvidualMethodHooks(method_hooks_voice_swapping, method_hooks_size_voice_swapping, method_calls_voice_swapping); PatchInvidualMethodHooks(method_hooks_video_swapping, method_hooks_size_video_swapping, method_calls_video_swapping); PatchInvidualMethodHooks(method_hooks_vpad, method_hooks_size_vpad, method_calls_vpad); diff --git a/src/retain_vars.h b/src/retain_vars.h index 60ff878..8b99052 100644 --- a/src/retain_vars.h +++ b/src/retain_vars.h @@ -1,6 +1,10 @@ #ifndef _RETAIN_VARS_H_ #define _RETAIN_VARS_H_ +//for pre-compiling the app +#define LITE 0 // 0 = default, 1 = lite version (no tcpgecko and cafiine) + + #include "common/types.h" #include "utils/voice_info.hpp" #include "patcher/cafiine_function_patcher.h"