Commit Graph
219 Commits
Author SHA1 Message Date
Chris Danford 304d4c33ae add HexToBinary, move to RageUtil 2006-06-25 04:21:58 +00:00
Steve Checkoway da87f6d956 Use safe macros. 2006-06-24 00:05:08 +00:00
Steve Checkoway a45880281a Wrap strtof. Return 0 on nonfinite values. 2006-06-12 06:36:36 +00:00
Glenn Maynard f0fd06f92c add ConvertCodepageToWString, ConvertACPToUTF8
change ConvertWstringToACP -> ConvertWstringToCodepage
2006-04-04 23:38:09 +00:00
Chris Danford 865dcb072b remove unnecessary CLAMP in RandomGen 2006-03-28 21:52:10 +00:00
Chris Danford f9d50da5e1 cleanup for easier debugging 2006-03-28 19:15:44 +00:00
Chris Danford b3c4c6d86d remove assert. It's a little risky without more testing 2006-03-28 04:36:49 +00:00
Chris Danford 6d865d4762 fix RandomGen off by 1. Was retruning.[0,max), not [0,max]. (Caused random courseEntries to never pick the last song in the list) 2006-03-27 21:55:34 +00:00
Chris Danford 59aaab0375 assert( l < h ) in CLAMP 2006-03-27 10:59:13 +00:00
Glenn Maynard f9f990f590 support UTF-8 through ISO-8859-1 in MakeUpper, MakeLower, Capitalize 2006-03-01 02:45:42 +00:00
Glenn Maynard 3d86168ebb g_Uptab -> g_UpperCase 2006-03-01 01:04:02 +00:00
Glenn Maynard bcc8984b93 detach uptab from char_traits_char_nocase 2006-03-01 00:24:59 +00:00
Glenn Maynard 26e8fbd0ae detach uptab from char_traits_char_nocase 2006-03-01 00:24:25 +00:00
Glenn Maynard 18fbd2e8a4 take a char* for utf8_to_wchar 2006-03-01 00:14:50 +00:00
Glenn Maynard 3a1d3883b5 unsigned 2006-03-01 00:11:59 +00:00
Steve Checkoway e76f7c7902 Add helper function for removing objects from STL containers. mem_fun() and mem_fun_ref() are handy for using const (?) member functions as predicates. 2006-02-19 06:04:34 +00:00
Chris Danford 53e0ea8f24 fix smpackage uninstall and install to different installation other than where tools.exe resides 2006-02-15 03:58:29 +00:00
Glenn Maynard 478de001c6 move URLEncode into RageUtil 2006-02-09 00:08:10 +00:00
Chris Danford 884b8048f3 RString -> const RString & for easier stepping 2006-02-03 19:23:50 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 477e67a8aa fix smpackage file routines and registry writing 2006-01-21 12:18:26 +00:00
Glenn Maynard f9361c9036 interp -> lerp ("interp" doesn't imply linear) 2006-01-21 07:26:20 +00:00
Glenn Maynard f1f76f4c75 unused 2006-01-20 06:35:51 +00:00
Glenn Maynard f3d3100d36 cleanup 2006-01-20 06:30:13 +00:00
Glenn Maynard 02bae15b84 add interp() 2006-01-20 06:21:07 +00:00
Chris Danford 6012947d00 remove ssprintf overload 2006-01-08 05:32:56 +00:00
Chris Danford 32223b6912 adding ssprintf overload for easier use with LocalizedString 2006-01-08 00:40:28 +00:00
Glenn Maynard 86572cc1f3 add MakeValidFilename 2005-12-29 01:20:33 +00:00
Chris Danford b42d28af34 add language localization tools 2005-12-28 19:21:08 +00:00
Glenn Maynard dd04d0d85e cleanup 2005-12-28 18:09:52 +00:00
Chris Danford 0249ef8d3d add language native names 2005-12-28 05:43:26 +00:00
Chris Danford 74749a19bb move localized string to separate file 2005-12-22 03:10:04 +00:00
Chris Danford 28959facb3 make prompt strings localizable 2005-12-21 09:56:16 +00:00
Glenn Maynard 296dafdd11 fix "more than one user-defined conversion has been implicitly applied" in
SDebugOverlay
2005-12-20 20:09:15 +00:00
Glenn Maynard 54ab1ec707 const, RString 2005-12-20 19:55:09 +00:00
Chris Danford d698a5f1ec CString -> RString in RageUtil
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00
Steve Checkoway 06d3eb564b Fix implicit typenames. 2005-12-19 04:20:58 +00:00
Glenn Maynard 304c31d29d fix GetAsNotInBs()s causes confusing compiler errors in VC7.1 if Foreach.h
isn't included first
2005-12-18 23:20:32 +00:00
Chris Danford efe3984ad5 detect changing USB joysticks and remap on the fly 2005-12-18 07:13:13 +00:00
Chris Danford ec51af900e CString -> RString for files used by smpackage 2005-12-10 08:15:44 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Glenn Maynard 90ad56522c move GetCommandlineArgument, g_argc and g_argv into RageUtil.cpp,
so tests don't have to duplicate stuff, and because PrefsManager
uses it
2005-11-22 21:18:43 +00:00
Glenn Maynard 492791d56f cleanup 2005-11-22 20:33:52 +00:00
Glenn Maynard 2530f0dd5f add GetLanguageNameFromISO639Code
clean up RageUtil.h while I'm here
2005-10-28 17:23:54 +00:00
Chris Danford cdb7215971 add BeginsWith 2005-10-27 04:51:47 +00:00
Chris Danford bc332a57b1 change Translation.dat -> Translations.xml
Move GroupName translations out of code and into Translations.xml
2005-10-06 07:01:58 +00:00
Glenn Maynard 7a561fc4d5 move helpers into RageUtil
ToLower attributs, not ToUpper
2005-09-04 23:04:21 +00:00
Chris Danford f55e8a54e6 Don't evaluate the ActorScroller transform function every time though Draw.
Cache TweenState values at a provided interval, then interpolate between the TweenStates.
TODO: Precalculate these TweenStates in Init?
2005-09-02 21:42:34 +00:00
Chris Danford e439ae2a96 return "" -> return NULL 2005-09-02 00:14:07 +00:00
Chris Danford a2c439a17a support loading of course edits 2005-07-31 05:41:32 +00:00