mirror of
https://github.com/wiiu-env/AromaBasePlugin.git
synced 2025-02-09 08:13:25 +01:00
Clean up header
This commit is contained in:
parent
0635aa260f
commit
ed8e2d143a
@ -1,13 +1,21 @@
|
||||
#include "Hints.h"
|
||||
|
||||
#include "utils/config.h"
|
||||
#include <coreinit/cache.h>
|
||||
#include <coreinit/thread.h>
|
||||
#include "utils/logger.h"
|
||||
|
||||
#include <notifications/notification_defines.h>
|
||||
#include <notifications/notifications.h>
|
||||
#include <sdutils/sdutils.h>
|
||||
|
||||
#include <wups/storage.h>
|
||||
|
||||
#include <coreinit/cache.h>
|
||||
#include <coreinit/thread.h>
|
||||
|
||||
#include <thread>
|
||||
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <thread>
|
||||
|
||||
std::unique_ptr<std::thread> sShowHintThread;
|
||||
static bool sShutdownHintThread = false;
|
||||
|
@ -3,20 +3,25 @@
|
||||
#include "utils/LatestVersion.h"
|
||||
#include "utils/config.h"
|
||||
#include "utils/input.h"
|
||||
#include "utils/logger.h"
|
||||
|
||||
#include <notifications/notifications.h>
|
||||
#include <rpxloader/rpxloader.h>
|
||||
|
||||
#include <wups/function_patching.h>
|
||||
#include <wups/storage.h>
|
||||
|
||||
#include <coreinit/cache.h>
|
||||
#include <coreinit/thread.h>
|
||||
#include <coreinit/time.h>
|
||||
#include <memory>
|
||||
#include <notifications/notifications.h>
|
||||
#include <padscore/wpad.h>
|
||||
#include <rpxloader/rpxloader.h>
|
||||
#include <string>
|
||||
#include <sys/stat.h>
|
||||
#include <thread>
|
||||
#include <utils/logger.h>
|
||||
#include <vpad/input.h>
|
||||
#include <wups/function_patching.h>
|
||||
#include <wups/storage.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
static std::string sAromaUpdaterPath = AROMA_UPDATER_NEW_PATH_FULL;
|
||||
static NotificationModuleHandle sAromaUpdateHandle = 0;
|
||||
@ -110,7 +115,7 @@ void UpdateCheckThreadEntry() {
|
||||
}
|
||||
|
||||
void ShowUpdateNotification() {
|
||||
struct stat st{};
|
||||
struct stat st {};
|
||||
// Check if the Aroma Updater is on the sd card
|
||||
if (stat(AROMA_UPDATER_OLD_PATH_FULL, &st) >= 0 && S_ISREG(st.st_mode)) {
|
||||
sAromaUpdaterPath = AROMA_UPDATER_OLD_PATH;
|
||||
|
12
src/main.cpp
12
src/main.cpp
@ -5,16 +5,20 @@
|
||||
#include "utils/LatestVersion.h"
|
||||
#include "utils/config.h"
|
||||
#include "utils/utils.h"
|
||||
#include <coreinit/title.h>
|
||||
#include <malloc.h>
|
||||
#include <utils/logger.h>
|
||||
|
||||
#include <mocha/mocha.h>
|
||||
#include <nn/spm.h>
|
||||
#include <notifications/notifications.h>
|
||||
#include <rpxloader/rpxloader.h>
|
||||
#include <sdutils/sdutils.h>
|
||||
#include <utils/logger.h>
|
||||
|
||||
#include <wups.h>
|
||||
|
||||
#include <coreinit/title.h>
|
||||
#include <nn/spm.h>
|
||||
|
||||
#include <malloc.h>
|
||||
|
||||
WUPS_PLUGIN_NAME("Aroma Base Plugin");
|
||||
WUPS_PLUGIN_DESCRIPTION("Implements small patches and checks for Aroma updates.");
|
||||
WUPS_PLUGIN_VERSION(PLUGIN_VERSION_FULL);
|
||||
|
@ -1,8 +1,10 @@
|
||||
#include "DownloadUtils.h"
|
||||
#include "logger.h"
|
||||
#include <coreinit/cache.h>
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include <coreinit/cache.h>
|
||||
|
||||
#define IO_BUFSIZE (128 * 1024) // 128 KB
|
||||
|
||||
bool DownloadUtils::libInitDone = false;
|
||||
|
@ -1,6 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
class DownloadUtils {
|
||||
public:
|
||||
static bool Init();
|
||||
|
@ -1,5 +1,11 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
#include <wups/config/WUPSConfigCategory.h>
|
||||
#include <wups/config/WUPSConfigItemBoolean.h>
|
||||
#include <wups/storage.h>
|
||||
|
||||
bool gActivateUStealth = ACTIVATE_USTEALTH_DEFAULT;
|
||||
bool gSkip4SecondOffStatusCheck = SKIP_4_SECOND_OFF_STATUS_CHECK_DEFAULT;
|
||||
bool gConfigMenuHintShown = CONFIG_MENU_HINT_SHOWN_DEFAULT;
|
||||
|
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include "logger.h"
|
||||
|
||||
#include <string>
|
||||
#include <wups/config/WUPSConfigItemBoolean.h>
|
||||
#include <wups/storage.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#define CAT_CONFIG "config"
|
||||
#define CAT_OTHER "other"
|
||||
|
@ -1,5 +1,8 @@
|
||||
#include "input.h"
|
||||
|
||||
#include <padscore/wpad.h>
|
||||
#include <vpad/input.h>
|
||||
|
||||
uint32_t remapWiiMoteButtons(uint32_t buttons) {
|
||||
uint32_t conv_buttons = 0;
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <padscore/kpad.h>
|
||||
#include <vpad/input.h>
|
||||
|
||||
uint32_t remapWiiMoteButtons(uint32_t buttons);
|
||||
uint32_t remapClassicButtons(uint32_t buttons);
|
||||
|
@ -2,9 +2,13 @@
|
||||
#include "FSUtils.h"
|
||||
#include "common.h"
|
||||
#include "logger.h"
|
||||
#include <coreinit/mcp.h>
|
||||
|
||||
#include <mocha/mocha.h>
|
||||
|
||||
#include <coreinit/mcp.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
bool Utils::GetSerialId(std::string &serialID) {
|
||||
|
@ -1,9 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
namespace Utils {
|
||||
bool GetSerialId(std::string &serialID);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user