Commit Graph
36051 Commits
Author SHA1 Message Date
FMS-Cat b457c098d8 comment: fix incorrect comments 2020-10-20 13:24:44 +09:00
FMS-Cat 7d2a70db23 feat (RateModsAffectFGChanges): Actually implemented
I'm trying to transfer the nITG implementation for now
2020-10-20 02:16:02 +09:00
FMS-Cat a6dd6f4ad7 feat (RateModsAffectFGChanges): add a PREFSMAN RateModsAffectFGChanges 2020-10-20 01:38:55 +09:00
Tracy WardandGitHub 6a645b4710 Fix CMake error when configuring with WITH_LIBXTST=NO (#2060) 2020-10-06 13:25:19 -07:00
quietly-turningandGitHub 3968c94782 Merge pull request #2043 from Arusekk/wreturn-type
Fix -Wreturn-type and its undefined behavior
2020-09-15 19:48:15 -04:00
quietly-turningandGitHub 0c85badf30 Merge pull request #2056 from quietly-turning/PacDriveLightOrdering
add preference to change PacDrive light ordering
2020-09-15 00:13:04 -04:00
dinandquietly-turning 771d0a1c7d check pacdrive functions before calling them
Before, if the PacDrive32.dll provided by Ultimarc wasn't found,
stepmania would attempt to write to the Pac-Drive anyway, resulting in a
call on a null pointer.

This adds a quick check against PacDriveConnected during the update, and
checks if the pacdrive functions exist before calling them.
2020-09-14 23:20:56 -04:00
Kevin Turnerandquietly-turning 2f97420f81 Updated light-setting code to use switch statements
I will say, the version of this that didn't have break statements had
way, way more flashy light patterns than the boring, correctly
functioning version of this.

Also, the preference now defaults to "minimaid"
2020-09-11 16:48:07 -04:00
Kevin Turnerandquietly-turning ad2825ba3c Cleaned up if-else code and made pref check case-insenstive 2020-09-11 16:46:07 -04:00
Kevin Turnerandquietly-turning 47d6d82962 Add preference to change PacDrive light ordering
The currently proposed light ordering presents a problem for those who have bought a LumenAR or have followed the OpenITG standard for wiring lights. With this change, the default ordering stays the same, but users have the option to define "openitg" or "lumenar" as their preferred light ordering in Preferences.ini under the newly defined "PacDriveLightOrdering" preference.
2020-09-11 16:45:42 -04:00
quietly-turningandGitHub a02ac246cf Merge pull request #2053 from quietly-turning/sha256
give CryptManager and Lua access to tomcrypt's SHA256
2020-09-09 16:46:35 -04:00
quietly-turning 72cd6edf5c give Lua access to tomcrypt's SHA256
This adds Lua hooks to CryptManager for libtomcrypt's SHA256 hash
function.  It follows along with the C++ patterns Glenn wrote a decade
and a half ago for CryptMananger's MD5 and SHA1 hooks.

StepMania's CMakeProject-tomcrypt file has been updated to build with
sha256 symbols.  Invoking cmake to build with system tomcrypt works fine
as-is.

Note that these functions return binary formatted strings, but themers
can convert to hexadecimal format using the global Lua function
BinaryToHex().
2020-09-09 15:37:01 -04:00
quietly turning fdef606b46 expose RageUtil's BinaryToHex to Lua
The hashing functions that CryptManger currently exposes to Lua
return hash strings formatted in binary.  Themes using those hash
functions may want to compare hex strings.

RageUtil already had a BinaryToHex utility; this commit exposes it
as a global function, following along with other utility functions
in RageUtil.
2020-09-09 15:16:24 -04:00
Tracy WardandGitHub e8725daddd Fix link error on MSVC with lua (#2055)
Lua wasn't actually being built as C++, but SM was being built
as if it was, which caused symbol mismatches.
2020-09-09 13:30:13 -04:00
Arusekk 74331b6b3c Fix -Wreturn-type and its undefined behavior
Silence the following warning message:
src/NotesWriterSM.cpp:260:11: warning: control reaches end of non-void function [-Wreturn-type]

This warning had meaningful implications for some reason.
When I compiled the current version with stack protector enabled,
GCC optimized out successful return from the function, and encouraged
undefined behavior far less intuitive than an unspecified value.

Whenever saving a steps file on a -DCMAKE_BUILD_TYPE=Release build,
the game printed a message about stack protection violation,
and aborted itself, even though no violation took place.

GCC version:
gcc (Gentoo 10.2.0 p1) 10.2.0
2020-07-28 21:43:07 +02:00
quietly-turningandGitHub 1c869edab5 Merge pull request #2035 from bkirz/catalina-workaround
Reapply macOS Catalina Workarounds
2020-07-05 03:45:40 -04:00
Ben Kirzhner b959bcfc39 Merge branch '5_1-new' into catalina-workaround 2020-07-04 21:49:03 -07:00
quietly-turningandGitHub 3b9edd73d1 Merge pull request #2033 from RhythmLunatic/mainline-2
Add example courses and fix typo in Jupiter
2020-07-04 14:52:12 -04:00
RhythmLunatic a942ed628b remove forced noteskins course, it doesn't work 2020-07-04 13:27:22 -05:00
RhythmLunatic 4300e37dff Add example courses and fix typo in Jupiter 2020-07-04 13:24:19 -05:00
Colby Klein 39d516f6de simplified FTOC for aarch64
this isn't actually a good solution, really RageVColor shouldn't be
doing this conversion at all and should be refactored/removed.

this gets gameplay running a bit smoother, much closer to holding 60fps
2020-06-27 09:54:58 -07:00
quietly-turningandGitHub 7b4e4f81d0 Merge pull request #1886 from mwkroening/tomcrypt-header
Use correct tomcrypt headers
2020-06-25 22:24:13 -04:00
quietly-turningandGitHub 2b11f88b81 Merge branch '5_1-new' into tomcrypt-header 2020-06-25 21:53:21 -04:00
quietly-turningandGitHub 135dc0ddab Merge pull request #2026 from quietly-turning/more-Luadoc-updates-take2
More Luadoc Updates
2020-06-25 06:25:11 -04:00
quietly-turning df07b4c649 update Version, Date in Lua.xml
These elements are normally automatically updated when a new Lua.xml is
generated using the --ExportLuaInformation command line argument, but
I've manually updated them here.  It works for now.

Running --ExportLuaInformation will generate a new Lua.xml file with
everything available to Lua, including some repetitively-named functions
ported from notitg that were manually condensed down within Lua.xml.

We want to keep these condensed parts, so ExportLuaInformation should
probably be fixed/replaced in the future.
2020-06-25 05:14:11 -04:00
quietly-turning 4635973799 add grouping attr to Class elements in LuaDoc
These "grouping"s aren't part of the spec in Docs/Luadoc/Lua.xsd, so
they won't appear when Lua.xml is viewed in a web browser, but can still
be used by external API doc applications until ExportLuaInformation is
improved.
2020-06-25 05:10:25 -04:00
quietly-turning 5574113d63 tidy preformatted code examples in LuaDoc 2020-06-25 05:06:16 -04:00
quietly-turning 91bf61a178 update LuaDocs for Classes
Fix, clarify, and expand prose in LuaDocumentation.xml for classes made
available to Lua.

Add elements for DeviceList, InputList, Quad, and SongMeterDisplay to
Lua.xml.
2020-06-25 04:55:13 -04:00
quietly-turning d62797973f update LuaDocs for Singletons, Enums for 5.1-new 2020-06-25 04:49:09 -04:00
quietly-turning 7804efb103 update GlobalFunctions prose in LuaDocumentation
Expand and clarify the prose for many gloabl Lua functions described in
in LuaDocumentation.xml.

Get Lua.xml's GlobalFunctions listing current with 5_1-new.  Remove old
global functions (those moved to 5.1's "legacy" theme) from Lua.xml.
2020-06-25 04:24:24 -04:00
quietly-turning c57279f6b8 allow <pre> HTML elements in Luadoc via Lua.xsd
MDN's web docs describe the "HTML <pre> elements represents preformatted
text which is to be presented exactly as written in the HTML file."

It's handy for formatting multiline code examples in
LuaDocumentation.xml.
2020-06-25 03:58:57 -04:00
quietly-turningandGitHub 89229ed915 Merge pull request #1855 from mwkroening/gtk3
Upgrade to gtk3
2020-06-24 17:49:14 -04:00
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öningandGitHub bfc167fe6d Replace libpng submodule with source (#2023)
* Replace libpng submodule with source

Taken from 505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca  libpng-1.6.37.tar.xz

* Remove submodule-related config from CI
2020-06-23 15:41:52 -07:00
quietly-turningandGitHub 1f1fa3c2a9 Merge pull request #1854 from mwkroening/libpng
Upgrade libpng to v1.6.37
2020-06-23 16:53:13 -04:00
Seán de BúrcaandMartin Kröning 6649a116ed Update gtk+ LoadingWindow to use gtk3 2020-06-21 23:31:02 +02:00
Martin KröningandMartin Kröning 43ecbf918b Use standard tomcrypt header 2020-06-21 22:55:00 +02: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öningandMartin Kröning d4caf2c8f8 Replace in-tree libpng 1.5.10 src with submodule at tag v1.5.30 2020-06-20 12:35:04 +02:00
quietly-turningandGitHub 1aaebaa712 Merge pull request #1882 from mwkroening/keep-line-endings
Don't enforce line endings
2020-06-19 15:14:59 -04:00
quietly-turningandGitHub cf945e3af3 Merge pull request #1884 from mwkroening/include-png
Only add bundled inc dirs, when using bundled libs
2020-06-18 22:17:01 -04: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
quietly-turningandGitHub 3023bb90d1 Merge pull request #2020 from mwkroening/jsoncpp-ci
CI: Test system jsoncpp
2020-06-18 16:05:15 -04:00
Martin Kröning 4ef5078b2d CI: Test system jsoncpp 2020-06-18 21:56:58 +02:00
quietly-turningandGitHub 1e5cbe1324 Merge pull request #1889 from mwkroening/extract-jsoncpp
Remove custom functions from jsoncpp headers
2020-06-18 15:40:14 -04:00
Martin Kröning f075d6a617 JsonUtil: Adapt functions to vanilla jsoncpp 2020-06-18 20:56:40 +02:00
Martin Kröning 76f805fe9c jsoncpp: Reset existing files to svn-release-0.5.0 2020-06-18 20:35:17 +02:00
quietly-turningandGitHub 0d44b8c7f9 Merge pull request #2012 from Arusekk/backtrace-sigbus
Unix backtrace call detection
2020-06-18 00:54:17 -04:00