| 2821 | constexpr const char *DOTNET_ASSEMBLY_NAME_SETTING_3x = "mono/project/assembly_name"; |
| 2822 | |
| 2823 | String 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 | |
| 2837 | bool GDRESettings::has_loaded_dotnet_assembly() const { |
| 2838 | return is_pack_loaded() && !current_project->decompiler.is_null(); |
no test coverage detected