Can't use conditional here as _profileWindow doesn't exist it non-profiling build

This commit is contained in:
Andy Adshead 2019-02-15 12:48:47 +00:00
parent f0626920f2
commit f077ca7948
2 changed files with 3 additions and 2 deletions

View file

@ -47,7 +47,6 @@ namespace Ryujinx.Profiler.UI
_window = null;
}
[Conditional("USE_PROFILING")]
public void UpdateKeyInput(KeyboardState keyboard)
{
if (Profile.Controls.TogglePressed(keyboard))

View file

@ -152,9 +152,11 @@ namespace Ryujinx
if (_keyboard.HasValue)
{
KeyboardState keyboard = _keyboard.Value;
#if USE_PROFILING
// Profiler input, lets the profiler get access to the main windows keyboard state
_profileWindow.UpdateKeyInput(keyboard);
#endif
// Normal Input
currentButton = Configuration.Instance.KeyboardControls.GetButtons(keyboard);