| 12 | #include "godot_mono_decomp.h" |
| 13 | |
| 14 | Ref<GodotMonoDecompWrapper> GodotMonoDecompWrapper::create(const String &assembly_path, const Vector<String> &originalProjectFiles, const Vector<String> &assemblyReferenceDirs, const GodotMonoDecompSettings &settings) { |
| 15 | Ref<GodotMonoDecompWrapper> wrapper = memnew(GodotMonoDecompWrapper); |
| 16 | Error err = wrapper->_load(assembly_path, originalProjectFiles, assemblyReferenceDirs, settings); |
| 17 | ERR_FAIL_COND_V_MSG(err != OK, Ref<GodotMonoDecompWrapper>(), "Failed to load assembly " + assembly_path + " (Not a valid .NET assembly?)"); |
| 18 | return wrapper; |
| 19 | } |
| 20 | |
| 21 | Error GodotMonoDecompWrapper::_load(const String &p_assembly_path, const Vector<String> &p_original_project_files, const Vector<String> &p_assembly_reference_dirs, const GodotMonoDecompSettings &p_settings) { |
| 22 | CharString assembly_path_chrstr = p_assembly_path.utf8(); |