mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-09-10 11:36:54 +00:00
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,
|
||||||
true,
|
true,
|
||||||
&use_speed_limit};
|
&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
|
// Cpu
|
||||||
SwitchableSetting<CpuBackend, true> cpu_backend{linkage,
|
SwitchableSetting<CpuBackend, true> cpu_backend{linkage,
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include "common/x64/cpu_wait.h"
|
#include "common/x64/cpu_wait.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common/settings.h"
|
|
||||||
#include "common/microprofile.h"
|
#include "common/microprofile.h"
|
||||||
|
#include "common/settings.h"
|
||||||
#include "core/core_timing.h"
|
#include "core/core_timing.h"
|
||||||
#include "core/hardware_properties.h"
|
#include "core/hardware_properties.h"
|
||||||
|
|
||||||
|
@ -194,8 +194,9 @@ u64 CoreTiming::GetClockTicks() const {
|
||||||
|
|
||||||
if (Settings::values.sync_core_speed.GetValue()) {
|
if (Settings::values.sync_core_speed.GetValue()) {
|
||||||
const double ticks = static_cast<double>(fres);
|
const double ticks = static_cast<double>(fres);
|
||||||
const double speed_limit = static_cast<double>(Settings::values.speed_limit.GetValue())*0.01;
|
const double speed_limit =
|
||||||
return static_cast<u64>(ticks/speed_limit);
|
static_cast<double>(Settings::values.speed_limit.GetValue()) * 0.01;
|
||||||
|
return static_cast<u64>(ticks / speed_limit);
|
||||||
} else {
|
} else {
|
||||||
return fres;
|
return fres;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "announce_multiplayer_session.h"
|
#include "announce_multiplayer_session.h"
|
||||||
#include "common/announce_multiplayer_room.h"
|
#include "common/announce_multiplayer_room.h"
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "common/settings.h"
|
|
||||||
#include "network/network.h"
|
#include "network/network.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
|
@ -71,10 +71,13 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) {
|
||||||
"faster or not.\n200% for a 30 FPS game is 60 FPS, and for a "
|
"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 "
|
"60 FPS game it will be 120 FPS.\nDisabling it means unlocking the framerate to the "
|
||||||
"maximum your PC can reach."));
|
"maximum your PC can reach."));
|
||||||
INSERT(Settings, sync_core_speed, tr("Synchronize core speed"),
|
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 "
|
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"
|
"increase FPS without increasing the actual speed of the game (animations, physics, "
|
||||||
"It's up to each game if it plays well with this or not. Most games (specially original ones) "
|
"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."));
|
"simply ignore this.\nThis can help play the game stutter-free at a lower framerate."));
|
||||||
|
|
||||||
// Cpu
|
// Cpu
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
#include "common/linux/gamemode.h"
|
#include "common/linux/gamemode.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <httplib.h>
|
|
||||||
#include <boost/container/flat_set.hpp>
|
#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.
|
// VFS includes must be before glad as they will conflict with Windows file api, which uses defines.
|
||||||
#include "applets/qt_amiibo_settings.h"
|
#include "applets/qt_amiibo_settings.h"
|
||||||
|
@ -3523,12 +3523,18 @@ void GMainWindow::OnOpenMirrorRepo() {
|
||||||
httplib::Client cli("https://codeberg.org");
|
httplib::Client cli("https://codeberg.org");
|
||||||
auto res = cli.Get("/litucks/tz-mu/raw/branch/main/mu.txt");
|
auto res = cli.Get("/litucks/tz-mu/raw/branch/main/mu.txt");
|
||||||
if (!res) {
|
if (!res) {
|
||||||
QMessageBox::warning(this, tr("Error locating mirror"), tr("There has been an error finding the current mirror repository.<br/>"
|
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"
|
"Your version may be too old or your network connectivity may be"
|
||||||
"limited.<br/>"
|
"limited.<br/>"
|
||||||
"Please either try again later, through a VPN or access the main<br/>"
|
"Please either try again later, through a VPN or access the main<br/>"
|
||||||
"repository via the Tor Browser:<br/>"
|
"repository via the Tor Browser:<br/>"
|
||||||
"<a href='http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu'>http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu</a>"));
|
"<a "
|
||||||
|
"href='http://y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/"
|
||||||
|
"torzu-emu/torzu'>http://"
|
||||||
|
"y2nlvhmmk5jnsvechppxnbyzmmv3vbl7dvzn6ltwcdbpgxixp3clkgqd.onion/torzu-emu/torzu</"
|
||||||
|
"a>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
OpenURL(QUrl(QString::fromStdString(res->body)));
|
OpenURL(QUrl(QString::fromStdString(res->body)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue