Steve Checkoway
76f0af145b
When Move()ing, Remove()ing, or Close()ing a file opened for writing, update the cache when possible (RageFileDriverDirect) or invalidate the directory cache for the directory containing that file (everything else). Remove most of the FlushDirCache() calls as they are no longer needed. This fixes a long standing bug where files added into the cache were stat(2)ed O(n^2) times--that is, each file is stat(2)ed O(n) times.
2009-09-14 08:08:06 +00:00
Chris Danford
cd139430f5
CustomDiffiuclty cleanup, now takes CourseType as a parameter
...
DifficultyList -> StepsDisplayList
Course editor screen cleanup
Change GameManager back to singleton for consistency with other classes
2009-08-09 02:59:32 +00:00
Steve Checkoway
521c1c23e5
GAMEMAN-> to GameManager::
2008-03-24 12:50:16 +00:00
Chris Danford
2f683bee2f
data-driven pump-style coloring/naming (merge disparate difficulty string/color systems and simplify Lua)
2008-03-24 12:00:51 +00:00
Glenn Maynard
3e36a05c5f
fix song.h!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2008-03-09 01:51:34 +00:00
Glenn Maynard
dc8b481268
temporary fix for
...
004f2fec: void debug_crash(void) [00400000+f2fda+12]
004dc1f0: void sm_crash(char const *) [00400000+dc1d5+1b]
005aa73e: class Style const * GameManager::GetFirstCompatibleStyle(class Game const *,int,enum StepsType)const [00400000+1aa6a9+95]
005ae440: void GameState::JoinPlayer(enum PlayerNumber) [00400000+1ae3c4+7c]
7c421201: MSVCP80!std::char_traits<char>::_Copy_s [7c420000+11ec+15]
00418707: void ScreenEditMenu::Init(void) [00400000+186ee+19]
2007-03-27 00:24:21 +00:00
Chris Danford
f77647b5ad
enum name cleanup: DIFFICULTY_* -> Difficulty_*
2007-02-22 07:18:05 +00:00
Chris Danford
599db61b62
Always call LoadAllCommands explicitly.
...
The hack to LoadAllCommands when playing a command was leading to weird interactions: If a theme element contained an OnCommand, it would cause the rest of the commands defined in metrics to not be loaded.
2007-02-19 09:30:07 +00:00
John Bauer
b1f3433088
Make SM go "BONG" and output an error message rather than crashing
...
when the user tries to delete autogen steps.
2006-11-28 19:39:00 +00:00
John Bauer
f5adc9686d
Reorder some includes.
2006-11-28 19:08:27 +00:00
Glenn Maynard
0db4a096e5
ScreenWithMenuElements::BeginScreen calls SortByDrawOrder
2006-11-21 04:32:59 +00:00
John Bauer
e15285ab55
Fix SongManager::Invalidate. Call it from places it is needed:
...
ScreenEdit::RevertFromDisk, ScreenEdit's Save routine, and
ScreenEditMenu's Delete Steps routine. This fixes the bug where
deleting a step chart sometimes causes interesting behavior
but usually just causes a CTD next time you run Oni mode. It also makes
sure data precalculated from the songs is correctly recalculated when
ScreenEdit changes a song.
2006-11-13 17:07:42 +00:00
Glenn Maynard
0b45f5dd0a
use SetCurrentStyle
2006-09-30 22:22:26 +00:00
Glenn Maynard
e7fdfa2132
prefer GAMESTATE->JoinPlayer to setting GAMESTATE->m_bSideIsJoined manually
2006-09-15 05:56:43 +00:00
Glenn Maynard
3f96734e6c
MenuX(PlayerNumber) -> MenuX(InputEventPlus)
2006-09-14 21:18:39 +00:00
Steve Checkoway
4a0718c4e8
Flush the directory cache so that --temp-- is removed. Is there a reason to do this rather than access(2)? (Obviously, this would need to be done in the FileManager itself.)
2006-09-12 03:24:58 +00:00
Steve Checkoway
b527d4226a
Not true. Song only allocates the Steps in Autogen.
2006-08-20 23:51:21 +00:00
Chris Danford
8b06ab9b27
fix stale Course pointer crash
2006-08-18 07:11:51 +00:00
Glenn Maynard
f7494da13e
cleanup
2006-06-24 05:52:25 +00:00
Chris Danford
193f510316
don't do song dir writable check in Home or Practice
2006-06-22 05:27:00 +00:00
Chris Danford
e3627c7377
test that song dir is writable before loading it in editor
2006-06-19 00:00:47 +00:00
Glenn Maynard
a1aefaa159
fix "missing a music file" prompt deletes steps
2006-03-09 22:30:43 +00:00
Glenn Maynard
45ca5f9f8e
cleanup
2006-03-09 22:16:20 +00:00
Chris Danford
1860c6c674
consolidate Steps description validation
2006-03-08 04:03:39 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Chris Danford
cec914461e
make string localizable
2006-01-18 10:03:45 +00:00
Glenn Maynard
a87993bcb1
finish ctor transition
2006-01-15 20:46:15 +00:00
Glenn Maynard
470c909ec6
Transition away from Screen(sName).
2006-01-15 18:54:03 +00:00
Glenn Maynard
c5b71c0631
remove logs (this stuff predates the crash handler and has been copied
...
and pasted around since)
jesus we have a lot of screens
2006-01-15 08:54:03 +00:00
Chris Danford
fc18dbd342
make more strings localizable
2006-01-08 18:40:20 +00:00
Chris Danford
44225ad379
XToThemedString -> XToLocalizedString
2006-01-07 04:11:29 +00:00
Chris Danford
74749a19bb
move localized string to separate file
2005-12-22 03:10:04 +00:00
Chris Danford
c4d4f640bb
localize text entry
2005-12-21 12:55:20 +00:00
Chris Danford
28959facb3
make prompt strings localizable
2005-12-21 09:56:16 +00:00
Chris Danford
c9d79d3e3b
localize prompts
2005-12-20 21:32:26 +00:00
Chris Danford
66c5a45117
SetLoadedFromProfile when the Steps are created, not when they are saved
2005-12-06 23:44:01 +00:00
Chris Danford
36c7d8e0ed
enum name cleanup
2005-12-01 03:20:25 +00:00
Glenn Maynard
dfc67cd84d
ScreenWithMenuElements::StartTransitioning -> StartTransitioningScreen, to make searching
...
for it easier (vs. Transition::StartTransitioning). (Trying to simplify tweening; this
may go back later.)
2005-10-13 22:17:13 +00:00
Glenn Maynard
29b2b4226b
SWME plays music
2005-10-13 05:22:18 +00:00
Glenn Maynard
6ea2f37a36
Change MenuUp(pn,type) overrides to MenuUp(IEP), so info like DeviceI.ts is always accessible.
2005-09-23 00:44:52 +00:00
Glenn Maynard
1b171db459
cleanup
2005-08-14 02:04:40 +00:00
Chris Danford
359d745e67
add course edits, improved course editor
2005-07-29 02:23:02 +00:00
Glenn Maynard
1d797c7f94
fix SM_Success, SM_Failure never sent
2005-07-22 09:13:16 +00:00
Glenn Maynard
cc00fbb7ef
simplify
2005-07-18 02:45:40 +00:00
Glenn Maynard
aa3116d783
split EDIT_MENU_ACTION_PRACTICE, so it can be themed differently
2005-07-14 07:19:15 +00:00
Glenn Maynard
fab368faf0
fix load
2005-07-14 07:11:44 +00:00
Glenn Maynard
d4b19938dd
EDIT_MENU_TYPE
2005-07-14 05:53:46 +00:00
Glenn Maynard
760202ea92
generalize deletion
2005-07-14 04:15:57 +00:00
Glenn Maynard
c9369fc984
fix backwards
2005-07-14 04:14:24 +00:00
Glenn Maynard
f0e244060d
generalize
2005-07-14 02:01:46 +00:00