mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
0abfa94bc8
The player getting a better view of their surroundings than the game would normally allow could possibly give the player an advantage over the original hardware, so Freelook is disabled in hardcore mode. To do this, I disable the config flag for Freelook when it is accessed, to make sure that it is disabled whether it was enabled before or after hardcore mode was enabled.
33 lines
661 B
C++
33 lines
661 B
C++
// Copyright 2020 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
class HardcoreWarningWidget;
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|
|
class QDialogButtonBox;
|
|
|
|
class FreeLookWindow final : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FreeLookWindow(QWidget* parent);
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
signals:
|
|
void OpenAchievementSettings();
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|
|
|
|
private:
|
|
void CreateMainLayout();
|
|
void ConnectWidgets();
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
HardcoreWarningWidget* m_hc_warning;
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|
|
QDialogButtonBox* m_button_box;
|
|
};
|