|
@@ -31,11 +31,8 @@
|
|
|
#include "file_access_encrypted.h"
|
|
|
|
|
|
#include "core/crypto/crypto_core.h"
|
|
|
-#include "core/string/print_string.h"
|
|
|
#include "core/variant/variant.h"
|
|
|
|
|
|
-#include <stdio.h>
|
|
|
-
|
|
|
Error FileAccessEncrypted::open_and_parse(Ref<FileAccess> p_base, const Vector<uint8_t> &p_key, Mode p_mode, bool p_with_magic, const Vector<uint8_t> &p_iv) {
|
|
|
ERR_FAIL_COND_V_MSG(file.is_valid(), ERR_ALREADY_IN_USE, vformat("Can't open file while another file from path '%s' is open.", file->get_path_absolute()));
|
|
|
ERR_FAIL_COND_V(p_key.size() != 32, ERR_INVALID_PARAMETER);
|