teejusb
53dcbed80d
Revert "Change some RString methods to free functions"
2025-06-22 23:31:56 -07:00
Arthur Eubanks
995f0ea8c1
Change some RString methods to free functions
...
These ones aren't a std::string method. Doing this helps the RString to
std::string migration.
2025-05-17 14:02:12 -07:00
Arthur Eubanks
ecfcb11a00
Remove implicit conversion operator from RString to const char*
...
This is required for the RString to std::string migration.
Mostly automated from https://github.com/aeubanks/rewriter/blob/main/c_str.cc , with some manual intervention required for fixing up `a + b.c_str()` to `(a + b).c_str()`.
Added some overloads for some common global functions like sm_crash to reduce the number of changes required here.
2025-05-15 21:14:54 -07:00
teejusb
385ac061c0
Remove extra Log
2025-03-22 12:02:04 -07:00
Crash Cringle
0270cda54d
Add additional NULL checks just in case
2025-03-22 12:02:04 -07:00
Crash Cringle
ce7cef6d90
Only check for songs if we're using a memory card
2025-03-22 12:02:04 -07:00
Crash Cringle
7d5a62a537
Add Group() for USB songs
2025-03-22 12:02:04 -07:00
Crash Cringle
5abaf5318a
Move group into its own class, add Credit and AuthorsNotes fields, Begin exposing methods to lua
2025-03-03 23:25:32 -08:00
Crash Cringle
1aa44cacb6
Rename Pack -> Group for consistency. Remove leftover logging and extra lines from debugging.
...
Misc patches via PR review.
2025-03-03 23:25:32 -08:00
Crash Cringle
798201cce4
Add Pack Offset and Group Banners to pack.ini, Remove debug logging
2025-03-03 23:25:32 -08:00
Crash Cringle
5e6f3378a8
Thrown together Initial working implementation of pack.ini
...
# Conflicts:
# src/MusicWheel.cpp
2025-03-03 23:25:32 -08:00
sukibaby
659cd549a2
Remove std prefix from uint types
...
std::uint* -> uint*
2024-10-05 19:25:41 -07:00
sukibaby
e0b254968d
std::size_t -> size_t
...
Removing std prefix from all size_t.
2024-10-01 01:46:26 -07:00
48productions
204ac4b643
Automatically create Songs folder on Memory Cards
2023-12-13 08:53:08 -08:00
Martin Natano
bacecae1f7
Decouple <vector>
2023-04-21 22:13:41 +02:00
Martin Natano
aa87f85eef
Decouple <cstdint>
2023-04-21 22:13:41 +02:00
Martin Natano
78fb2e9fc3
Decouple <cstddef>
2023-04-20 11:21:29 +02:00
Crash Cringle
f60c1c7f82
Add new Sorting Capabilities for Profile list
2023-03-13 19:56:07 -07:00
Brian Phlipot
d079940fea
Address PR feedback.
2023-02-02 11:54:17 -08:00
Brian Phlipot
4a6b1a743c
Enable more compiler warnings and treat them as errors.
2023-02-02 11:54:17 -08: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
65e859d6c5
Increase Stats.xml file size limit to 100MB
...
A lot of people have run into the previous ~10MB limit and increasing it
to 100MB doesn't seem to break anything.
I left a limit in place, so that excessively large Stats.xml files on a
USB profile can't be used to make a cab run out of memory. (SM uses a
multiple of the memory that is required for the file on disk.)
2021-08-23 22:19:34 +02:00
Gareth Francis
aeb5c7598f
Handle exceptions in int conversions ( #2092 )
...
* RageUtil: Add exception-safe wrappers around std::stoi, stol, stoll
* Replace use of std::stoi with exception-safe StringToInt
2021-02-15 12:36:51 -08:00
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Kyzentun
2aee27a276
Backport custom song support. Prefs are CustomSongsEnable, CustomSongsMaxCount, CustomSongsLoadTimeout, CustomSongsMaxSeconds, CustomSongsMaxMegabytes. Metrics are NumProfileSongGroupColors and the colors with it. Profile custom load function is passed PlayerNumber now. Stepmania must run as root to save USB profile scores. ( #1470 )
2017-06-06 05:30:06 -07:00
Colby Klein
b4e02821e8
Revert "Improve handling of errors in lua functions and speed up calls. ( #1427 )"
...
This reverts commit f10e3ae36a .
(it was a joke PR, do not fear)
2017-04-04 17:21:55 -07:00
Kyzentun
f10e3ae36a
Improve handling of errors in lua functions and speed up calls. ( #1427 )
2017-04-04 11:36:23 -07:00
Kyzentun Keeslala
75daad9d43
Fix bug that cleared display name and other editable profile fields when the stats prefix is changed.
2016-03-17 20:24:34 -06:00
Kyzentun Keeslala
88227dd610
Added stats prefix feature to ProfileManager for managing scores that need to be separated.
2016-03-15 18:13:53 -06:00
Jason Felds
80542a5a7d
Require reasons for checkpoints.
2015-06-08 18:37:13 -04:00
Kyzentun
c905965aca
Added Profile:GetTotalDancePoints.
2014-12-18 22:41:19 -07:00
Kyzentun
23fca56582
Fixed Profile swap by making it walk the arrays so that Visual Studio's std swap won't choke on it.
2014-12-14 17:56:05 -07:00
Kyzentun
49b8f77a3e
Merged changelog.
2014-12-08 16:08:49 -07:00
Kyzentun
4f95bf08ad
Function chaining for actors and singletons.
2014-12-01 22:31:30 -07:00
Kyzentun
b43af6dce9
Added Guest and Test profile types, and profile priorities so the position of a profile in the list can be controlled. Fixes crash bug that occurs when a profile dir is renamed to a non-number and a new profile is made.
2014-11-28 21:56:25 -07:00
Kyzentun
a580d54662
Profile loading no longer clears out scores for songs that can't be found. Profile merging functions added to ProfileMan and ScreenManageProfiles for profile migration. HighScore operators rewritten to follow good practice.
2014-11-25 21:37:15 -07:00
freem
ab4cceff31
explicit float postfix added to some numbers in order to get visual studio to shut up
2014-08-02 00:38:50 -07:00
Kyzentun
a74a49af78
Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError.
2014-08-02 00:38:18 -07:00
Kyzentun
95fe1a17e9
Replaced every use of lua_call with RunScriptOnStack. Modified RunScriptOnStack to report an error to log and system message using a passed in context string. Modified every use of RunScriptOnStack to avoid crashing so that the reported error can be seen.
2014-08-02 00:38:17 -07:00
Kyzentun
9a9da05cfb
Added doc explaining what a theme needs to support heart rate calorie calculation.
2014-07-01 02:21:24 -06:00
Kyzentun
947479f154
Added heart rate based calorie counting method to Profile as an alternative to step count based calorie counting. Removed unused IsWeightSet from Profile::SaveGeneratlDataCreateNode.
2014-07-01 01:36:00 -06:00
Kyzentun
f8e1e28286
Exposed StepMania::SaveScreenshot to Lua. Added prefix and suffix args for setting the screenshot name and removed the unused index arg. Added GetHighScore to PlayerStageStats and AddScreenshot to Profile so that Lua can imitate ScreenEvaluation's code for adding a screenshot to the profile. Removed hungarian notation from variable names in StepMania::SaveScreenshot.
2014-06-17 00:29:09 -06:00
Kyzentun
7e41d88feb
Fixed fake conflict in Profile.cpp.
2014-06-16 22:57:33 -06:00
Kyzentun
6db1199db5
Added PROFILE:GetHighScoreListIfExists for limiting memory footprint on searches. Added PROFILE:GetAllUsedHighScoreNames to provide a non-brute force way for obtaining a list of names. Added HighScoreList:GetHighestScoreOfName so the C++ side could do the iteration. Added HighScoreList:GetRankOfName for the same reason.
2014-05-13 13:34:38 -06:00
Kyzentun
c8476738f5
Exposed GAMESTATE:StoreRankingName and Profile:SetLastUsedHighScoreName to Lua. StoreRankingName no longer forces uppercase.
2014-05-12 22:01:22 -06:00
sigatrev
f1fc291989
run profile's CustomLoadFunction when changing theme or assigning a local profile to a player
...
This should make the custom load functions a lot more useful.
2014-04-30 21:30:30 -05:00
Kyzentun
3c7bb93bbc
Added ComboContinuesBetweenSongs back in. And if that line in ResetStageStatistics is committed as FOREACH_HumanPlayer, I'm going to punch git.
2014-02-16 11:43:28 -07:00
AJ Kelly
7787efdaa9
Add Lua bindings for RankingCategory
...
(Sourced from shakesoda/stepmania.)
2013-10-04 07:43:41 -05:00
Devin J. Pohly
cc38fa1d5a
Profile: add custom load/save hooks
...
Themes can use these to implement custom per-profile data, such as
SpeedMods.txt. For memory cards, they will be executed while the card is
mounted and should read/write everything they will need at that point.
2013-09-06 23:36:54 -04:00
Devin J. Pohly
1220dbe085
Revert "Round 2-2 of this."
...
This reverts commit 0ae4183f7b .
2013-06-04 23:47:22 -04:00