mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-23 19:34:01 -05:00
Improve error message when parsing a plugin failed
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "utils/logger.h"
|
||||
#include "utils/utils.h"
|
||||
|
||||
PluginData::PluginData(const std::vector<uint8_t> &input) : length(input.size()) {
|
||||
PluginData::PluginData(const std::vector<uint8_t> &input, std::string source) : length(input.size()), mSource(std::move(source)) {
|
||||
auto data_copy = make_unique_nothrow<uint8_t[]>(length);
|
||||
if (!data_copy) {
|
||||
DEBUG_FUNCTION_LINE_ERR("Failed to allocate space on default heap");
|
||||
|
||||
Reference in New Issue
Block a user