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
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
AJ Kelly
c7fab6014f
[Various] Allow loading of *.jpeg in addition to *.jpg.
2011-12-17 03:21:12 -06:00
AJ Kelly
0e56c9aeaf
oops
2011-09-26 17:57:05 -05:00
AJ Kelly
e590230968
[ThemeManager] Add global Scripts dir. [originally by shakesoda from broken]
2011-09-26 17:52:08 -05:00
AJ Kelly
fa12ff045b
[ThemeManager] Added DoesThemeExist(sTheme), IsThemeSelectable(sTheme), DoesLanguageExist(sLang), GetCurThemeName(), HasMetric(sGroup,sValue), and HasString(sGroup,sValue) Lua bindings.
2011-08-27 15:48:33 -05:00
AJ Kelly
ba60b894a2
minor change
2011-08-20 03:32:16 -05:00
Flameshadowxeroshin
c776367a03
added some code I am working on and properly added the RunLuaScripts binding
2011-08-18 23:56:16 -05:00
Flameshadowxeroshin
b6c2882362
okay dammit
2011-08-17 19:43:08 -05:00
Flameshadowxeroshin
fbc064dfba
add THEME:RunLuaScripts()
2011-08-17 19:33:47 -05:00
AJ Kelly
c2ec5614fa
change a todo
2011-08-07 13:46:02 -05:00
AJ Kelly
0c6154f9ed
small removal
2011-08-07 13:41:44 -05:00
Mark Cannon
e1a447cc36
revert henke's loadingwindow "improvements"; if you're reading this, henke, you do *NOT* sacrifice readability for misguided optimization, and you do *NOT* use a globally externed variable for something with a useful lifetime of part of one function
2011-08-06 21:33:49 +00:00
Henrik Andersson
813c2d8f09
[loading window] Theme loading should also list itself in the loading window.
2011-06-04 16:09:47 +02:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
Jason Felds
9d13036e08
Add @briefs to the Luna classes.
...
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
Mark Cannon
2c9678ca65
fix PrefsManager init list not being in order, add hack to ThemeManager to make GetThemeName() work intuitively for Scripts dirs
2011-01-07 23:41:23 -05:00
AJ Kelly
20a1802758
add StripMacResourceForks(); hopefully prevents things like issue 178 ( http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=178 ) from happening again
2010-08-26 00:49:40 -05:00
AJ Kelly
2a8f11d031
fix smpackage compile.
2010-08-16 18:52:21 -05:00