mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-16 03:14:35 +00:00
Controller: Don't indirectly include settings.h
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "input_types.h"
|
||||
#include "settings.h"
|
||||
#include "types.h"
|
||||
|
||||
#include <array>
|
||||
@@ -19,6 +18,8 @@
|
||||
class SettingsInterface;
|
||||
class StateWrapper;
|
||||
|
||||
struct SettingInfo;
|
||||
|
||||
class Controller
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "sio.h"
|
||||
#include "bus.h"
|
||||
#include "controller.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "util/state_wrapper.h"
|
||||
|
||||
|
||||
@@ -427,17 +427,9 @@ void AutoUpdaterWindow::getLatestReleaseComplete(s32 status_code, const Error& e
|
||||
static_cast<s64>(
|
||||
QDateTime::fromString(doc_object["published_at"].toString(), Qt::DateFormat::ISODate).toSecsSinceEpoch()));
|
||||
|
||||
// strip sha off the version
|
||||
std::string_view current_version = g_scm_tag_str;
|
||||
if (std::string_view::size_type pos = current_version.find('-'); pos != std::string_view::npos)
|
||||
{
|
||||
if (std::string_view::size_type pos2 = current_version.find('-', pos + 1); pos2 != std::string_view::npos)
|
||||
current_version = current_version.substr(0, pos2);
|
||||
}
|
||||
|
||||
m_ui.currentVersion->setText(
|
||||
tr("Current Version: %1 (%2)")
|
||||
.arg(QtUtils::StringViewToQString(TinyString::from_format("{}/{}", current_version, THIS_RELEASE_TAG)))
|
||||
.arg(QtUtils::StringViewToQString(TinyString::from_format("{}/{}", g_scm_version_str, THIS_RELEASE_TAG)))
|
||||
.arg(current_date));
|
||||
m_ui.newVersion->setText(
|
||||
tr("New Version: %1 (%2)").arg(QString::fromStdString(getCurrentUpdateTag())).arg(release_date));
|
||||
|
||||
Reference in New Issue
Block a user