Commit Graph
100 Commits
Author SHA1 Message Date
Martin Natano 55cdb3cf24 Replace std::stof with StringToFloat
std::stof throws an exception on invalid input causing a crash.

fixes https://github.com/itgmania/itgmania/issues/50
2022-07-23 19:56:38 +02:00
Martin Natano 1b959d6762 Use type switch in JsonEncode
lua_isnumber and lua_isstring try to coerce the values to their
respective type, so a type switch is more reliable.

Fixes https://github.com/Simply-Love/Simply-Love-SM5/issues/406
2022-07-04 20:24:22 +02:00
Martin Natano 1013d4c9e8 Update macos app icon 2022-06-29 21:26:52 +02:00
Martin Natano 1010798e26 Update logo 2022-06-29 21:15:43 +02:00
Martin Natano 61046ca539 Updates from quietly for lua docs 2022-06-29 19:11:05 +02:00
Martin Natano 61f12e8165 Prevent out-of-bounds array access
Fixes https://github.com/itgmania/itgmania/issues/27
2022-06-27 20:10:52 +02:00
Martin Natano da4a41c296 Update license info 2022-06-13 21:48:36 +02:00
Martin Natano e2a48eb726 Update SL 2022-06-12 23:31:44 +02:00
Martin Natano 742a3c1c26 Fix ScreenSelectProfile::Finish()
Unload all profiles first, so we don't end up in a situation where two
players might have the same profile assigned during iteration.
2022-06-12 23:02:25 +02:00
Martin Natano 0e08823896 Lowercase noteskin names 2022-06-12 10:13:37 +02:00
Martin Natano de3f5622e8 Update SL again 2022-06-11 23:41:57 +02:00
Martin Natano 35bc6b8775 Update credits 2022-06-11 23:38:52 +02:00
Martin Natano dd28929c88 Update SL 2022-06-11 23:13:13 +02:00
Martin Natano 64b4676a14 Add WITH_CLUB_FANTASTIC build option 2022-06-11 13:43:03 +02:00
Martin Natano d41e2b0c7d Remove noteskins for unsupported game modes 2022-06-10 22:45:05 +02:00
Martin Natano 68db74296b Update license info in README.md 2022-06-10 22:36:24 +02:00
Martin Natano f60707b506 Add support for incremental updates to ScreenReloadSongs 2022-06-10 19:33:23 +02:00
Martin Natano 49127f6a92 Remove RageUtil_CachedObject
I don't notice any performance drawback in gameplay, but it was
massively slowing down ScreenReloadSongs.
2022-06-10 19:33:23 +02:00
Martin Natano 62f8ed5c5c Always allow fast load when reloading 2022-06-10 19:33:23 +02:00
Martin Natano 34e91bf118 Remove unused base._ini 2022-06-09 21:16:42 +02:00
Martin Natano 463ad58e91 Make sure SM profiles are loaded from USB
This changes the defaults to this:
MemoryCardProfileSubdir=ITGmania
MemoryCardProfileImportSubdirs=StepMania 5.1;StepMania 5
2022-06-09 18:30:56 +02:00
Martin Natano 551e6344f7 Remove hidden autoplay 2022-06-08 20:12:57 +02:00
Martin Natano cb3cf0ab95 Fix playeroptions:GetDisabledTimingWindows() 2022-06-08 18:06:52 +02:00
Martin Natano 9208afee2e Fix disabled timing window formatting 2022-06-08 17:53:52 +02:00
Martin Natano 529fb4b816 Translate deprecated Additional*Folders to Additional*FoldersWritable 2022-06-08 12:57:07 +02:00
Martin Natano 2e8f906aa8 Return AVERROR_EOF in case of EOF to prevent game freeze 2022-06-08 12:13:51 +02:00
Martin Natano 061c35d108 Update license text
We don't ship the SM5 songs with the full release, so don't talk about
them in the installer license text.
2022-06-08 10:03:39 +02:00
Martin Natano b02f565f08 Add release build scripts for all platforms 2022-06-07 22:49:05 +02:00
Martin Natano 6f0aa8adf9 Update SL 2022-06-07 22:49:05 +02:00
Martin Natano c40985122e Remove workarounds for ancient MSVC versions 2022-06-07 22:49:05 +02:00
Martin Natano 838de6fb81 Remove support for mingw
MSVC works fine and the bundled mingw libraries are outdated.
2022-06-07 22:49:05 +02:00
Martin Natano 087d4576cc Use cmake standard mechanism for finding dlopen 2022-06-07 22:49:05 +02:00
Martin Natano 1da34b9ba2 Remove WITH_TTY build option
TTY input doesn't seem very useful and the code is broken (requires SDL,
which is not picked up by cmake). The option was disabled by default
too. I doubt anyone is using this.
2022-06-07 22:49:05 +02:00
Martin Natano 258fd61229 Use mbedtls on all platforms & bundle root CAs
Certificate bundle downloaded from https://curl.se/docs/caextract.html.
It is licensed under the MPL 2.0.
2022-06-07 10:54:10 +02:00
Martin Natano 58dd83db8a Disable vaapi
One less dependency to worry about and ffmpeg works fine without it.
2022-06-07 10:54:10 +02:00
Martin Natano f47ea91e0a Stop looking for bundled libraries 2022-06-07 10:54:10 +02:00
Martin Natano 740ead25bf Universal binaries break input monitoriing on M1
Let's build two separate apps for arm64 and x86_64. Sigh
2022-06-06 11:19:59 +02:00
Martin Natano f14b8e4666 Fix mac build (ddrio) 2022-06-05 21:53:31 +02:00
Martin Natano 4d76e59e93 Disable unsupported game modes 2022-06-05 19:35:28 +02:00
Martin Natano 6c5bb5f665 Update Lua.xml 2022-06-05 15:52:14 +02:00
Martin Natano b0665a5135 Add din to credits 2022-06-05 12:07:38 +02:00
Martin Natano ed4090e2ba Enable asm optimizations for ffmpeg on macOS 2022-06-05 12:04:37 +02:00
Martin Natano 3eb239ad3b Replace deprecated macOS APIs with modern equivalents 2022-06-05 12:04:37 +02:00
Martin Natano 5f9f0608c2 Replace forced null pointer assignment with abort()
Gets rid of this warning:

  error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
2022-06-05 12:04:37 +02:00
Martin Natano 699ef6fdbe Fix incorrect formatting
Gets rid of this warning:

  error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
2022-06-05 12:04:37 +02:00
Martin Natano 228920e7dc Stop using deprecated jsoncpp method
Gets rid of this warning:

  error: 'memberName' is deprecated: Use `key = name();` instead. [-Werror,-Wdeprecated-declarations]
2022-06-05 12:04:37 +02:00
Martin Natano 3aebf60410 Remove redundant max() calls
This silences warnings like this:

    error: taking the max of a value and unsigned zero is always equal to the other value [-Werror,-Wmax-unsigned-zero]
2022-06-05 12:04:37 +02:00
Martin Natano 7b9a799cdb Statically link MSVC runtime 2022-06-03 19:47:45 +02:00
Martin Natano 4de9bd7c7f Fix mine fix :)
The song timing was used for the calculations, but the steps timing should be used instead because of split timing.
2022-06-03 14:36:24 +02:00
Martin Natano 2fc8705f45 Force dead code elimination for libtommath 2022-05-31 18:21:35 +02:00
Martin Natano 327278436d Remove support for building with system libraries 2022-05-31 18:21:35 +02:00
Martin Natano 5f08636ad0 std::binary_function is deprecated and unnecessary in C++11 2022-05-31 12:55:03 +02:00
Martin Natano f83dd1989d Move libtomcrypt to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 967ff91cc6 Upgrade libtommath unknown version from 2010 -> 1.2.0 and move to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 9723a67ad7 Upgrade pcre 4.5 -> 8.45 2022-05-30 23:57:33 +02:00
Martin Natano d112fdd1d2 Rename libmad directory 2022-05-30 23:57:33 +02:00
Martin Natano 06154a0094 Upgrade libjpeg 8c -> 9e 2022-05-30 23:57:33 +02:00
Martin Natano e2ee97e36d Update github CI for submodules 2022-05-30 23:57:33 +02:00
Martin Natano 2934af7784 Upgrade glew 1.5.8 -> 2.2.0 2022-05-30 23:57:33 +02:00
Martin Natano 2bb9124c72 Clean up build system 2022-05-30 23:57:33 +02:00
Martin Natano 7d29ee308d Upgrade vorbis 1.3.6 -> 1.3.7 and move to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 1a44af0cf4 Upgrade ogg 1.3.2 -> 1.3.5 and move to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 1764dbcea8 Move libpng to submodule 2022-05-30 23:57:33 +02:00
Martin Natano b6620d50ed Move ffmpeg to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 3d05e523c8 Upgrade zlib 1.2.11 -> 1.2.12 and move to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 7f06ca703d Upgrade IXWebSocket 11.3.2 -> 11.4.3 and move to submodule 2022-05-30 23:57:33 +02:00
Martin Natano 08896f0cc1 Add SM5 migration guide 2022-05-28 11:21:13 +02:00
Martin Natano 15b77ee278 Update documentation 2022-05-28 11:21:13 +02:00
Martin Natano be0dee1402 Remove SM5 songs course 2022-05-28 11:21:13 +02:00
Martin Natano c36ac09ce0 Remove Manual
It is incomplete and outdated. There are better resources out there.
2022-05-28 11:21:13 +02:00
Martin Natano d8586b02b2 Add NETWORK:WebSocket() 2022-05-27 23:42:37 +02:00
Martin Natano cb037494fc Correct capitalization of ITGmania folder in macOS dmg 2022-05-27 23:42:37 +02:00
Martin Natano b9171d4892 Fix ffmpeg target OS version on macos 2022-05-24 14:56:02 -07:00
Martin Natano 07e422111c Tweak app bundle 2022-05-24 12:39:55 -07:00
Martin Natano e77357a75e ITGmania credits 2022-05-23 21:49:42 +02:00
Martin Natano ee65b7b0c4 Replace logo and clean up packaging 2022-05-21 10:05:44 +02:00
Martin Natano f5682cfdac Bundle Club Fantastic song packs in full releases 2022-05-21 10:05:44 +02:00
Martin Natano b6cc8f90fc Align defaults with SL recommendations 2022-05-11 22:31:37 +02:00
Martin Natano b2e60fa48b Bundle Simply Love as the default theme 2022-05-11 21:59:06 +02:00
Martin Natano 2ce8bcea76 Remove SM5 default theme 2022-05-11 21:59:06 +02:00
Martin Natano d54bc6857f Prevent access to /Save/Preferences.ini from lua
Directly writing to the file would circumvent preference protections,
compromising security.
2022-05-07 23:53:58 +02:00
Martin Natano b9ebbd32a9 Build universal binary on macOS 2022-05-02 21:23:48 +02:00
Martin Natano b039be360c Fix subdomain matching 2022-05-01 17:33:52 +02:00
Martin Natano f7d8408fc2 Add support for subdomain wildcards to HttpAllowHosts 2022-05-01 13:16:14 +02:00
Martin Natano 6cd4ac88c3 Fix error reporting when opening the download file fails 2022-05-01 10:42:28 +02:00
Martin Natano 07e8abf380 Generate downloads folder in portable mode 2022-05-01 10:27:30 +02:00
Martin Natano 9cf66ae643 Update ffmpeg 2.1.3 -> 5.0.1
Old ffmpeg has a lot of vulnerabilities that have been fixed in newer
versions, see https://www.cvedetails.com/vulnerability-list/vendor_id-3611/Ffmpeg.html.
2022-04-30 23:22:52 +02:00
Martin Natano 692310a0e4 Tweak defaults for the HTTP preferences
Connections to GrooveStats are now allowed by default.
2022-04-13 21:56:04 +02:00
Martin Natano 3ca3bb0773 Fix macOS build 2022-04-11 14:50:00 -07:00
Martin Natano 4c0aef69dd Remove legacy network code 2022-04-11 14:50:00 -07:00
Martin Natano f1e3e4d519 Remove the 'home' and 'legacy' themes 2022-04-11 14:50:00 -07:00
Martin Natano 7f31fd59e8 Remove unused appveyor and travis files 2022-04-11 14:50:00 -07:00
Martin Natano 5019625aaf Remove unused extern cmake project 2022-04-11 14:50:00 -07:00
Martin Natano 28b53ae79e Remove unused build option 2022-04-11 14:50:00 -07:00
Martin Natano dbef16945f Remove unused SDL dependency 2022-04-11 14:50:00 -07:00
Martin Natano 7d2d74fa19 Remove unused cmake files 2022-04-11 14:50:00 -07:00
Martin Natano f710aaf67f Always include full version number in ProductVersion() 2022-04-08 21:55:49 +02:00
Martin Natano 2586eec53f Update lua docs 2022-04-06 21:13:16 +02:00
Martin Natano 54ddcb9df8 Update README.md, round 1 2022-04-03 23:00:40 +02:00
Martin Natano 724b880dfa ITGmania 2022-04-03 22:25:01 +02:00