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

Method get_project_dotnet_assembly_name

utility/gdre_settings.cpp:2823–2835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2821constexpr const char *DOTNET_ASSEMBLY_NAME_SETTING_3x = "mono/project/assembly_name";
2822
2823String GDRESettings::get_project_dotnet_assembly_name() const {
2824 if (!is_pack_loaded()) {
2825 return "";
2826 }
2827 if (!is_project_config_loaded()) {
2828 // fallback in case this is a add-on pck
2829 return current_project->assembly_path.get_file().get_basename();
2830 }
2831 if (get_ver_major() <= 3) {
2832 return get_project_setting(DOTNET_ASSEMBLY_NAME_SETTING_3x, get_game_name());
2833 }
2834 return get_project_setting(DOTNET_ASSEMBLY_NAME_SETTING_4x, get_game_name());
2835}
2836
2837bool GDRESettings::has_loaded_dotnet_assembly() const {
2838 return is_pack_loaded() && !current_project->decompiler.is_null();

Callers 1

export_importsMethod · 0.80

Calls 2

get_ver_majorFunction · 0.85
get_fileMethod · 0.45

Tested by

no test coverage detected