fix warnings and cmake windows build

This commit is contained in:
oltolm
2026-02-04 20:42:14 +01:00
parent eb25a3d7e4
commit 72f305c779
8 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ public:
bool Touch(const TouchInput &input) override;
void Update() override;
bool IsDown() const override; // For visual purpose
bool IsDownForFadeoutCheck() const {
bool IsDownForFadeoutCheck() const override {
return !(pspButtonBit_ & (1ULL << 38)); // VIRTKEY_TOGGLE_TOUCH_CONTROLS from g_customKeyList
}
+1 -1
View File
@@ -26,7 +26,7 @@
#include <set>
constexpr wchar_t *szClassName = L"CtrlDisAsmView";
constexpr const wchar_t *szClassName = L"CtrlDisAsmView";
static constexpr UINT_PTR IDT_REDRAW = 0xC0DE0001;
static constexpr UINT REDRAW_DELAY = 1000 / 60;
+1 -1
View File
@@ -20,7 +20,7 @@
enum { REGISTER_PC = 32, REGISTER_HI, REGISTER_LO, REGISTERS_END };
constexpr wchar_t *szClassName = L"CtrlRegisterList";
constexpr const wchar_t *szClassName = L"CtrlRegisterList";
static constexpr UINT_PTR IDT_REDRAW = 0xC0DE0001;
static constexpr UINT REDRAW_DELAY = 1000 / 60;
+1 -1
View File
@@ -12,7 +12,7 @@
#include "GPU/Debugger/Breakpoints.h"
#include "GPU/GPUState.h"
constexpr wchar_t *szWindowClass = L"CtrlDisplayListView";
constexpr const wchar_t *szWindowClass = L"CtrlDisplayListView";
void CtrlDisplayListView::registerClass()
{
+1 -1
View File
@@ -437,7 +437,7 @@ void CGEDebugger::DescribeSecondPreview(const GPUgstate &state, char desc[256])
}
void CGEDebugger::PreviewExport(const GPUDebugBuffer *dbgBuffer) {
constexpr wchar_t *filter = L"PNG Image (*.png)\0*.png\0JPEG Image (*.jpg)\0*.jpg\0All files\0*.*\0\0";
constexpr const wchar_t *filter = L"PNG Image (*.png)\0*.png\0JPEG Image (*.jpg)\0*.jpg\0All files\0*.*\0\0";
std::string fn;
if (W32Util::BrowseForFileName(false, GetDlgHandle(), L"Save Preview Image...", nullptr, filter, L"png", fn)) {
ScreenshotFormat fmt = fn.find(".jpg") != fn.npos ? ScreenshotFormat::JPG : ScreenshotFormat::PNG;
+1 -1
View File
@@ -178,7 +178,7 @@ namespace MainWindow {
static bool trapMouse = true; // Handles some special cases(alt+tab, win menu) when game is running and mouse is confined
static constexpr wchar_t *szWindowClass = L"PPSSPPWnd";
static constexpr const wchar_t *szWindowClass = L"PPSSPPWnd";
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
+1 -1
View File
@@ -99,7 +99,7 @@ void TouchInputHandler::handleTouchEvent(HWND hWnd, UINT message, WPARAM wParam,
// disable the press and hold gesture for the given window
void TouchInputHandler::disablePressAndHold(HWND hWnd) {
// The atom identifier and Tablet PC atom
wchar_t *tabletAtom = L"MicrosoftTabletPenServiceProperty";
const wchar_t *tabletAtom = L"MicrosoftTabletPenServiceProperty";
ATOM atomID = GlobalAddAtom(tabletAtom);
// If getting the ID failed, return false
+1
View File
@@ -3,6 +3,7 @@
#include <string>
#include <string_view>
#include <vector>
#include <cstdint>
class Path;