Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #38 from MarkusRannare/feature_fix_warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
MarkusRannare authored Oct 16, 2020
2 parents fccee4c + 62be06f commit 6c8f7a7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
16 changes: 9 additions & 7 deletions Source/modio/modio.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public modio(ReadOnlyTargetRules Target) : base(Target)

PrivateDependencyModuleNames.AddRange(new string[] { });

#if UE_4_24_OR_LATER
DefaultBuildSettings = BuildSettingsVersion.V2;
#endif

LoadModio(Target);

// @todo: Can we disable exceptions again?
Expand Down Expand Up @@ -102,9 +106,9 @@ public bool LoadModio(ReadOnlyTargetRules Target)
isLibrarySupported = true;

string LibrariesPath = Path.Combine(ThirdPartyPath, modio_directory, "lib", "msvc", "x64");
string DLLPath = Path.Combine(ThirdPartyPath, modio_directory, "bin", "win64");

PublicAdditionalLibraries.Add(LibrariesPath + "/modio.lib");
string DLLPath = Path.Combine(ThirdPartyPath, modio_directory, "bin", "msvc", "x64");
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "modio.lib"));
RuntimeDependencies.Add(Path.Combine(DLLPath, "modio.dll"));

string ProjectBinariesDirectory = Path.Combine(ProjectPath, "Binaries", "Win64");
Expand Down Expand Up @@ -153,10 +157,8 @@ public bool LoadModio(ReadOnlyTargetRules Target)

if (isLibrarySupported)
{
string ModioIncludePath = Path.Combine(ThirdPartyPath, modio_directory, "include");
string AdditionalDependenciesPath = Path.Combine(ThirdPartyPath, modio_directory, "additional_dependencies");
PublicIncludePaths.Add(ModioIncludePath);
PublicIncludePaths.Add(AdditionalDependenciesPath);
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, modio_directory, "include"));
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, modio_directory, "additional_dependencies"));
}

return isLibrarySupported;
Expand Down
2 changes: 2 additions & 0 deletions Source/modioEditor/Private/modioEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ void FmodioEditorModule::StartupModule()

FLevelEditorModule& LevelEditorModule = FModuleManager::LoadModuleChecked<FLevelEditorModule>("LevelEditor");

// Remove the dropdown for now, as it's not used and just comfuses people
if(0)
{
TSharedPtr<FExtender> ToolbarExtender = MakeShareable(new FExtender);
ToolbarExtender->AddToolBarExtension("Content", EExtensionHook::After, PluginCommands, FToolBarExtensionDelegate::CreateRaw(this, &FmodioEditorModule::AddToolbarExtension));
Expand Down
4 changes: 2 additions & 2 deletions Source/modioEditor/Private/modioEditorCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

void FmodioEditorCommands::RegisterCommands()
{
UI_COMMAND(Login, "Login", "Login to modio (not implemented)", EUserInterfaceActionType::Button, FInputGesture());
/*UI_COMMAND(Login, "Login", "Login to modio (not implemented)", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(Logout, "Logout", "Logout from modio (not implemented)", EUserInterfaceActionType::Button, FInputGesture() );
UI_COMMAND(UploadMod, "Upload Mod", "Upload mod to modio (not implemented)", EUserInterfaceActionType::Button, FInputGesture() );
UI_COMMAND(NewModWizard, "New mod wizard", "r u a wizzard? (not implemented)", EUserInterfaceActionType::Button, FInputGesture() );
UI_COMMAND(Settings, "Settings", "Configure modio environment (not implemented)", EUserInterfaceActionType::Button, FInputGesture() );
UI_COMMAND(Settings, "Settings", "Configure modio environment (not implemented)", EUserInterfaceActionType::Button, FInputGesture() );*/
}

#undef LOCTEXT_NAMESPACE
6 changes: 5 additions & 1 deletion Source/modioEditor/modioEditor.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ public class modioEditor : ModuleRules
public modioEditor(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;


#if UE_4_24_OR_LATER
DefaultBuildSettings = BuildSettingsVersion.V2;
#endif

PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
Expand Down
1 change: 1 addition & 0 deletions build/MakeRelease/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace MakeRelease
/** Handles the arguments passed into main */
public class Options
{
// @todo: Add a new option switch that logs the output to a file too, so that we can look at the logs afterwards
[Option('v', "version", Required = true, HelpText = "The version of the UE4 plugin we want to submit")]
public string UE4PluginVersion { get; set; }
}
Expand Down

0 comments on commit 6c8f7a7

Please sign in to comment.