MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / open_custom

Method open_custom

utility/file_access_patched_gdre.cpp:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99Error FileAccessPatchedGDRE::open_custom(const Ref<FileAccess> &p_old_file) {
100 close();
101
102 if (!p_old_file->is_open()) {
103 last_error = ERR_FILE_CANT_OPEN;
104 return last_error;
105 }
106
107 old_file = p_old_file;
108
109 return OK;
110}
111
112bool FileAccessPatchedGDRE::is_open() const {
113 return old_file.is_valid() && old_file->is_open();

Callers 1

_apply_patchMethod · 0.45

Calls 1

is_openMethod · 0.45

Tested by

no test coverage detected