Commit Graph
5123 Commits
Author SHA1 Message Date
Brian Phlipot 37aff00d6e Require C++20 for building Stepmania. 2022-10-03 16:21:19 -07:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
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 1010798e26 Update logo 2022-06-29 21:15:43 +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
tertu marybig 9b348090a7 HyperShuffle implementation
Also add it to _fallback
2022-06-23 11:09:40 -07:00
teejusb 7d88febd51 Switch to loading the PacDrive64.dll + Update Default 2022-06-21 12:22:29 -07:00
SheepyChris 95a07e6803 Add line labels to definition of default video card settings 2022-06-18 11:43:33 -07:00
SheepyChris 25ae3c07f5 Update default Graphics settings 2022-06-18 11:43:33 -07:00
teejusb 8f12a5c45c NotesLoaderSSC - Add empty string check before parsing #DISPLAYBPM, preventing crash on malformed step data 2022-06-12 21:21:20 -07: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
Ivana Kellyerova 96d9d87325 Prevent same player from late joining 2022-06-12 10:03:33 -07:00
Ivana Kellyerova 02b9925b12 Allow ScreenSelectProfile to Finish() with guest players
Passing a -3 as profile index to ScreenSelectProfile's SetProfileIndex now
allows a player to play without having a local or USB profile assigned.

Also adds a message (PlayerProfileSet) that's broadcast anytime a player selects
a profile or chooses to play as a guest and subscribes ScreenSelectMusic to it.
2022-06-11 22:53:07 +02:00
Martin Natano 64b4676a14 Add WITH_CLUB_FANTASTIC build option 2022-06-11 13:43:03 +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 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 b02f565f08 Add release build scripts for all platforms 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 f47ea91e0a Stop looking for bundled libraries 2022-06-07 10:54:10 +02:00
teejusb 8612d34283 Prevent hanging when going into "Graphics Options"
Remove calls to ChangeDisplaySettingsEx(CDS_TEST). This prevents an an alarming system hang on NVIDIA GPUs with DisplayPort displays when using "Graphics Options" in the system menu, and doesn't seem to have any downsides as far as I can tell.

Taken from: https://github.com/ClubFantastic/stepmania/commit/46061f818d020138eff80ba5785e0ea88cd68dfd
2022-06-06 11:23:49 +02:00
teejusb 66f0644c15 Add RateModPreservesPitch option to _fallback/engine 2022-06-06 11:21:28 +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
teejusb 15c13ed7df Set default editor noteskin to cel 2022-06-05 18:23:08 -07:00
Martin Natano f14b8e4666 Fix mac build (ddrio) 2022-06-05 21:53:31 +02:00
din d694560e63 drio dll support for win32. 2022-06-05 20:56:47 +02:00
Martin Natano 4d76e59e93 Disable unsupported game modes 2022-06-05 19:35:28 +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 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 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 06154a0094 Upgrade libjpeg 8c -> 9e 2022-05-30 23:57:33 +02:00