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
sukibaby
e0b254968d
std::size_t -> size_t
...
Removing std prefix from all size_t.
2024-10-01 01:46:26 -07:00
Martin Natano
bacecae1f7
Decouple <vector>
2023-04-21 22:13:41 +02:00
Martin Natano
78fb2e9fc3
Decouple <cstddef>
2023-04-20 11:21:29 +02: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
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
Jason Felds
edabf4605b
Clean up three sets of warnings:
...
* Ensure all switches have a default when working with enums.
* Match defined new[] calls with delete[] calls.
* Respect variable initialization order.
2016-03-24 18:30:29 -04:00
Kyzentun
00437631a2
Merge pull request #1010 from nixtrix/firstsecond
...
Checking for first second now ignores autokeysounds
2016-03-13 08:47:22 -06:00
Kyzentun Keeslala
da2db95365
Changed NotesLoaderBMS to not crash when trying to set StepsTypeStr for an unrecognized StepsType. Removed ConfOption for ShowSelectGroup from ScreenOptionsMasterPrefs because the preference does not exist.
2015-10-23 20:42:49 -06:00
Joe
1ebf75c683
Fix notesloaderbms.cpp for real this time
2015-10-16 16:08:40 +01:00
Joe
311601dc0d
Resolving merge conflicts
2015-10-16 08:15:37 +01:00
zardoru
d63881802a
Make sure kb7 is the appropiate steps type.
2015-10-15 21:06:23 -03:00
Joe
1157884255
kb7 BMS loading breaks most iidx BMSes. Remove kb7 support until BMS loading is overhauled.
2015-10-15 22:14:38 +01:00
zardoru
82af76a53d
Add preview point and fix offset support, and linear solo bms layout.
2015-08-24 21:24:50 -03:00
zardoru
20422adda7
Add BMS support for myo2 channel layout and kb7 charts.
2015-08-23 23:33:09 -03:00
Jason Felds
a000732c2c
Merge pull request #615 from nixtrix/previewlength2
...
Setting sample length for songs with preview file to 0 uses length of preview file
2015-05-18 23:11:22 -04:00
Joe
ba183e0db2
Tidying up (removal of commented code etc)
2015-05-15 16:50:59 +01:00
Joe
d3e866db26
Setting sample length for songs with preview file to 0 uses length of preview file
2015-05-15 15:46:20 +01:00
Joe
a0068cb143
BMS loader now supports #difficulty tag.
2015-05-15 09:59:44 +01:00
Joe
6b5cb90fcc
Lua BGAnimations now work when called from BMS files.
2015-05-14 12:48:26 +01:00
Joe
be3c4db602
Beat mode gameplay changes, third attempt
2015-04-29 19:43:19 +01:00
Kyzentun
46d215aed3
Added preview tag to NotesLoaderBMS. Changed Song to check the preview file for sample length instead of the simfile if the preview file is set.
2015-03-04 13:10:51 -07:00
Kyzentun
d5d53ff2ff
Removed extended initializer list usage from NotesLoaderBMS because that requires C++11.
2015-02-09 21:05:36 -07:00
zardoru
da3326ab31
Add comments for posterity.
2015-02-05 23:30:32 -03:00
zardoru
597a17dd30
Consider all referenced channels instead of the used ones.
2015-02-05 23:04:33 -03:00
zardoru
14f4c2e3fe
Fix nested branches not being triggered.
2015-02-05 15:38:42 -03:00
zardoru
c121e64064
More accurate handling of BMS time signatures.
2015-01-31 20:20:22 -03:00
zardoru
874ebf8754
Allow arbitrary indentation on the BMS loader.
2015-01-31 13:05:30 -03:00
zardoru
49bda1e0e5
Add support for #IF, #ELSE, #ELSEIF, #ENDIF for BMS.
2015-01-28 19:55:57 -03:00
zardoru
5f9660751c
Couple hack-fixes for BMS crashes.
2014-12-23 23:20:54 -03:00
Kyzentun
3b36858cf8
Merge pull request #366 from kyzentun/bgm_formats
...
Unduplicate file extension lists.
2014-12-01 16:18:09 -07:00
Jason Felds
3451b2f2d5
Use operator overloading best practices.
...
Not all files covered.
Refer to StackOverflow for details: http://stackoverflow.com/a/4421719
2014-11-26 14:51:21 -05:00
Kyzentun
e22e99251e
Added functions to ActorUtil for converting the extension to a file type and changed various places that had lists of extensions to use ActorUtil instead of duplicating the list of extensions. Added webm and wmv to list of video types.
2014-11-09 00:04:47 -07:00
sigatrev
82cb4a198d
Enums for TapNoteType, TapNoteSubType, and TapNoteSource
...
I intend to make additional useful information available on judgments,
such as TapNoteType and TapNoteSubType( for hold judgments ).
I am submitting this part as a separate pull request because it is more
generally applicable to anything TapNote related.
2014-08-02 00:38:48 -07:00
Jason Felds
f5c877cbb6
Replace StringToInt with the std version.
...
Again, RageUtil isn't the right home.
2013-05-04 11:59:25 -04:00
Jason Felds
07b9fb6da5
The big NULL replacement party part 6.
...
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds
9f24627bf9
The big NULL replacement party part 1.
...
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.
And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Devin J. Pohly
0ae7b0da85
TimingData: add allowEmpty parameter to TidyUpData. always false for now...
2013-01-23 14:38:57 -05:00
Devin J. Pohly
8815da5f1f
replace SongManager::GetSongFromSteps with use of song pointer
2013-01-20 19:51:59 -05:00
Jason Felds
1fc16698ba
War on -Werror, part 12: explicit bool usage.
...
It may save a few cycles, but it's best to be
explicit on boolean operations, especially with
ASSERT.
2012-12-27 11:38:53 -05:00
Devin J. Pohly
d45afb73d8
war on -Werror, part 1: constructor order, c++ actually cares
2012-12-26 20:14:40 -05:00
AJ Kelly
a9c8a9517b
fix missing semicolon; whoops.
2012-06-02 22:55:18 -05:00
Jason Felds
d624ae5010
I think false was intended here.
2012-05-21 08:59:57 -04:00
Thai Pangsakulyanont
f2697f9eb5
fix possible syntax error
2012-05-21 16:03:42 +07:00
Thai Pangsakulyanont
1c85c74785
remove the debugging code
2012-05-21 14:02:38 +07:00
Thai Pangsakulyanont
3a82222c83
add background support to BMS files (only #BMP, not #BGA)
2012-05-21 13:58:40 +07:00