Commit Graph

725 Commits

Author SHA1 Message Date
elasota
5643f464cc Discard security exception on getSerialNumber, fixes Android USB gamepad crash. 2022-06-22 21:29:55 -04:00
elasota
a04c5f10df Reject zip archives with non-zero file count but empty central directory 2022-06-22 21:28:28 -04:00
Eric Lasota
3e13877788 Merge pull request #11 from ryandesign/stdlib
Include stdlib.h where its functions are used
2022-03-17 13:10:33 -04:00
Ryan Schmidt
53ff18d337 Include stdlib.h where its functions are used
Fixes build failure on OS X 10.10 and 10.11:

error: use of undeclared identifier 'free'
error: use of undeclared identifier 'malloc'
error: use of undeclared identifier 'qsort'
2022-03-17 02:54:37 -05:00
elasota
e33c01cc40 Change line endings to UNIX 2022-03-17 02:00:06 -04:00
Eric Lasota
0c891d3117 Merge pull request #10 from ryandesign/mac
Improve CMake macOS build
2022-03-17 01:58:13 -04:00
elasota
e4d2d9f9a4 Fix bad null compares 2022-03-17 01:50:19 -04:00
elasota
41c0312921 Add more nullptr_t operators 2022-03-17 01:48:16 -04:00
Ryan Schmidt
e78b01a5f3 Improve CMake macOS build
Now actually builds on macOS.

Closes #9
2022-03-17 00:39:55 -05:00
elasota
d470bb5eeb Add nullptr_t constructor to THandle 2022-03-16 21:24:47 -04:00
elasota
1fe94e4f06 Split AerofoilTools package 1.1.2 2021-11-10 18:05:19 -05:00
elasota
5f2f73e176 Bump to API 30 2021-11-10 17:51:59 -05:00
elasota
7c5864d59b Update installer to VS2019 C++ runtime. 2021-11-10 17:22:01 -05:00
elasota
d698ff23db Bump version to 1.1.2 2021-11-10 17:21:45 -05:00
elasota
92cb961208 Update credits 2021-11-10 17:21:29 -05:00
elasota
545798600e Fix gamepads not working, enable on Android 2021-10-22 22:01:33 -04:00
elasota
9ba15c6d78 Update C++ projects to VS2019, fix warnings/errors 2021-10-22 22:01:14 -04:00
elasota
0706640bc9 Merge branch 'master' of https://github.com/elasota/GlidePort 2021-10-22 13:07:56 -04:00
Eric Lasota
bdb7ddbdbb Create README.md 2021-10-10 11:28:36 -04:00
Eric Lasota
c5dee3ce9e Update README.md 2021-10-10 11:25:21 -04:00
elasota
7e3569500a Handle RGB15BE blit 2021-09-02 04:13:43 -04:00
elasota
376fdf16c4 Add name-to-comment support to GPAs 2021-09-01 22:06:43 -04:00
Eric Lasota
40b38046b9 Merge pull request #6 from pmarell/mac
Mac-specific improvements
2021-08-25 10:06:53 -04:00
Phil Marell
5b5fb15780 Send events through queue instead of calling game methods directly 2021-08-08 16:59:27 +10:00
Phil Marell
744b06796d Remove no longer true comment 2021-08-08 16:57:25 +10:00
Phil Marell
7ba11df286 Add quit event to queue without using private SDL method 2021-08-08 16:57:24 +10:00
Phil Marell
9f5699a61e Return correct value for macOS 2021-08-08 16:56:19 +10:00
Phil Marell
5ab966ea98 Fix build errors 2021-08-08 16:56:19 +10:00
Phil Marell
42ec9e3646 Use #pragma once 2021-08-05 18:46:36 +10:00
Phil Marell
83978d0397 Merge branch 'master' into mac
# Conflicts:
#	AerofoilSDL/GpDisplayDriver_SDL_GL2.cpp
#	PortabilityLayer/MenuManager.cpp
2021-08-05 18:46:18 +10:00
elasota
82fe38dfc7 Fix about dialog misalignments 2021-08-04 02:34:54 -04:00
elasota
2c90110668 Fix key names not lining up correctly, bump prefs version since new key specials don't match old prefs 2021-08-02 01:19:20 -04:00
elasota
eac270670d Add command/meta key support 2021-08-02 01:04:22 -04:00
elasota
c04aeeb962 Add Inter font, map Chicago system symbol reservations using it, use Command symbol on macOS 2021-08-01 22:24:41 -04:00
elasota
f9109850a6 Remove tools from install package so they can be split off into a separate download. 2021-08-01 22:23:56 -04:00
elasota
71955ac729 Fixed GenerateFonts bugs 2021-07-31 17:40:57 -04:00
Phil Marell
f36a8da95f Allow native menu to unhighlight 2021-07-28 20:14:34 +10:00
Phil Marell
0e3534d902 Wire objects/actions in nib 2021-07-28 19:44:07 +10:00
Phil Marell
90943d945b Expose certain methods to be used for Mac menu items 2021-07-28 19:44:07 +10:00
Phil Marell
00488c6fea Override Cocoa app lifecycle defined by SDL 2021-07-28 19:44:07 +10:00
Phil Marell
f16ffa0c4c Replace Main.storyboard with custom MainMenu.xib
The new xib file contains the default main menu created by Xcode, but removes the command-H shortcut from the Hide menu item, so that the in-game High Scores item takes effect instead.

Also SDL only supports custom nib files, not storyboards.
2021-07-28 19:44:03 +10:00
Phil Marell
e098370249 Use Command key instead of Control as modifier on macOS
This provides an experience closer to the original classic Mac version.

This is supported by the earlier changes to gracefully quit the game.
2021-07-24 16:27:55 +10:00
Phil Marell
c3eb23af4b Handle external quits while in editor
This mitigates against potential data loss after having finished editing a house.
2021-07-24 16:27:55 +10:00
Phil Marell
a32b33ef1b Ask to save game if user “externally” quits while in-game
An “external quit” being defined as one where the portability handler receives a request to quit the app, such as closing the window, or on macOS using the Quit menu item.

This can prevent the user losing their progress after having finished with a game.
2021-07-24 16:27:55 +10:00
Phil Marell
b83fd1b28f Move “end game” logic into common function 2021-07-24 16:27:55 +10:00
Phil Marell
ab6c447a2f Compile on Xcode 13 2021-07-24 16:27:55 +10:00
Phil Marell
e02919f1fc Use tabs in Xcode project 2021-07-24 16:27:55 +10:00
Phil Marell
ccceec8b3c Xcode 13 automatic change 2021-07-24 16:18:10 +10:00
Phil Marell
40c1a39c40 Add .DS_Store to .gitignore 2021-07-24 16:18:10 +10:00
elasota
c27d78d329 Bulk import script early version + StuffIt 5 fixes. 2021-06-30 00:45:53 -04:00