Format code and add missing imports

This commit is contained in:
Maschell 2022-04-27 19:27:07 +02:00
parent 9e5e7ddc23
commit 11e89b04ce
7 changed files with 11 additions and 14 deletions

View File

@ -1,10 +1,10 @@
#pragma once #pragma once
#include "utils/logger.h" #include "utils/logger.h"
#include "utils/utils.h"
#include <coreinit/mcp.h> #include <coreinit/mcp.h>
#include <mutex> #include <mutex>
#include <string> #include <string>
#include <wuhb_utils/utils.h> #include <wuhb_utils/utils.h>
#include "utils/utils.h"
class FileInfos { class FileInfos {
public: public:

View File

@ -47,7 +47,6 @@ ACPMetaXml gLaunchXML __attribute__((section(".data")));
MCPTitleListType current_launched_title_info __attribute__((section(".data"))); MCPTitleListType current_launched_title_info __attribute__((section(".data")));
BOOL gHomebrewLaunched __attribute__((section(".data"))); BOOL gHomebrewLaunched __attribute__((section(".data")));
std::mutex fileInfosMutex; std::mutex fileInfosMutex;
std::forward_list<std::shared_ptr<FileInfos>> fileInfos; std::forward_list<std::shared_ptr<FileInfos>> fileInfos;
@ -238,9 +237,6 @@ void readCustomTitlesFromSD() {
} }
auto repl = "fs:/vol/external01/"; auto repl = "fs:/vol/external01/";
auto input = dirList.GetFilepath(i); auto input = dirList.GetFilepath(i);
const char *relativeFilepath; const char *relativeFilepath;

View File

@ -3,6 +3,8 @@
#include <cstdint> #include <cstdint>
#include <forward_list> #include <forward_list>
#include <malloc.h> #include <malloc.h>
#include <memory>
#include <mutex>
uint32_t hash_string(const char *); uint32_t hash_string(const char *);
@ -29,4 +31,3 @@ bool remove_locked_first_if(std::mutex &mutex, std::forward_list<T, Allocator> &
} }
return false; return false;
} }