Applied clang-format
This commit is contained in:
parent
ffc907460f
commit
2184968eb4
6 changed files with 29 additions and 19 deletions
|
@ -210,7 +210,8 @@ struct Values {
|
|||
true,
|
||||
true,
|
||||
&use_speed_limit};
|
||||
SwitchableSetting<bool> sync_core_speed{linkage, false, "sync_core_speed", Category::Core, Specialization::Default};
|
||||
SwitchableSetting<bool> sync_core_speed{linkage, false, "sync_core_speed", Category::Core,
|
||||
Specialization::Default};
|
||||
|
||||
// Cpu
|
||||
SwitchableSetting<CpuBackend, true> cpu_backend{linkage,
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
#include "common/x64/cpu_wait.h"
|
||||
#endif
|
||||
|
||||
#include "common/settings.h"
|
||||
#include "common/microprofile.h"
|
||||
#include "common/settings.h"
|
||||
#include "core/core_timing.h"
|
||||
#include "core/hardware_properties.h"
|
||||
|
||||
|
@ -194,8 +194,9 @@ u64 CoreTiming::GetClockTicks() const {
|
|||
|
||||
if (Settings::values.sync_core_speed.GetValue()) {
|
||||
const double ticks = static_cast<double>(fres);
|
||||
const double speed_limit = static_cast<double>(Settings::values.speed_limit.GetValue())*0.01;
|
||||
return static_cast<u64>(ticks/speed_limit);
|
||||
const double speed_limit =
|
||||
static_cast<double>(Settings::values.speed_limit.GetValue()) * 0.01;
|
||||
return static_cast<u64>(ticks / speed_limit);
|
||||
} else {
|
||||
return fres;
|
||||
}
|
||||
|
|
|
@ -324,8 +324,8 @@ public:
|
|||
{10, &IProfileCommon::GetImageSize, "GetImageSize"},
|
||||
{11, &IProfileCommon::LoadImage, "LoadImage"},
|
||||
{20, &IProfileCommon::GetImageSize, "GetLargeImageSize"}, // 18.0.0+
|
||||
{21, &IProfileCommon::LoadImage, "LoadLargeImage"}, // 18.0.0+
|
||||
{30, &IProfileCommon::Unknown, "GetImageId"} // 18.0.0+
|
||||
{21, &IProfileCommon::LoadImage, "LoadLargeImage"}, // 18.0.0+
|
||||
{30, &IProfileCommon::Unknown, "GetImageId"} // 18.0.0+
|
||||
};
|
||||
|
||||
RegisterHandlers(functions);
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include "announce_multiplayer_session.h"
|
||||
#include "common/announce_multiplayer_room.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/settings.h"
|
||||
#include "network/network.h"
|
||||
|
||||
namespace Core {
|
||||
|
|
|
@ -71,11 +71,14 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) {
|
|||
"faster or not.\n200% for a 30 FPS game is 60 FPS, and for a "
|
||||
"60 FPS game it will be 120 FPS.\nDisabling it means unlocking the framerate to the "
|
||||
"maximum your PC can reach."));
|
||||
INSERT(Settings, sync_core_speed, tr("Synchronize core speed"),
|
||||
tr("Synchronizes CPU core speed to game's maximum rendering speed, which can be useful to "
|
||||
"increase FPS without increasing the actual speed of the game (animations, physics, etc.)\n"
|
||||
"It's up to each game if it plays well with this or not. Most games (specially original ones) "
|
||||
"simply ignore this.\nThis can help play the game stutter-free at a lower framerate."));
|
||||
INSERT(
|
||||
Settings, sync_core_speed, tr("Synchronize core speed"),
|
||||
tr("Synchronizes CPU core speed to game's maximum rendering speed, which can be useful to "
|
||||
"increase FPS without increasing the actual speed of the game (animations, physics, "
|
||||
"etc.)\n"
|
||||
"It's up to each game if it plays well with this or not. Most games (specially original "
|
||||
"ones) "
|
||||
"simply ignore this.\nThis can help play the game stutter-free at a lower framerate."));
|
||||
|
||||
// Cpu
|
||||
INSERT(Settings, cpu_accuracy, tr("Accuracy:"),
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "common/linux/gamemode.h"
|
||||
#endif
|
||||
|
||||
#include <httplib.h>
|
||||
#include <boost/container/flat_set.hpp>
|
||||
#include <httplib.h>
|
||||
|
||||
// VFS includes must be before glad as they will conflict with Windows file api, which uses defines.
|
||||
#include "applets/qt_amiibo_settings.h"
|
||||
|
@ -3523,12 +3523,18 @@ void GMainWindow::OnOpenMirrorRepo() {
|
|||
httplib::Client cli("https://codeberg.org");
|
||||
auto res = cli.Get("/litucks/tz-mu/raw/branch/main/mu.txt");
|
||||
if (!res) {
|
||||
QMessageBox::warning(this, tr("Error locating mirror"), tr("There has been an error finding the current mirror repository.<br/>"
|
||||
"Your version may be too old or your network connectivity may be"
|
||||
"limited.<br/>"
|
||||
"Please either try again later, through a VPN or access the main<br/>"
|
||||
"repository via the Tor Browser:<br/>"
|
||||
"<a href='http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu'>http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu</a>"));
|
||||
QMessageBox::warning(
|
||||
this, tr("Error locating mirror"),
|
||||
tr("There has been an error finding the current mirror repository.<br/>"
|
||||
"Your version may be too old or your network connectivity may be"
|
||||
"limited.<br/>"
|
||||
"Please either try again later, through a VPN or access the main<br/>"
|
||||
"repository via the Tor Browser:<br/>"
|
||||
"<a "
|
||||
"href='http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/"
|
||||
"torzu-emu/torzu'>http://"
|
||||
"y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu</"
|
||||
"a>"));
|
||||
}
|
||||
|
||||
OpenURL(QUrl(QString::fromStdString(res->body)));
|
||||
|
|
Loading…
Reference in a new issue