mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Buildfixes
This commit is contained in:
1 parent
11ab77b995
commit
5e976ff842
8 files changed
+10
-10
No files matched your search
+1
-1
@@ -802,7 +802,7 @@ const std::string &GetExeDirectory()
|
||||
sz = GetModuleFileName(nullptr, &program_path[0], (DWORD)program_path.size());
|
||||
} while (sz >= program_path.size());
|
||||
|
||||
TCHAR *last_slash = _tcsrchr(&program_path[0], '\\');
|
||||
const wchar_t *last_slash = wcsrchr(&program_path[0], '\\');
|
||||
if (last_slash != nullptr)
|
||||
program_path.resize(last_slash - &program_path[0] + 1);
|
||||
else
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "CommonWindows.h"
|
||||
#else
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
// Generic function to get last error message.
|
||||
|
||||
@@ -19,11 +19,13 @@
|
||||
#if PPSSPP_ARCH(ARM)
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "Core/MIPS/MIPS.h"
|
||||
#include "Core/MIPS/MIPSCodeUtils.h"
|
||||
#include "Core/MIPS/ARM/ArmJit.h"
|
||||
#include "Core/MIPS/ARM/ArmRegCache.h"
|
||||
#include "Common/CPUDetect.h"
|
||||
#include "Common/ByteSwap.h"
|
||||
|
||||
using namespace MIPSAnalyst;
|
||||
|
||||
|
||||
@@ -318,7 +318,7 @@ std::vector<std::string> getWindowsDrives()
|
||||
std::vector<std::string> drives;
|
||||
|
||||
const DWORD buffsize = GetLogicalDriveStrings(0, NULL);
|
||||
std::vector<TCHAR> buff(buffsize);
|
||||
std::vector<wchar_t> buff(buffsize);
|
||||
if (GetLogicalDriveStrings(buffsize, buff.data()) == buffsize - 1)
|
||||
{
|
||||
auto drive = buff.data();
|
||||
|
||||
@@ -46,11 +46,6 @@ namespace Draw {
|
||||
class Pipeline;
|
||||
}
|
||||
|
||||
enum DrawBufferPrimitiveMode {
|
||||
DBMODE_NORMAL = 0,
|
||||
DBMODE_LINES = 1
|
||||
};
|
||||
|
||||
struct GradientStop {
|
||||
float t;
|
||||
uint32_t color;
|
||||
@@ -190,7 +185,6 @@ private:
|
||||
|
||||
Vertex *verts_;
|
||||
int count_;
|
||||
DrawBufferPrimitiveMode mode_;
|
||||
const Atlas *atlas;
|
||||
|
||||
bool inited_;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "android/jni/app-android.h"
|
||||
|
||||
#include "Common/Log.h"
|
||||
#include "Common/StringUtils.h"
|
||||
|
||||
#if PPSSPP_PLATFORM(ANDROID) && !defined(__LIBRETRO__)
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "gfx_es2/draw_text_uwp.h"
|
||||
|
||||
#include "Common/Log.h"
|
||||
#include "Common/StringUtils.h"
|
||||
|
||||
#if PPSSPP_PLATFORM(UWP)
|
||||
|
||||
|
||||
@@ -458,11 +458,11 @@ bool parsePostfixExpression(PostfixExpression& exp, IExpressionFunctions* funcs,
|
||||
valueStack.push_back(val);
|
||||
}
|
||||
break;
|
||||
case EXOP_SIGNPLUS: // keine aktion nötig
|
||||
case EXOP_SIGNPLUS: // keine aktion nötig
|
||||
break;
|
||||
case EXOP_SIGNMINUS: // -0
|
||||
if (useFloat)
|
||||
valueStack.push_back(0.0-fArg[0]);
|
||||
valueStack.push_back(0.0 - fArg[0]);
|
||||
else
|
||||
valueStack.push_back(0-arg[0]);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user