mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-06 23:26:15 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fe1ea2ee7 | ||
|
|
0931f25f23 | ||
|
|
7f4d782c0d | ||
|
|
f2cda23b0f | ||
|
|
6292705968 | ||
|
|
6931b3f505 |
@@ -15,8 +15,8 @@ android {
|
|||||||
}
|
}
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 10
|
versionCode 11
|
||||||
versionName "1.0.14"
|
versionName "1.0.15"
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
ndkBuild {
|
ndkBuild {
|
||||||
arguments "APP_PLATFORM=android-16"
|
arguments "APP_PLATFORM=android-16"
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ Boolean CreateNewHouse (void)
|
|||||||
theSpec.m_name[0] = static_cast<uint8_t>(savePathLength);
|
theSpec.m_name[0] = static_cast<uint8_t>(savePathLength);
|
||||||
memcpy(theSpec.m_name + 1, savePath, savePathLength);
|
memcpy(theSpec.m_name + 1, savePath, savePathLength);
|
||||||
|
|
||||||
// Don't try to overwrite the current house - The GPF will probably be locked anyway
|
// Don't try to overwrite the current house
|
||||||
if (houseCFile && theSpec.m_dir == houseCFile->GetDirectory() && !StrCmp::CompareCaseInsensitive(theSpec.m_name, houseCFile->GetFileName()))
|
if (houseCFile && theSpec.m_dir == houseCFile->GetDirectory() && !StrCmp::CompareCaseInsensitive(theSpec.m_name, houseCFile->GetFileName()))
|
||||||
{
|
{
|
||||||
CheckFileError(PLErrors::kFileIsBusy, theSpec.m_name);
|
CheckFileError(PLErrors::kFileIsBusy, theSpec.m_name);
|
||||||
@@ -173,7 +173,7 @@ Boolean InitializeEmptyHouse (void)
|
|||||||
if (thisHouse != nil)
|
if (thisHouse != nil)
|
||||||
thisHouse.Dispose();
|
thisHouse.Dispose();
|
||||||
|
|
||||||
thisHouse = NewHandle(sizeof(houseType)).StaticCast<houseType>();
|
thisHouse = NewHandle(sizeof(houseType) - sizeof(roomType)).StaticCast<houseType>();
|
||||||
|
|
||||||
if (thisHouse == nil)
|
if (thisHouse == nil)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -616,7 +616,7 @@ void ValidateNumberOfRooms (void)
|
|||||||
|
|
||||||
reportsRooms = (long)(*thisHouse)->nRooms;
|
reportsRooms = (long)(*thisHouse)->nRooms;
|
||||||
countedRooms = (GetHandleSize(thisHouse.StaticCast<void>()) -
|
countedRooms = (GetHandleSize(thisHouse.StaticCast<void>()) -
|
||||||
sizeof(houseType)) / sizeof(roomType);
|
sizeof(houseType)) / sizeof(roomType) + 1;
|
||||||
if (reportsRooms != countedRooms)
|
if (reportsRooms != countedRooms)
|
||||||
{
|
{
|
||||||
(*thisHouse)->nRooms = (short)countedRooms;
|
(*thisHouse)->nRooms = (short)countedRooms;
|
||||||
|
|||||||
@@ -1963,6 +1963,12 @@ void GetThisRoomsObjRects (void)
|
|||||||
|
|
||||||
if ((noRoomAtAll) || (!houseUnlocked))
|
if ((noRoomAtAll) || (!houseUnlocked))
|
||||||
{
|
{
|
||||||
|
// clear object handles so they're not draggable
|
||||||
|
QSetRect(&leftStartGliderDest, 0, 0, 0, 0);
|
||||||
|
QSetRect(&rightStartGliderDest, 0, 0, 0, 0);
|
||||||
|
for (i = 0; i < kMaxRoomObs; i++)
|
||||||
|
QSetRect(&roomObjectRects[i], 0, 0, 0, 0);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -70,9 +70,9 @@ short WhichStringFirst (StringPtr p1, StringPtr p2)
|
|||||||
{
|
{
|
||||||
if (!foundIt)
|
if (!foundIt)
|
||||||
{
|
{
|
||||||
if (p1[0] < p2[0]) // shortest string wins
|
if (p1[0] > p2[0]) // shortest string wins
|
||||||
greater = 1;
|
greater = 1;
|
||||||
else if (p1[0] > p2[0])
|
else if (p1[0] < p2[0])
|
||||||
greater = 2;
|
greater = 2;
|
||||||
}
|
}
|
||||||
foundIt = true;
|
foundIt = true;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#define GP_BUILD_VERSION_MAJOR 1
|
#define GP_BUILD_VERSION_MAJOR 1
|
||||||
#define GP_BUILD_VERSION_MINOR 0
|
#define GP_BUILD_VERSION_MINOR 0
|
||||||
#define GP_BUILD_VERSION_UPDATE 14
|
#define GP_BUILD_VERSION_UPDATE 15
|
||||||
|
|
||||||
#define GP_APPLICATION_VERSION_STRING "1.0.14"
|
#define GP_APPLICATION_VERSION_STRING "1.0.15"
|
||||||
#define GP_APPLICATION_COPYRIGHT_STRING "2019-2021 Eric Lasota"
|
#define GP_APPLICATION_COPYRIGHT_STRING "2019-2021 Eric Lasota"
|
||||||
#define GP_APPLICATION_WEBSITE_STRING "https://github.com/elasota/Aerofoil"
|
#define GP_APPLICATION_WEBSITE_STRING "https://github.com/elasota/Aerofoil"
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace StrCmp
|
|||||||
const uint8_t *chars2 = string2.UChars();
|
const uint8_t *chars2 = string2.UChars();
|
||||||
|
|
||||||
const size_t len1 = string1.Length();
|
const size_t len1 = string1.Length();
|
||||||
const size_t len2 = string1.Length();
|
const size_t len2 = string2.Length();
|
||||||
|
|
||||||
const size_t shorterLen = std::min(len1, len2);
|
const size_t shorterLen = std::min(len1, len2);
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "PLCore.h"
|
#include "PLCore.h"
|
||||||
#include "PLPasStr.h"
|
#include "PLPasStr.h"
|
||||||
|
|
||||||
namespace StrCmp
|
namespace StrCmp
|
||||||
{
|
{
|
||||||
int CompareCaseInsensitive(const PLPasStr &string1, const PLPasStr &string2);
|
int CompareCaseInsensitive(const PLPasStr &string1, const PLPasStr &string2);
|
||||||
int Compare(const PLPasStr &string1, const PLPasStr &string2);
|
int Compare(const PLPasStr &string1, const PLPasStr &string2);
|
||||||
|
|
||||||
inline bool EqualCaseInsensitive(const PLPasStr &string1, const PLPasStr &string2)
|
inline bool EqualCaseInsensitive(const PLPasStr &string1, const PLPasStr &string2)
|
||||||
{
|
{
|
||||||
return CompareCaseInsensitive(string1, string2) == 0;
|
return CompareCaseInsensitive(string1, string2) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool Equal(const PLPasStr &string1, const PLPasStr &string2)
|
inline bool Equal(const PLPasStr &string1, const PLPasStr &string2)
|
||||||
{
|
{
|
||||||
return Compare(string1, string2) == 0;
|
return Compare(string1, string2) == 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user