mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fixes for Android build errors. Enable sensor landscape rotation.
Fix typo in Android Makefile ndk path. Fix touchscreen parts of game.cpp to work after Zeno's refactor. Fix isdigit and isspace overload conflict with Android Irrlicht in string.h Enable sensor landscape rotation in Android Manifiest. Add mapgen v5 to Android build. Fix Makefile not checking leveldb. Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
@@ -212,11 +212,11 @@ inline std::string trim(const std::string &s)
|
||||
{
|
||||
size_t front = 0;
|
||||
|
||||
while (isspace(s[front]))
|
||||
while (std::isspace(s[front]))
|
||||
++front;
|
||||
|
||||
size_t back = s.size();
|
||||
while (back > front && isspace(s[back-1]))
|
||||
while (back > front && std::isspace(s[back-1]))
|
||||
--back;
|
||||
|
||||
return s.substr(front, back - front);
|
||||
@@ -481,7 +481,7 @@ inline std::string unescape_string(std::string &s)
|
||||
inline bool is_number(const std::string &tocheck)
|
||||
{
|
||||
for (size_t i = 0; i < tocheck.size(); i++)
|
||||
if (!isdigit(tocheck[i]))
|
||||
if (!std::isdigit(tocheck[i]))
|
||||
return false;
|
||||
|
||||
return !tocheck.empty();
|
||||
|
Reference in New Issue
Block a user