mirror of
https://github.com/wiiu-env/wiiload_plugin.git
synced 2024-11-22 02:29:15 +01:00
Fix loading a .WUHB while running a .WUHB
This commit is contained in:
parent
38d4578c36
commit
0c50a35dec
@ -86,7 +86,7 @@ bool FSUtils::saveBufferToFile(const char *path, void *buffer, uint32_t size) {
|
||||
int fd = open(path, O_CREAT | O_TRUNC | O_WRONLY);
|
||||
if (fd < 0) {
|
||||
DEBUG_FUNCTION_LINE_ERR("Failed to open %s. %d", path, fd);
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
auto sizeToWrite = size;
|
||||
auto *ptr = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user