mirror of
https://github.com/wiiu-env/PayloadLoaderInstaller.git
synced 2024-11-13 05:35:06 +01:00
saveBufferToFile: make buffer constant
This commit is contained in:
parent
a7ab305e39
commit
7b0e71a4ae
@ -162,7 +162,7 @@ bool FSUtils::copyFile(const std::string &in, const std::string &out) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int32_t FSUtils::saveBufferToFile(const char *path, void *buffer, uint32_t size) {
|
||||
int32_t FSUtils::saveBufferToFile(const char *path, const void *buffer, uint32_t size) {
|
||||
CFile file(path, CFile::WriteOnly);
|
||||
if (!file.isOpen()) {
|
||||
return -1;
|
||||
|
@ -13,5 +13,5 @@ public:
|
||||
|
||||
static bool copyFile(const std::string &in, const std::string &out);
|
||||
|
||||
static int32_t saveBufferToFile(const char *path, void *buffer, uint32_t size);
|
||||
};
|
||||
static int32_t saveBufferToFile(const char *path, const void *buffer, uint32_t size);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user