mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 02:21:26 +02:00
Merge branch 'master' of https://code.google.com/p/dolphin-emu
This commit is contained in:
commit
1ad05f7440
@ -130,12 +130,13 @@ bool TryParse(const std::string &str, u32 *const output)
|
||||
if (!endptr || *endptr)
|
||||
return false;
|
||||
|
||||
if (value == ULONG_MAX && errno == ERANGE)
|
||||
if (errno == ERANGE)
|
||||
return false;
|
||||
|
||||
if (ULONG_MAX > UINT_MAX) {
|
||||
// Leading bits must be either all 0 or all 1.
|
||||
if ((~value | UINT_MAX) != ULONG_MAX && (value | UINT_MAX) != ULONG_MAX)
|
||||
// Note: The typecasts avoid GCC warnings when long is 32 bits wide.
|
||||
if (value >= static_cast<unsigned long>(0x100000000ull)
|
||||
&& value <= static_cast<unsigned long>(0xFFFFFFFF00000000ull))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,10 @@
|
||||
|
||||
#include "Thread.h"
|
||||
|
||||
#define INPUT_DETECT_THRESHOLD 0.85f
|
||||
namespace
|
||||
{
|
||||
const float INPUT_DETECT_THRESHOLD = 0.55f;
|
||||
}
|
||||
|
||||
ControllerInterface g_controller_interface;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user