diff --git a/cmake/GetStandard.cmake b/cmake/GetStandard.cmake
deleted file mode 100644
index c308385f8d..0000000000
--- a/cmake/GetStandard.cmake
+++ /dev/null
@@ -1,64 +0,0 @@
-option(COMPILE_MODERN_CPP "Compile ${PROJECT_NAME} as a C++17 or C++14 program" ON)
-option(COMPILE_CPP17 "Force compilation of ${PROJECT_NAME} as C++17" OFF)
-option(COMPILE_CPP14 "Force compilation of ${PROJECT_NAME} as C++14" OFF)
-mark_as_advanced(FORCE COMPILE_CPP17)
-mark_as_advanced(FORCE COMPILE_CPP14)
-
-# Assign the proper standard and compilation to the project based on the flags available.
-# This tests for C++17 and C++14 compatibility, while applying C++11 as a fallback.
-# Based on https://stackoverflow.com/a/44964919
-function(get_standard_for_build)
- unset(STANDARD_FLAG PARENT_SCOPE)
-
- if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
- set(COMPILER_TEST "-std=c++1z;-std=c++1y;-std=c++0x")
- elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- # VS 2015.3+ does not have a C++11 option
- set(COMPILER_TEST "/std:c++17;/std:c++14;INVALID")
- elseif(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
- if(MSVC) ##for msvc-clang
- set(COMPILER_TEST "/std:c++17;/std:c++14;/std:c++11")
- else()
- set(COMPILER_TEST "-std=c++17;-std=c++14;-std=c++11")
- endif()
- else()
- set(COMPILER_TEST "-std:c++17;-std:c++14;-std:c++11")
- endif()
-
- if(COMPILE_MODERN_CPP)
- if(NOT COMPILE_CPP17 AND NOT COMPILE_CPP14)
- include(CheckCXXCompilerFlag)
- list(GET COMPILER_TEST 0 STANDARD_FLAG)
- check_cxx_compiler_flag(${STANDARD_FLAG} HAS_CPP17_FLAG)
-
- include(CheckIncludeFileCXX)
- check_include_file_cxx("filesystem" HAS_CPP17_INCLUDE)
- if(HAS_CPP17_FLAG AND HAS_CPP17_INCLUDE)
- set(COMPILE_CPP17 ON)
- else()
- list(GET COMPILER_TEST 1 STANDARD_FLAG)
- check_cxx_compiler_flag(${STANDARD_FLAG} HAS_CPP14_FLAG)
- check_include_file_cxx("experimental/filesystem" HAS_EXPERIMENTAL)
- if(HAS_CPP14_FLAG AND HAS_EXPERIMENTAL)
- set(COMPILE_CPP14 ON)
- else()
- message(FATAL_ERROR "Your compiler does not support C++14 or C++17. "
- "Call\ncmake -DCOMPILE_MODERN_CPP=OFF ..\n"
- "to build ${PROJECT_NAME}.")
- endif()
- endif()
- endif()
-
- if(COMPILE_CPP17)
- set(CPP17_SUPPORTED ON PARENT_SCOPE)
- list(GET COMPILER_TEST 0 STANDARD_FLAG)
- elseif(COMPILE_CPP14)
- set(CPP14_SUPPORTED ON PARENT_SCOPE)
- list(GET COMPILER_TEST 1 STANDARD_FLAG)
- endif()
- else()
- list(GET COMPILER_TEST 2 STANDARD_FLAG)
- endif()
-
- set(STANDARD_FLAG ${STANDARD_FLAG} PARENT_SCOPE)
-endfunction()
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
index a6c579bd7b..8491abb780 100644
--- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt
@@ -304,11 +304,17 @@ find_package(CURL QUIET)
if(NOT CURL_FOUND)
message("System curl not found, compiling curl from source")
include(FetchContent)
+ option(BUILD_CURL_EXE "Set to ON to build curl executable." OFF)
+ option(CURL_DISABLE_INSTALL "Set to ON to disable installation targets" ON)
option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" ON)
+ option(BUILD_LIBCURL_DOCS "to build libcurl man pages" OFF)
+ option(BUILD_MISC_DOCS "to build misc man pages (e.g. curl-config and mk-ca-bundle)" OFF)
+ option(ENABLE_CURL_MANUAL "to build the man page for curl and enable its -M/--manual option" OFF)
if(WIN32)
option(CURL_USE_SCHANNEL "Enable Windows native SSL/TLS" ON)
endif()
option(CURL_CA_FALLBACK "Set ON to use built-in CA store of TLS backend. Defaults to OFF" ON)
+ set(CURL_DISABLE_TESTS ON)
FetchContent_Declare(curl
GIT_REPOSITORY https://github.com/curl/curl.git
GIT_TAG fd567d4f06857f4fc8e2f64ea727b1318f76ad33 # release 8.8.0
diff --git a/lang/system/en-gb.xml b/lang/system/en-gb.xml
index bca70f483b..33e4bb1645 100644
--- a/lang/system/en-gb.xml
+++ b/lang/system/en-gb.xml
@@ -713,7 +713,7 @@ Some applications don't use this and get default confirmation button.Medium
Maximum
Detail
- Select your preferred perfomance overlay detail.
+ Select your preferred performance overlay detail.
Top Left
Top Center
Top Right
@@ -721,7 +721,7 @@ Some applications don't use this and get default confirmation button.Bottom Center
Bottom Right
Position
- Select your preferred perfomance overlay position.
+ Select your preferred performance overlay position.
Check to enable case-insensitive path finding on case sensitive filesystems.
RESETS ON RESTART
Allows emulator to attempt searching for files regardless of case
diff --git a/lang/system/en.xml b/lang/system/en.xml
index bca70f483b..33e4bb1645 100644
--- a/lang/system/en.xml
+++ b/lang/system/en.xml
@@ -713,7 +713,7 @@ Some applications don't use this and get default confirmation button.Medium
Maximum
Detail
- Select your preferred perfomance overlay detail.
+ Select your preferred performance overlay detail.
Top Left
Top Center
Top Right
@@ -721,7 +721,7 @@ Some applications don't use this and get default confirmation button.Bottom Center
Bottom Right
Position
- Select your preferred perfomance overlay position.
+ Select your preferred performance overlay position.
Check to enable case-insensitive path finding on case sensitive filesystems.
RESETS ON RESTART
Allows emulator to attempt searching for files regardless of case
diff --git a/vita3k/audio/include/audio/impl/cubeb_audio.h b/vita3k/audio/include/audio/impl/cubeb_audio.h
index 0e9dc39e18..14ce5f16dc 100644
--- a/vita3k/audio/include/audio/impl/cubeb_audio.h
+++ b/vita3k/audio/include/audio/impl/cubeb_audio.h
@@ -49,7 +49,7 @@ class CubebAudioAdapter : public AudioAdapter {
public:
CubebAudioAdapter(AudioState &audio_state);
- ~CubebAudioAdapter();
+ ~CubebAudioAdapter() override;
bool init() override;
AudioOutPortPtr open_port(int nb_channels, int freq, int nb_sample) override;
diff --git a/vita3k/audio/include/audio/impl/sdl_audio.h b/vita3k/audio/include/audio/impl/sdl_audio.h
index df32a896a7..9e80baa606 100644
--- a/vita3k/audio/include/audio/impl/sdl_audio.h
+++ b/vita3k/audio/include/audio/impl/sdl_audio.h
@@ -25,7 +25,7 @@ class SDLAudioAdapter : public AudioAdapter {
public:
SDLAudioAdapter(AudioState &audio_state);
- ~SDLAudioAdapter();
+ ~SDLAudioAdapter() override;
bool init() override;
void switch_state(const bool pause) override;
diff --git a/vita3k/audio/src/impl/cubeb_audio.cpp b/vita3k/audio/src/impl/cubeb_audio.cpp
index 1c89819893..a4ff5b3db7 100644
--- a/vita3k/audio/src/impl/cubeb_audio.cpp
+++ b/vita3k/audio/src/impl/cubeb_audio.cpp
@@ -117,7 +117,7 @@ AudioOutPortPtr CubebAudioAdapter::open_port(int nb_channels, int freq, int nb_s
const int nb_buffers = (latency + nb_sample - 1) / nb_sample + 1;
port->audio_buffers.resize(nb_buffers);
for (AudioBuffer &audio_buffer : port->audio_buffers) {
- // initialize all of the buffers
+ // initialize all the buffers
audio_buffer.buffer.resize(port->len_bytes);
audio_buffer.buffer_position = 0;
}
diff --git a/vita3k/codec/src/decoder.cpp b/vita3k/codec/src/decoder.cpp
index 3499bb1425..09a0e091b1 100644
--- a/vita3k/codec/src/decoder.cpp
+++ b/vita3k/codec/src/decoder.cpp
@@ -41,7 +41,7 @@ DecoderState::~DecoderState() {
avcodec_free_context(&context);
}
-// Handy to have this in logs, some debuggers dont seem to be able to evaluate there error macros properly.
+// Handy to have this in logs, some debuggers don't seem to be able to evaluate there error macros properly.
std::string codec_error_name(int error) {
switch (error) {
case AVERROR(EAGAIN):
diff --git a/vita3k/codec/src/pcm.cpp b/vita3k/codec/src/pcm.cpp
index c060eb928b..ce0fd50740 100644
--- a/vita3k/codec/src/pcm.cpp
+++ b/vita3k/codec/src/pcm.cpp
@@ -261,7 +261,7 @@ bool PCMDecoderState::send(const uint8_t *data, uint32_t size) {
produced_samples = size / sizeof(std::int16_t) / source_channels;
}
- // Try to resample if neccessary
+ // Try to resample if necessary
SwrContext *swr = (source_channels == 2) ? swr_stereo : swr_mono_to_stereo;
const int dest_count = swr_get_out_samples(swr, produced_samples);
diff --git a/vita3k/config/include/config/config.h b/vita3k/config/include/config/config.h
index 7825d64e8e..4b74d07c78 100644
--- a/vita3k/config/include/config/config.h
+++ b/vita3k/config/include/config/config.h
@@ -26,14 +26,14 @@ enum ModulesMode {
MANUAL
};
-enum PerfomanceOverleyDetail {
+enum PerformanceOverlayDetail {
MINIMUM,
LOW,
MEDIUM,
MAXIMUM,
};
-enum PerfomanceOverleyPosition {
+enum PerformanceOverlayPosition {
TOP_LEFT,
TOP_CENTER,
TOP_RIGHT,
@@ -107,8 +107,8 @@ enum ScreenshotFormat {
code(bool, "color-surface-debug", false, color_surface_debug) \
code(bool, "show-touchpad-cursor", true, show_touchpad_cursor) \
code(bool, "performance-overlay", false, performance_overlay) \
- code(int, "perfomance-overlay-detail", static_cast(MINIMUM), performance_overlay_detail) \
- code(int, "perfomance-overlay-position", static_cast(TOP_LEFT), performance_overlay_position) \
+ code(int, "performance-overlay-detail", static_cast(MINIMUM), performance_overlay_detail) \
+ code(int, "performance-overlay-position", static_cast(TOP_LEFT), performance_overlay_position) \
code(int, "screenshot-format", static_cast(JPEG), screenshot_format) \
code(bool, "disable-motion", false, disable_motion) \
code(int, "keyboard-button-select", 229, keyboard_button_select) \
diff --git a/vita3k/cpu/include/cpu/common.h b/vita3k/cpu/include/cpu/common.h
index 7b9c1343d6..03fce4f267 100644
--- a/vita3k/cpu/include/cpu/common.h
+++ b/vita3k/cpu/include/cpu/common.h
@@ -18,7 +18,7 @@
#pragma once
#include
-#include // Address.
+#include // Address.
#include
#include
@@ -43,7 +43,7 @@ typedef void *ExclusiveMonitorPtr;
struct CPUProtocolBase {
virtual void call_svc(CPUState &cpu, uint32_t svc, Address pc, ThreadState &thread) = 0;
virtual Address get_watch_memory_addr(Address addr) = 0;
- virtual ExclusiveMonitorPtr get_exlusive_monitor() = 0;
+ virtual ExclusiveMonitorPtr get_exclusive_monitor() = 0;
virtual ~CPUProtocolBase() = default;
};
diff --git a/vita3k/cpu/include/cpu/impl/dynarmic_cpu.h b/vita3k/cpu/include/cpu/impl/dynarmic_cpu.h
index 5465fbdeeb..ff7356b9d2 100644
--- a/vita3k/cpu/include/cpu/impl/dynarmic_cpu.h
+++ b/vita3k/cpu/include/cpu/impl/dynarmic_cpu.h
@@ -18,7 +18,6 @@
#pragma once
#include
-#include
#include
#include
diff --git a/vita3k/cpu/include/cpu/state.h b/vita3k/cpu/include/cpu/state.h
index a6b76dd19c..ac8cd1c11d 100644
--- a/vita3k/cpu/include/cpu/state.h
+++ b/vita3k/cpu/include/cpu/state.h
@@ -20,6 +20,7 @@
#include
#include
#include
+#include
struct CPUState {
CPUState() = default;
diff --git a/vita3k/cpu/src/cpu.cpp b/vita3k/cpu/src/cpu.cpp
index 59d50e80ae..c0bd5b421f 100644
--- a/vita3k/cpu/src/cpu.cpp
+++ b/vita3k/cpu/src/cpu.cpp
@@ -65,7 +65,7 @@ CPUStatePtr init_cpu(CPUBackend backend, bool cpu_opt, SceUID thread_id, std::si
switch (backend) {
case CPUBackend::Dynarmic: {
- Dynarmic::ExclusiveMonitor *monitor = static_cast(protocol->get_exlusive_monitor());
+ Dynarmic::ExclusiveMonitor *monitor = static_cast(protocol->get_exclusive_monitor());
state->cpu = std::make_unique(state.get(), processor_id, monitor, cpu_opt);
break;
}
diff --git a/vita3k/cpu/src/dynarmic_cpu.cpp b/vita3k/cpu/src/dynarmic_cpu.cpp
index de2a3178d4..97a926ee5c 100644
--- a/vita3k/cpu/src/dynarmic_cpu.cpp
+++ b/vita3k/cpu/src/dynarmic_cpu.cpp
@@ -25,6 +25,7 @@
#include
#include
+#include
class ArmDynarmicCP15 : public Dynarmic::A32::Coprocessor {
uint32_t tpidruro;
diff --git a/vita3k/cpu/src/read_arg.cpp b/vita3k/cpu/src/read_arg.cpp
deleted file mode 100644
index 9da36da18f..0000000000
--- a/vita3k/cpu/src/read_arg.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// Vita3K emulator project
-// Copyright (C) 2024 Vita3K team
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this program; if not, write to the Free Software Foundation, Inc.,
-// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-#include
-#include
-
-// Workaround for old Clang and GCC
-template <>
-module::vargs make_vargs(const LayoutArgsState &state) {
- return module::vargs{ state };
-}
diff --git a/vita3k/cpu/src/unicorn_cpu.cpp b/vita3k/cpu/src/unicorn_cpu.cpp
index 5f0166e250..a80b3996e6 100644
--- a/vita3k/cpu/src/unicorn_cpu.cpp
+++ b/vita3k/cpu/src/unicorn_cpu.cpp
@@ -17,7 +17,9 @@
#include
#include
+#include
#include
+#include
#include
#include
diff --git a/vita3k/gui/src/common_dialog.cpp b/vita3k/gui/src/common_dialog.cpp
index 1facfe2474..019c25e8c9 100644
--- a/vita3k/gui/src/common_dialog.cpp
+++ b/vita3k/gui/src/common_dialog.cpp
@@ -146,9 +146,9 @@ static void draw_trophy_setup_dialog(DialogState &common_dialog, float FONT_SCAL
}
}
-static std::string get_save_date_time(SceSystemParamDateFormat date_fromat, const SceDateTime &date_time) {
+static std::string get_save_date_time(SceSystemParamDateFormat date_format, const SceDateTime &date_time) {
std::string date_str;
- switch (date_fromat) {
+ switch (date_format) {
case SCE_SYSTEM_PARAM_DATE_FORMAT_YYYYMMDD:
date_str = fmt::format("{}/{}/{}", date_time.year, date_time.month, date_time.day);
break;
@@ -615,12 +615,12 @@ static void draw_savedata_dialog(GuiState &gui, EmuEnvState &emuenv, float FONT_
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 12.f * SCALE.x);
const auto BUTTON_SIZE_HEIGHT = 46.f * SCALE.y;
const ImVec2 buttons_size(320.f * SCALE.x, BUTTON_SIZE_HEIGHT);
- const auto boutton_height_pos = WINDOW_SIZE.y - BUTTON_SIZE_HEIGHT - (22 * SCALE.y);
- const auto boutton_width_pos = HALF_WINDOW_SIZE.x - (emuenv.common_dialog.savedata.btn_num == 2 ? (buttons_size.x + (20.f * SCALE.x)) : (buttons_size.x / 2.f));
+ const auto button_height_pos = WINDOW_SIZE.y - BUTTON_SIZE_HEIGHT - (22 * SCALE.y);
+ const auto button_width_pos = HALF_WINDOW_SIZE.x - (emuenv.common_dialog.savedata.btn_num == 2 ? (buttons_size.x + (20.f * SCALE.x)) : (buttons_size.x / 2.f));
ImGui::BeginGroup();
for (int i = 0; i < emuenv.common_dialog.savedata.btn_num; i++) {
ImGui::PushID(i);
- const ImVec2 button_id_pos(boutton_width_pos + (i * (buttons_size.x + (40.f * SCALE.x))), boutton_height_pos);
+ const ImVec2 button_id_pos(button_width_pos + (i * (buttons_size.x + (40.f * SCALE.x))), button_height_pos);
ImGui::SetCursorPos(button_id_pos);
if (ImGui::Button(emuenv.common_dialog.savedata.btn[i].c_str(), buttons_size)) {
emuenv.common_dialog.savedata.button_id = emuenv.common_dialog.savedata.btn_val[i];
diff --git a/vita3k/gui/src/ime.cpp b/vita3k/gui/src/ime.cpp
index f5b7885a72..e62fb1d2f2 100644
--- a/vita3k/gui/src/ime.cpp
+++ b/vita3k/gui/src/ime.cpp
@@ -252,7 +252,7 @@ void init_ime_lang(Ime &ime, const SceImeLanguage &lang) {
size_button = 135.f;
size_key = 88.f;
break;
- };
+ }
}
static std::map key_row_pos = { { FIRST, 11.f }, { SECOND, 69.f }, { THIRD, 127.f } };
diff --git a/vita3k/gui/src/information_bar.cpp b/vita3k/gui/src/information_bar.cpp
index 5c6e2eb72a..7477c1cfc8 100644
--- a/vita3k/gui/src/information_bar.cpp
+++ b/vita3k/gui/src/information_bar.cpp
@@ -645,7 +645,7 @@ void draw_information_bar(GuiState &gui, EmuEnvState &emuenv) {
battery_size /= 100.f;
}
- // Set battery color depending on battery level: red for levels below or egale 25% and green for levels above this threshold.
+ // Set battery color depending on battery level: red for levels less than or equal to 25% and green for levels above this threshold.
const ImU32 BATTERY_COLOR = (res >= 0) && (res <= 25) ? IM_COL32(225.f, 50.f, 50.f, 255.f) : IM_COL32(90.f, 200.f, 30.f, 255.f);
// Draw battery level
diff --git a/vita3k/gui/src/manual.cpp b/vita3k/gui/src/manual.cpp
index 8b2eb8343e..b5ab08f27a 100644
--- a/vita3k/gui/src/manual.cpp
+++ b/vita3k/gui/src/manual.cpp
@@ -203,16 +203,16 @@ void draw_manual(GuiState &gui, EmuEnvState &emuenv) {
const std::string slider = fmt::format("{:0>2d}/{:0>2d}", current_page + 1, (int32_t)gui.manuals.size());
if (ImGui::Button(slider.c_str(), BUTTON_SIZE))
ImGui::OpenPopup("Manual Slider");
- const auto POPUP_HEIGTH = 64.f * SCALE.y;
- ImGui::SetNextWindowPos(ImVec2(0.f, display_size.y - POPUP_HEIGTH), ImGuiCond_Always);
- ImGui::SetNextWindowSize(ImVec2(display_size.x, POPUP_HEIGTH), ImGuiCond_Always);
+ const auto POPUP_HEIGHT = 64.f * SCALE.y;
+ ImGui::SetNextWindowPos(ImVec2(0.f, display_size.y - POPUP_HEIGHT), ImGuiCond_Always);
+ ImGui::SetNextWindowSize(ImVec2(display_size.x, POPUP_HEIGHT), ImGuiCond_Always);
ImGui::SetNextWindowBgAlpha(0.7f);
if (ImGui::BeginPopupModal("Manual Slider", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings)) {
const auto SLIDER_WIDTH = 800.f * SCALE.x;
ImGui::PushItemWidth(SLIDER_WIDTH);
ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize, 26.f * SCALE.y);
ImGui::PushStyleVar(ImGuiStyleVar_GrabRounding, 50.f * SCALE.y);
- ImGui::SetCursorPos(ImVec2((display_size.x / 2) - (SLIDER_WIDTH / 2.f), (POPUP_HEIGTH / 2) - (15.f * SCALE.x)));
+ ImGui::SetCursorPos(ImVec2((display_size.x / 2) - (SLIDER_WIDTH / 2.f), (POPUP_HEIGHT / 2) - (15.f * SCALE.x)));
ImGui::SliderInt("##slider_current_manual", ¤t_page, 0, (int32_t)gui.manuals.size() - 1, slider.c_str());
ImGui::PopStyleVar(2);
ImGui::PopItemWidth();
diff --git a/vita3k/gui/src/perf_overlay.cpp b/vita3k/gui/src/perf_overlay.cpp
index b0f6384648..c51c16fd8e 100644
--- a/vita3k/gui/src/perf_overlay.cpp
+++ b/vita3k/gui/src/perf_overlay.cpp
@@ -76,11 +76,11 @@ void draw_perf_overlay(GuiState &gui, EmuEnvState &emuenv) {
ImGui::BeginChild("#perf_stats", WINDOW_SIZE, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoSavedSettings);
ImGui::PushFont(gui.vita_font);
ImGui::SetWindowFontScale(0.7f * RES_SCALE.x);
- if (emuenv.cfg.performance_overlay_detail == PerfomanceOverleyDetail::MINIMUM)
+ if (emuenv.cfg.performance_overlay_detail == PerformanceOverlayDetail::MINIMUM)
ImGui::Text("FPS: %d", emuenv.fps);
else
ImGui::Text("FPS: %d %s: %d", emuenv.fps, lang["avg"].c_str(), emuenv.avg_fps);
- if (emuenv.cfg.performance_overlay_detail >= PerfomanceOverleyDetail::MEDIUM) {
+ if (emuenv.cfg.performance_overlay_detail >= PerformanceOverlayDetail::MEDIUM) {
ImGui::Separator();
ImGui::Text("%s: %d %s: %d", lang["min"].c_str(), emuenv.min_fps, lang["max"].c_str(), emuenv.max_fps);
}
@@ -88,7 +88,7 @@ void draw_perf_overlay(GuiState &gui, EmuEnvState &emuenv) {
ImGui::EndChild();
ImGui::PopStyleVar();
ImGui::PopStyleColor();
- if (emuenv.cfg.performance_overlay_detail == PerfomanceOverleyDetail::MAXIMUM) {
+ if (emuenv.cfg.performance_overlay_detail == PerformanceOverlayDetail::MAXIMUM) {
ImGui::SetCursorPosY(ImGui::GetCursorPosY() - (3.f * SCALE.y));
ImGui::PlotLines("##fps_graphic", emuenv.fps_values, IM_ARRAYSIZE(emuenv.fps_values), emuenv.current_fps_offset, nullptr, 0.f, float(emuenv.max_fps), WINDOW_SIZE);
}
diff --git a/vita3k/gui/src/settings_dialog.cpp b/vita3k/gui/src/settings_dialog.cpp
index e7bc516ea8..99f99c729e 100644
--- a/vita3k/gui/src/settings_dialog.cpp
+++ b/vita3k/gui/src/settings_dialog.cpp
@@ -875,8 +875,8 @@ void draw_settings_dialog(GuiState &gui, EmuEnvState &emuenv) {
ImGui::Checkbox(lang.emulator["check_for_updates"].c_str(), &emuenv.cfg.check_for_updates);
SetTooltipEx(lang.emulator["check_for_updates_description"].c_str());
ImGui::Separator();
- const auto perfomance_overley_size = ImGui::CalcTextSize(lang.emulator["performance_overlay"].c_str()).x;
- ImGui::SetCursorPosX((ImGui::GetWindowWidth() / 2.f) - (perfomance_overley_size / 2.f));
+ const auto performance_overlay_size = ImGui::CalcTextSize(lang.emulator["performance_overlay"].c_str()).x;
+ ImGui::SetCursorPosX((ImGui::GetWindowWidth() / 2.f) - (performance_overlay_size / 2.f));
ImGui::TextColored(GUI_COLOR_TEXT_TITLE, "%s", lang.emulator["performance_overlay"].c_str());
ImGui::Spacing();
ImGui::Checkbox(lang.emulator["performance_overlay"].c_str(), &emuenv.cfg.performance_overlay);
diff --git a/vita3k/gxm/include/gxm/types.h b/vita3k/gxm/include/gxm/types.h
index 2ce52b5e36..a1ffbaf56a 100644
--- a/vita3k/gxm/include/gxm/types.h
+++ b/vita3k/gxm/include/gxm/types.h
@@ -415,7 +415,7 @@ enum SceGxmTextureBaseFormat : uint32_t {
template
constexpr static inline uint32_t operator|(const SceGxmTextureBaseFormat a, const T b) {
return static_cast(a) | static_cast(b);
-};
+}
enum SceGxmTextureFormat : uint32_t {
// Supported formats
@@ -842,7 +842,7 @@ enum SceGxmColorBaseFormat : uint32_t {
template
constexpr static inline uint32_t operator|(const SceGxmColorBaseFormat a, const T b) {
return static_cast(a) | static_cast(b);
-};
+}
enum SceGxmColorFormat : uint32_t {
@@ -1057,7 +1057,7 @@ enum SceGxmDepthStencilForceLoadMode : uint32_t {
template
constexpr static inline uint32_t operator|(const SceGxmDepthStencilForceLoadMode a, const T b) {
return static_cast(a) | static_cast(b);
-};
+}
enum SceGxmDepthStencilForceStoreMode : uint32_t {
SCE_GXM_DEPTH_STENCIL_FORCE_STORE_DISABLED = 0x00000000u,
@@ -1067,7 +1067,7 @@ enum SceGxmDepthStencilForceStoreMode : uint32_t {
template
constexpr static inline uint32_t operator|(const SceGxmDepthStencilForceStoreMode a, const T b) {
return static_cast(a) | static_cast(b);
-};
+}
enum SceGxmColorSurfaceDitherMode : uint32_t {
SCE_GXM_COLOR_SURFACE_DITHER_DISABLED = 0x00000000u,
diff --git a/vita3k/gxm/src/textures.cpp b/vita3k/gxm/src/textures.cpp
index 5b06b8b6e9..b9bba94624 100644
--- a/vita3k/gxm/src/textures.cpp
+++ b/vita3k/gxm/src/textures.cpp
@@ -296,7 +296,7 @@ uint32_t texture_size_full(const SceGxmTexture &texture) {
break;
default:
break;
- };
+ }
uint32_t max_possible_mip = std::bit_width(std::min(width, height));
if (type == SCE_GXM_TEXTURE_TILED) {
@@ -358,9 +358,9 @@ uint32_t texture_size_full(const SceGxmTexture &texture) {
const bool twok_align_cond2 = width >= 16 && height >= 16 && (bpp == 16 || bpp == 32);
const bool twok_align_cond3 = width >= 8 && height >= 8 && bpp == 64;
- // if one of these conditions is true, alignement between faces is 2K
- const uint32_t face_alignement = (twok_align_cond1 || twok_align_cond2 || twok_align_cond3) ? 2048 : 4;
- const uint32_t face_full_size = align(texture_size, face_alignement);
+ // if one of these conditions is true, alignment between faces is 2K
+ const uint32_t face_alignment = (twok_align_cond1 || twok_align_cond2 || twok_align_cond3) ? 2048 : 4;
+ const uint32_t face_full_size = align(texture_size, face_alignment);
// don't take into account what is after the end of the last texture
texture_size = 5 * face_full_size + texture_size;
@@ -414,7 +414,7 @@ uint32_t texture_size_first_mip(const SceGxmTexture &texture) {
break;
default:
break;
- };
+ }
auto [block_width, block_height] = get_block_size(format);
width = align(width, block_width);
diff --git a/vita3k/host/dialog/include/host/dialog/filesystem.hpp b/vita3k/host/dialog/include/host/dialog/filesystem.hpp
index 6342fbff35..8bd6fe8f54 100644
--- a/vita3k/host/dialog/include/host/dialog/filesystem.hpp
+++ b/vita3k/host/dialog/include/host/dialog/filesystem.hpp
@@ -39,7 +39,7 @@ namespace filesystem {
*/
enum Result {
/**
- * @brief An error has ocurred
+ * @brief An error has occurred
*/
ERROR,
diff --git a/vita3k/host/dialog/src/filesystem.cpp b/vita3k/host/dialog/src/filesystem.cpp
index fd5cb2c904..95d030303d 100644
--- a/vita3k/host/dialog/src/filesystem.cpp
+++ b/vita3k/host/dialog/src/filesystem.cpp
@@ -62,7 +62,7 @@ std::string format_file_filter_extension_list(const std::vector &fi
}
return formatted_string;
-};
+}
namespace host {
namespace dialog {
@@ -116,7 +116,7 @@ Result open_file(std::filesystem::path &resulting_path, const std::vector
#include
#include
-#include
#include
#include
#include
diff --git a/vita3k/kernel/include/kernel/cpu_protocol.h b/vita3k/kernel/include/kernel/cpu_protocol.h
index a3ae734cab..ad6460dc95 100644
--- a/vita3k/kernel/include/kernel/cpu_protocol.h
+++ b/vita3k/kernel/include/kernel/cpu_protocol.h
@@ -28,7 +28,7 @@ struct CPUProtocol : public CPUProtocolBase {
~CPUProtocol() override = default;
void call_svc(CPUState &cpu, uint32_t svc, Address pc, ThreadState &thread) override;
Address get_watch_memory_addr(Address addr) override;
- ExclusiveMonitorPtr get_exlusive_monitor() override;
+ ExclusiveMonitorPtr get_exclusive_monitor() override;
private:
CallImportFunc call_import;
diff --git a/vita3k/kernel/include/kernel/debugger.h b/vita3k/kernel/include/kernel/debugger.h
index 313065091d..fc02cfb716 100644
--- a/vita3k/kernel/include/kernel/debugger.h
+++ b/vita3k/kernel/include/kernel/debugger.h
@@ -69,7 +69,7 @@ struct Debugger {
void remove_watch_memory_addr(KernelState &state, Address addr);
void add_breakpoint(MemState &mem, uint32_t addr, bool thumb_mode);
void remove_breakpoint(MemState &mem, uint32_t addr);
- void add_trampoile(MemState &mem, uint32_t addr, bool thumb_mode, const TrampolineCallback &callback);
+ void add_trampoline(MemState &mem, uint32_t addr, bool thumb_mode, const TrampolineCallback &callback);
Trampoline *get_trampoline(Address addr);
void remove_trampoline(MemState &mem, uint32_t addr);
Address get_watch_memory_addr(Address addr);
diff --git a/vita3k/kernel/include/kernel/relocation.h b/vita3k/kernel/include/kernel/relocation.h
index cc36513817..323ad8409d 100644
--- a/vita3k/kernel/include/kernel/relocation.h
+++ b/vita3k/kernel/include/kernel/relocation.h
@@ -17,7 +17,7 @@
#pragma once
-#include
+#include
#include