mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-23 11:31:49 +01:00
Minor code cleanup
This commit is contained in:
parent
48eb915a70
commit
a7494c59cb
@ -31,7 +31,6 @@ int32_t WUPSConfig_GetName(WUPSConfigHandle handle, char *out_buf, int32_t out_l
|
||||
}
|
||||
auto *config = reinterpret_cast<WUPSConfig *>(handle);
|
||||
snprintf(out_buf, out_len, "%s", config->getName().c_str());
|
||||
DEBUG_FUNCTION_LINE("%s", out_buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
}
|
||||
|
||||
bool operator<(const FunctionSymbolData &rhs) const {
|
||||
return (uint32_t) address < (uint32_t) rhs.address; //assume that you compare the record based on a
|
||||
return (uint32_t) address < (uint32_t) rhs.address;
|
||||
}
|
||||
|
||||
virtual ~FunctionSymbolData() = default;
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include "../utils/logger.h"
|
||||
#include <malloc.h>
|
||||
#include <utility>
|
||||
|
||||
PluginData::PluginData(const PluginData &obj) {
|
||||
this->buffer = obj.buffer;
|
||||
|
@ -18,10 +18,7 @@
|
||||
#include "PluginMetaInformationFactory.h"
|
||||
#include "../fs/FSUtils.h"
|
||||
#include "../utils/StringTools.h"
|
||||
#include <dirent.h>
|
||||
#include <memory>
|
||||
#include <sys/types.h>
|
||||
#include <whb/file.h>
|
||||
|
||||
using namespace ELFIO;
|
||||
|
||||
|
@ -72,7 +72,6 @@ int StorageUtils::OpenStorage(const char *plugin_id, wups_storage_item_t *items)
|
||||
return WUPS_STORAGE_ERROR_INVALID_JSON;
|
||||
}
|
||||
} else { // empty or no config exists yet
|
||||
DEBUG_FUNCTION_LINE("open failed");
|
||||
return WUPS_STORAGE_ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user