|
From: Chris D. <cdanford@u.washington.edu> - 2007-05-10 18:06:45
|
Hi. THEME->ReloadMetrics() is the right call to make. You could find somewhere to put that call (like ScreenManager::SetNewScreen) so that it would happen on every screen load. There's no cache of theme data, so you don't have to worry about it reloading from cache. What behavior are you seeing that suggests it's not working? What metrics are being changed by the external program? -Chris > -----Original Message----- > From: ste...@li... > [mailto:ste...@li...] On > Behalf Of Lazarith > Sent: Sunday, April 08, 2007 2:20 AM > To: ste...@li... > Subject: [Stepmania-devs] How to reload metrics.ini ? > > Hey guys, > I have Stepmania3.9 non-CVS source and I'm trying to get the > default themes > to automatically reload from the [ScreenOptionsMaster] section of > metrics.ini before each song starts. I don't care if it > ignores changes to > the player options (start twice when chosing a song). > > In my desired setup, metrics.ini might be modified by a > separate program > after each song (so I can't just reload from the cache). > > I've tried running: > THEME->ReloadMetrics() > ApplyModifiers( PLAYER_1, PREFSMAN->m_sDefaultModifiers ); > and > ApplyModifiers( PLAYER_1, ENTRY_DEFAULT((CString)"Speed") ); > > But it doesn't seem to do what I want. > Could you please point me in the right direction? > With appreciation (and fear of those goto statements in > ThemeManager.cpp), > -laz > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the > chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > Stepmania-devs mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stepmania-devs > |