@fbnomi: in core/luascript.c
edit:Here's another patch.
Changes:
Moved bitrate strings a global in conf, instead of redefining it as stactic in several functions
Added #defines for quality and bitrate settings
Added a macro MODE_IS_VIDEO to platform, which checks if mode is any of the *_VIDEO_* modes
updated most of the obvious places to use this. There's still a few in gui.c gui_draw_osd that need going through.
moved video quality override display stuff to gui_osd_draw_state
The values of quality are and bitrate are shown if:
- they are different the default setting
or
- they are selected for fast override, and fast override is active
this also fixes a warning related to using undeclared functions
Only do osd_draw_movie_time_left if in movie mode
reworked kbd.c kbd_use_up_down_left_right_as_fast_switch()
- had to reformat the code to work out what was going on
- check MODE_IS_VIDEO
- use #defines for various things
- noted, but not fixed the big where it doesn't know if you are paused or not
fixed a possible uninitialized value in playsound. Now if you give it an unrecognized index, it just does nothing
fixed a possible uninitialized value in ubasic temperature check. If an invalid number is given, it returns 0
Also includes my earlier a540 patch and warnings patch
If you prefer individual, smaller patches, I can do that. Or if someone wants to give me svn, I can do that too