diff --git a/Source/NDisplayLaunchButton/Private/NDisplayLaunchButton.cpp b/Source/NDisplayLaunchButton/Private/NDisplayLaunchButton.cpp index 256a7f7cea10ef46568a20b58c4a72824e073b3d..b857983ba1d86c3041ee606df8fe96321cc14c96 100644 --- a/Source/NDisplayLaunchButton/Private/NDisplayLaunchButton.cpp +++ b/Source/NDisplayLaunchButton/Private/NDisplayLaunchButton.cpp @@ -80,7 +80,11 @@ bool FNDisplayLaunchButtonModule::ChangePluginStateAndStoreConfig(const FString */ FString FNDisplayLaunchButtonModule::GetEditorExecutableName() { +#ifdef PLATFORM_WINDOWS return "UE4Editor.exe"; +#elif PLATFORM_LINUX + return "UE4Editor"; +#endif } /** @@ -116,7 +120,7 @@ void FNDisplayLaunchButtonModule::PluginButtonClicked() /* Disable Plugins temporarily */ if(!ChangePluginStateAndStoreConfig("SteamVR", false, SteamVRState)) return; - if(!ChangePluginStateAndStoreConfig("OculusHMD", false, OculusVRState)) return; + if(!ChangePluginStateAndStoreConfig("OculusVR", false, OculusVRState)) return; /* Trigger Editor save. Needed, else old version will be launched every time */ if (!UEditorLoadingAndSavingUtils::SaveDirtyPackagesWithDialog(true, true)) return;