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
4a6b1a743c
Enable more compiler warnings and treat them as errors.
2023-02-02 11:54:17 -08:00
Brian Phlipot
0cc289fa1c
More explicit RString creation to fix Windows build.
2022-10-03 16:21:19 -07:00
Brian Phlipot
c1a3455ce4
Explicitly create RStrings to avoid MSVC compiler errors.
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
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Kyzentun Keeslala
02dd2522e3
Add THEME:get_theme_fallback_list function.
2018-02-05 09:12:35 -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
Kyzentun Keeslala
c3d37389ec
Log warnings if the theme preference is not set to something valid. Moved underscore logic in IsThemeSelectable to IsThemeNameValid so that GetSelectableThemeNames doesn't fetch the directory list n^2 times.
2016-06-20 13:56:53 -06:00
Jason Felds
bec18a0d36
Fix minor windows pedantic warnings.
2016-03-27 22:03:15 -04: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
Jason Felds
4149191b54
Attempt to fix compiling for Windows JP users.
2015-09-08 16:57:56 -04:00
Kyzentun
5eba25a495
Added hold at full to actor effect timing. Added the xml to lua converter.
2015-05-01 07:50:34 -06:00
Kyzentun
06c78cd59f
Fixed lua music files not being recognized. Changed assert on non-optional theme elements not being found to report an error.
2014-12-21 23:38:45 -07:00
Kyzentun
89864fc890
Fixed dirs not matching correctly for THEME:GetPath functions.
2014-12-02 20:24:40 -07: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
Kyzentun
2f37e9d8a9
Merge branch 'DefaultHeart' of https://github.com/kyzentun/stepmania
2014-09-14 21:07:54 -06:00
Kyzentun
1dbdca6b0a
Merge branch 'StageDispFixes' of https://github.com/kyzentun/stepmania
2014-09-14 21:06:27 -06:00
Kyzentun
fa7502b7b0
Added ScreenOptionsCustomizeProfile to _fallback and default.
2014-09-14 20:04:10 -06:00
Forest
96501df3d7
Use legal printf format strings when logging.
2014-09-08 02:23:45 -07:00
Kyzentun
2199e7aafb
Fixed GAMESTATE:GetCurrentStage to use correct logic for determining if all human players are on final stage.
...
THEME:GetPath lua functions can now pass true for the third arg if the element is optional.
Fixes to various StageDisplay things in default.
thify_number and thified_curstage_index lua functions added to default/Scripts/04 Other.lua.
2014-09-07 04:05:10 -06:00
Kyzentun
01442d193f
Fixed SwitchThemeAndLanguage to run lua scripts when reloading the theme. Removed ForceThemeReload param from GameLoop::ChangeTheme.
2014-08-24 03:21:01 -06:00
Kyzentun
eb7ac082ae
Report error on fetching empty string metric instead of crashing.
2014-08-11 15:56:41 -06:00
Kyzentun
c3fb210291
Created GameLoop::ChangeGame analogous to GameLoop::ChangeTheme. Changed ChangeTheme to use the AfterThemeChangeScreen metric instead of a passed in screen name from the theme being changed away from. ChangeGame uses the AfterGameChangeScreen and AfterGameAndThemeChangeScreen metrics to pick the screen to load after the change. New metrics are optional and default to InitialScreen. Changed ScreenManager::ThemeChanged to not duplicate the code in ReloadOverlayScreens. Fixed ScreenManager::IsScreenNameValid to check with HasMetric before using GetMetric. Changed game ConfOption logic to set the preference and work in a similar way to the theme ConfOption. Added THEME:SetTheme lua function.
2014-07-20 20:59:12 -06:00
Kyzentun
273b76d3c7
ActorUtil::ResolvePath updated for error reporting. Changed BitmapText to work with either a font name or a path. ThemeManager::GetPathInfoRaw fixed to use correct error dialog. ThemeManager::GetPathInfo fixed to report correct error for missing theme elements.
2014-07-14 18:02:28 -06:00
Kyzentun
fb1a251b7a
Changed many places that used RageException to use ReportScriptError instead. Wrote ScreenOptionsExample.ini as documentation example for the OptionRow system. Rewrote gamecommands.txt to include all GameCommands. Fixed Commands::GetOriginalCommandString to insert the semicolons that separated the original commands. Changed nonsensical boolean |= true statements in GameCommand.cpp to just use =. Added protection to ReportScriptError to keep it from recursing through itself when an error occurs in error reporting. Added UseAbort option to ReportScriptError for places that want to use an AbortRetryIgnore dialog to query the user. Added ScriptErrorMessage for places that need to handle the warning/dialog part separately. Added logging flag to MESSAGEMAN so that all messages broadcast can be logged when desired. Changed OptionRowHandler::LoadInternal to return a boolean success value as part of error handling.
2014-07-12 14:59:10 -06:00
Kyzentun
afc235e17b
Added THEME:GetMetricNamesInGroup and THEME:GetStringNamesInGroup.
2014-05-08 03:59:08 -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
Devin J. Pohly
a9d5931533
Command/LuaManager: add legacy command parsing
...
Only enabled when compiling via CompileXNodeTree.
2014-02-20 10:59:49 -05:00
Jason Felds
e82f2cfa2c
Attempt to warn about missing translations.
2014-02-03 21:18:04 -05:00
Ben "root" Anderson
a040c4a586
1) SOMEONE can't spell "accessible" 2) Global commenting consistency 3) persistance -> persistence
2013-11-30 09:50:54 -06:00
Jason Felds
575b6b8289
Remove unused label.
2013-06-08 22:22:15 -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
28e5148dec
The big NULL replacement party part 5.
...
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds
ba59dd1656
The big NULL replacement party part 2.
...
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -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
Jason Felds
c67419ecc8
There goes the macro file.
...
This is one of my bigger commits in this branch.
Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds
e7f8a17118
Transplantable label to remove?
2013-04-30 00:00:33 -04:00
Jason Felds
fcba4702cb
Loops.
2013-04-30 00:00:18 -04:00
Jason Felds
e2e7b7f39e
Handle the lone deque.
2013-04-27 13:45:04 -04:00
Jason Felds
048109dbd6
Cleaner loops ahoy!
2013-04-27 13:40:22 -04:00
Devin J. Pohly
feb919f0bf
Revert memory leak commits
...
5f7001e : "Added a new branch"
01456ed : "Fixed a lot of memory leaks"
dac4493 : "Fixed all remaining memory leaks that I could figure out"
0792db7 : "Removed the smnew macro and the call to _CrtSetDbgFlag()"
Some of these caused destructor-time problems due to static initialization
order fiasco and related issues. Notably, the program would no longer exit on
OSX and had to be killed.
There were probably legitimate fixes in here, but since these are monolithic
commits it's too much work to extract them now. Let's reapply them
individually and in the forward direction.
2013-04-27 00:05:14 -04:00
Jason Felds
0c4fe367cc
Fix duplication symbol issue on Mac.
...
This may have affected Linux as well.
2013-04-21 09:31:45 -04:00
Shenjoku
0792db752a
Removed the smnew macro and the call to _CrtSetDbgFlag() to get ready for
...
merging with the main branch.
2013-04-19 20:34:11 -07:00
Shenjoku
01456ed0b9
Fixed a lot of memory leaks caused by static globals never getting
...
deleted and some other objects not getting deleted properly due to missing
destructors.
2013-04-18 21:17:57 -07:00
Shenjoku
5f7001ef0a
Added a new branch that implements support for outputting all memory leaks to
...
the debug output for the Debug and FastDebug project configurations. This
requires replacing all instances of new with a macro, smnew, that defines a
special form of new which outputs file and line number information along with
the memory leak details. This makes finding memory leaks much easier since you
can just double-click the leak in the output window and it will take you to the
line that caused it.
2013-04-17 20:42:29 -07:00
Devin J. Pohly
001ee51242
replace gotos with tail calls where appropriate
2013-01-25 17:22:23 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
a15cbc431d
War on -Werror, part 14: More hodgepodge.
2012-12-27 12:45:04 -05:00