Commit Graph

796 Commits

Author SHA1 Message Date
Diomendius
e2fcd7851d Add UnixUnicodeToolShim.cpp
This is the counterpart to WindowsUnicodeToolShim.cpp for *nix systems.
2024-08-06 00:16:22 +12:00
elasota
7d1e88413f Remove x64 config from AerofoilSDL 2024-08-04 00:55:50 -04:00
elasota
c933e11f5e Fix calling convention in Win32 2024-08-03 23:39:16 -04:00
elasota
09c7619267 Add Win32 config 2024-08-03 23:39:02 -04:00
Diomendius
9aa82066f1 Refactor CMakeLists.txt
The BUILD_INTERFACE generator expression isn't actually useful as we
don't use export(). CMAKE_CURRENT_SOURCE_DIR is also unnecessary as
CMake treats relative paths as relative to the current source directory
(or the current binary directory for outputs).
2024-08-04 12:57:13 +12:00
Diomendius
de3fdeb7b1 Fix double-use of va_list in AppendFmt
AppendFmt calls vsnprintf twice, first to check the size of the
formatted string, then to write it for real, but it used the same
va_list for both calls, so the second call got an invalid va_list after
the first call had already consumed all its arguments.

This is UB and at least on Linux makes the second call print garbage. I
presume Windows implements va_list differently such that this somehow
worked correctly, because on Linux, all of the dialog items get parsed
into invalid JSON due to this bug, with lines like this (note the
missing second array element and closing bracket):
    "pos" : [ -55947262,
2024-08-04 12:57:13 +12:00
elasota
0e1af575ca Fix missing return in error case 2024-08-03 15:51:46 -04:00
Eric Lasota
7a7cc8b0dc Merge pull request #20 from Diomendius/normalize_line_endings
Normalize line endings
2024-08-03 11:38:20 -04:00
Diomendius
1b18a87495 Normalize line endings
This commit contains only the result of `git add --renormalize .`

`git show --ignore-space-change` can verify that this commit only
changes whitespace.
2024-07-31 20:21:47 +12:00
Diomendius
bb7b663daf Add .gitattributes
The line endings of text files in this repo are not consistent and some
files even have mixed line endings, presumably from being edited with an
editor that neither respects a file's existing EOL format nor converts
existing line endings on save.

This commit adds a .gitattributes file to mark most text files as text
in Git, which will cause Git to normalize the line endings in these
files to LF internally and to the format specified by the core.eol
setting for files in the working tree.

This commit only adds .gitattributes and does not change line endings.
The following commit normalizes all line endings for files given the
`text` attribute by this commit.
2024-07-31 20:18:00 +12:00
elasota
ea19e36e7f Bump version to 1.1.6 2024-07-19 19:10:19 -04:00
elasota
9613299717 Update to SDL 2.30.5 2024-07-19 19:10:06 -04:00
elasota
812ef5d377 Update to SDK 34 2024-07-14 00:27:39 -04:00
elasota
02058eba73 Fix incorrect RIFF tag size check on 32-bit systems 2024-02-07 19:08:43 -05:00
elasota
65a6e06ce1 Update Android to API 33, version 1.1.4, add build instructions 2023-09-09 11:17:12 -04:00
elasota
a6d93f8daa Update to VS2022 2023-08-26 14:06:14 -04:00
Eric Lasota
549e1ec3e6 Merge pull request #17 from WickedSmoke/master
Fix Linux build
2023-05-24 22:43:03 -04:00
Karl Robillard
141b176574 AerofoilX: Print missing files to stderr. 2023-05-24 07:40:51 -04:00
Karl Robillard
18a0d3a42a Fix Linux compile errors. 2023-05-24 07:40:45 -04:00
elasota
af6d18829e Fix compile failure on systems where pthread_t isn't a pointer, and possibly also systems where it isn't pointer-sized either 2023-05-21 21:53:18 -04:00
elasota
4182a1a107 Bump version to 1.1.3 2022-06-22 21:31:46 -04:00
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