Commit Graph
4951 Commits
Author SHA1 Message Date
Colby Klein 6c48eb3d5c Fix compile on raspberry pi 4/A72
Game runs pretty close to fine, needed to use system libpng and haven't
attempted to use ffmpeg, however.

I'm seeing in the 50fps range in gameplay with no performance tweaks
but having set -mtune=cortex-a72. There's a lot of perf opportunities,
so consistent 60 is certainly within reason without too much pain.
2020-06-23 16:58:00 -07:00
Martin Kröning 7ecc7b262b Upgrade libpng to tag v1.6.37
gtk_image_new_from_file results in a segmentation fault with the new version.
2020-06-20 12:37:56 +02:00
Martin KröningandMartin Kröning 37e60ffc97 Adjust to vanilla libpng 2020-06-20 12:35:04 +02:00
Martin Kröning 092cffa182 Find system jsoncpp via pkg-config, add system include 2020-06-18 23:27:12 +02:00
Martin KröningandMartin Kröning 960c57c4f3 Only add bundled inc dirs, when using bundled libs
Fixes #1881
2020-06-18 22:36:02 +02:00
Martin Kröning f075d6a617 JsonUtil: Adapt functions to vanilla jsoncpp 2020-06-18 20:56:40 +02:00
Arusekk 46f3e8aa9d Unix backtrace call detection
If the supposed return address is a pointer to the beginning of an
executable page, and the page before is an oversized file mapping,
like vvar before vdso, the backtrace would be terminated by SIGBUS.

To avoid this, check not for readable, but for executable instead.
2020-06-17 10:04:54 +02:00
Martin Kröning 98e1a20cc3 Don't disable exceptions on macOS 2020-06-13 23:36:10 +02:00
Martin Kröning 67bce17382 Extract logic to NoteDataUtil::StringInterpretsAs 2020-06-13 23:36:10 +02:00
Martin KröningandMartin Kröning dc25295879 Catch stoi invalid_argument in BGCHANGES 2020-06-13 23:35:33 +02:00
Martin Kröning 10e3a2f2e8 Don't cast doubles to enums
C:\Repos\StepMania\src\Grade.cpp(56): error C2440: 'type cast': cannot convert from 'double' to 'Grade' [C:\Repos\StepMania\Build\src\StepMania.vcxproj]
  C:\Repos\StepMania\src\Grade.cpp(56): note: Conversions between enumeration and floating point values are no longer allowed
2020-06-13 15:40:50 +02:00
RhythmLunatic b300bb516d Format it like the other lines 2020-06-12 15:21:08 -05:00
RhythmLunatic 0befd8bf10 Write description tag to cache 2020-06-12 15:19:26 -05:00
quietly turning 3ba2b8ba54 fix Course.cpp for 5_1-new
random_up_to() was written for SM5.2 and RageUtil's RandomInt() seems
a suitable replacement for 5_1-new.
2020-06-07 20:09:37 -04:00
Jonathan Albertandquietly turning f49229809d Minor fixes 2020-06-07 20:07:49 -04:00
Jonathan Albertandquietly turning 1e6b0d7f35 Fix trail generation in endless mode courses 2020-06-07 20:07:17 -04:00
Jonathan Albertandquietly turning 3bb1045ce1 Fix crash when getting matching steps in endless courses 2020-06-07 20:01:08 -04:00
Jonathan Albertandquietly turning ff75af1f20 Fix song selection in trail generation (for nonstop/oni) 2020-06-07 20:00:32 -04:00
quietly-turningandGitHub 42f989b684 Merge pull request #1923 from eliask/fix-lrc-parsing-crash
Fix LRC parsing crash for unrecognized values
2020-06-06 00:11:45 -04:00
Richard Loxley 9ab72f4fb5 Fix issue 2005: incorrect announcer sound files are played on the evaluation screen if the current theme doesn't have exactly 7 grade tiers.
This change maps the new grade tiers evenly to the 7 old grade tiers to trigger the correct sound files.
It also extends that mapping to the grade tiers used for playing cheering for the top few tiers.
2020-06-04 16:40:28 +01:00
RhythmLunatic 12e983ba51 add GetCurrentSections 2020-05-26 22:36:53 -05:00
Marshall Polaris a10f16cb3c Log errors while reading joystick input 2020-05-15 21:24:16 -07:00
din 653e8ff6fe Small memory fixes. 2020-05-14 16:19:23 -05:00
din e799b292da ITGIO Support for Linux 2020-05-08 19:49:40 -05:00
aeubanksandGitHub bbafb49b3a Don't force libc++ with clang (#1984)
Clang works with libstdc++.
2020-04-30 13:24:58 -07:00
aeubanksandGitHub e16017bd1a Clean up InputHandler_SextetStream (#1985)
Before, this ended up calling a virtual method in the constructor,
which C++ does not allow, and I got weird crashes.

This removes a lot of unused code and gets rid of unnecessary abstractions.
2020-04-30 13:24:23 -07:00
teejusb 620ef3609d Revert to use std::strtof insted of std::stof to make travis happy 2020-04-08 22:41:19 -07:00
teejusb 1d365fbc18 Fix float parsing errors 2020-04-08 22:01:16 -07:00
quietly-turningandGitHub caf2f6522e Merge pull request #1960 from Prcuvu/texture_font_generator_fix
Fix Texture Font Generator for Windows x64 build
2020-02-13 14:46:05 -05:00
quietly-turningandGitHub 2b1de03fbb Merge pull request #1958 from Prcuvu/split_zh_language
Split Chinese language into two different locales based on Simplified or Traditional script
2020-02-13 14:40:35 -05:00
x0rblandGitHub 0b34a0df3a Fix crash with AllowMultipleHighScoreWithSameName (#1963) 2020-02-12 06:10:28 -08:00
x0rblandGitHub 50de3a1f2d Fix two disqualification bugs: C-mods and rate mods now properly disqualify (#1965) 2020-02-11 12:15:16 -08:00
Prcuvu 360db59e0d Fix Texture Font Generator for Windows x64 build 2020-02-11 01:46:29 +08:00
Prcuvu b38377403e Add LOG->Warn on fallback to English, for consistency on all platforms 2020-02-08 17:08:25 +08:00
Prcuvu 2baade1dd7 ArchHooks modified for macOS 2020-02-08 17:03:27 +08:00
Prcuvu d893c84b7b ArchHooks modified for Unix 2020-02-08 16:08:02 +08:00
Prcuvu de4dc62846 Split Chinese language into Simplified script and Traditional script
ArchHooks function modified for Windows.
2020-02-08 15:46:00 +08:00
Prcuvu 532c430d8f Fix XInput library linkage for compatibility down to Windows Vista 2019-12-31 16:04:17 +08:00
tertuandGitHub 3716e8ae56 Merge pull request #1947 from Prcuvu/lua_error
Force Lua to be compiled as C++ code when using MSVC
2019-12-29 18:13:00 -06:00
quietly-turningandGitHub 49b99e702c Merge pull request #1941 from dwmh/5_1-new
Fix leftover macro loop in JACK sound driver
2019-12-23 05:54:01 -05:00
Prcuvu 123b01930e Force Lua to be compiled as C++ code when using MSVC
The setjmp/longjmp error handling mechanism may fail with Microsoft C++ since
they utilize the same stack-unwinding mechanism with C++ exception handling.
Lua calling longjmp after luaD_rawrunprotected returns causes unpredictable
behaviour. On Windows x64 build, this causes lua_error to crash the whole
StepMania program.

Lua provides the same macros to utilize C++ throw/catch, which effectively
solve the problem. Just specify Lua library as C++ code to enable them.

Reference: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/longjmp
2019-12-22 18:38:07 +08:00
dinsfire64 95122bbccb restore autogen lights 2019-12-16 20:44:02 -06:00
Matias Hilden cb10b61d34 fix leftover macro loop in JACK sound driver 2019-12-08 13:52:07 +02:00
Martin NatanoandColby Klein c5096d24de Update vertex count stats when drawing smooth lines (OGL) (#1932)
The statistics are updated in the generic codepath, which is not used by
RageDisplay_Legacy::DrawLineStripInternal() when rendering smooth lines.

Note, that the output vertex count can differ a lot between smooth lines
(2) and non-smooth lines (~38 output vertices per input vertex), so
updating the statistics can not be done in RageDisplay::DrawLineStrip()
like it is donw for the other draw functions.
2019-11-14 12:40:35 -08:00
Martin NatanoandColby Klein 7dae1384e6 Sort input devices on Linux (#1926)
* Remove unused function

* Sort input devices on Linux

The readdir() function doesn't guarantee any specific ordering, so the
numbers of joysticks might change when restarting StepMania.
(Empirically this usually only happens after a reboot.)

Let's sort the input devices alphabetically before opening them to have
more consistent numbering and avoid annoying remapping of controllers.
2019-10-29 08:05:29 -07:00
Elias KunnasandColby Klein 0bd2365ebc Use libXtst again with CMake (#1908)
* Use libXtst again with CMake

It seems that Xtst was never used after the transition to CMake.

This is related to https://github.com/stepmania/stepmania/issues/1902.

* Travis: install libxtst-dev
2019-10-24 08:22:42 -07:00
Elias Kunnas 1099c8297a Fix LRC parsing crash for unrecognized values 2019-10-23 20:54:14 +03:00
Prcuvu 333abe5934 Upgrade to libtomcrypt 1.18.2 2019-10-15 17:43:01 +08:00
Tracy WardandGitHub 81ce0e94d9 Merge: Windows x64 build support (#1899) 2019-10-13 15:56:04 -04:00
Tracy WardandGitHub a5a4bb5827 Add support for Raw Thrills I/O (DDR X2 US cabinets) on Windows (#1894) 2019-10-13 03:59:35 -04:00