Commit graph

2438 commits

Author SHA1 Message Date
Daniel Stenberg
aa458aa9d8 MENU_DISK_CHANGED is the new value for telling disk content might have
changed


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1949 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 12:41:25 +00:00
Daniel Stenberg
b285076925 Remade the menu system slightly. All functions invoked from menus now use
the Menu typedef as return type, and *ALL* menus that intercept USB connect
can then return MENU_REFRESH_DIR so that the parent (any parent really) that
do file or dir-accesses knows that and can do the refresh. If no refresh
is needed by the parent, MENU_OK is returned.

Somewhat biggish commit this close to 1.3, but we need to sort out this
refresh-after-usb-connected business.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1948 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 12:32:52 +00:00
Robert Hak
ad4a92eb87 stupid tabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1947 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 11:37:40 +00:00
Robert Hak
f27fecb076 minor style fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1946 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 11:31:19 +00:00
Markus Braun
d58dab8dd8 restore was allwas true. Set it to false when last restore request was
handled.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1945 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 11:06:14 +00:00
Linus Nielsen Feltzing
51d9ae63ca Missing break in the SYS_USB_CONNECTED case
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1944 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 09:36:49 +00:00
Daniel Stenberg
af341158db bad bad bad snprintf() overflow the buffer if the string passed in with a
%s didn't fit within the buffer!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1943 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 08:29:44 +00:00
Daniel Stenberg
e6261734a0 two fixes at once:
1. If the WPS is popped up but the mpeg thread can't play any song, we must
   make sure to update the screen to display the "end of playlist" thing.

2. When having reached the "end of playlist" state, pressing LEFT caused a
   crash (due to a NULL pointer being used).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1942 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 08:06:39 +00:00
Daniel Stenberg
57392acd18 the simulator code now deals better with playlist_next() returning NULL
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1941 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 07:56:36 +00:00
Daniel Stenberg
3625dedcce playlist_next() now returns NULL on excessive 'step' amounts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1940 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 07:33:35 +00:00
Hardeep Sidhu
e255798f44 Fixed a flaw in the ffw/rew logic for large vbr files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1939 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 06:36:32 +00:00
Justin Heiner
0a3589d129 OK, a (hopefully) successful attempt at getting rid of the yellows that I created by removing the other yellows
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1938 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:45:39 +00:00
Justin Heiner
edf6b80547 Forgot to #ifdef something
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1937 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:26:22 +00:00
Justin Heiner
d6a0f6ccd9 Fixed a problem with my #define CUSTOM_WPS - It didn't lower the menu items to 4 from 5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1936 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:19:47 +00:00
Justin Heiner
2630245cb9 Added NSauzede's patch to detect USB while in a Menu. It also adds the USB icon to the player while in USB mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1935 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:17:00 +00:00
Hardeep Sidhu
754651efdd Reset mp3buf_swapwrite when selecting next track that is already in buffer. This should fix the track silence bug. Also, when seeking to end of file, leave some bytes at the end so that the transition to the next track is done correctly. This should fix the few seconds repeat at beginning of next song.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1934 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 23:01:25 +00:00
Daniel Stenberg
634551ffeb statusbar bug fix when going to the menu from the dir browser
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1933 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 22:53:12 +00:00
Björn Stenberg
518e1ec1e4 New measurements show ATA_SLEEP saves us 30-40 mA over ATA_STANDBY.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1932 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 21:53:10 +00:00
Daniel Stenberg
a8e89fd693 when we want to stop the scroll and clear the screen, it is a lot better
to first pause the scroll (stop puts back text on screen) and then clear
the screen.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1931 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 21:45:22 +00:00
Daniel Stenberg
3da55ac420 added some people
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1930 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 20:42:49 +00:00
Daniel Stenberg
e666ce933a when we want to open a file, we want the exact specified file name, not
just one that starts with our given string...


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1929 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 20:13:21 +00:00
Felix Arends
d841ca9797 removed backlight-win32.c as it is not needed any more
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1928 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 17:59:20 +00:00
Felix Arends
b1819f64de this makefile works at least for the recorder, we will have to talk about a recorder fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1927 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 17:58:24 +00:00
Daniel Stenberg
053d904645 Bill Napier's patch slightly remodelled. This adds a setting called
"Show hidden files" that if enabled will show files with the hidden
attribute and/or starting with a dot in the dir browser. If the setting
is set to Off, files/dirs starting with a dot or that have the hidden
attribute set will be... yes, hidden.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1926 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 15:47:30 +00:00
Felix Arends
c94aa32731 bitswap.s is linked with librockbox as well now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1925 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 15:01:24 +00:00
Justin Heiner
1a8f34bfa9 Changed CUSTOM_WPS to be a define-only feature until it is more complete. To include it, simply uncomment the #define CUSTOM_WPS line in wps.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1924 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 14:19:47 +00:00
Daniel Stenberg
ae3952ec90 make mp3info() better return true on bad mp3 files, also make
getsonglength() return 0 if the length is unknown


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1923 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:59:31 +00:00
Daniel Stenberg
22633d66a2 Check the return code from each call to mp3info(), as it might return true
to indicate a bad mp3 file.

TODO: when having a dir full of zero-byte mp3 files and pressing play on
one using the simulator, this'll go crazy.

TO CHECK: I haven't checked how the live target code behaves on this.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1922 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:58:18 +00:00
Daniel Stenberg
487662a67c fix file name pointer usage, clean the buffer faster, don't use extra
variable


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1921 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:12:45 +00:00
Robert Hak
09499b54a4 typo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1920 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:03:17 +00:00
Robert Hak
54099ba8c8 various changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1919 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:02:03 +00:00
Robert Hak
9bc41e5026 file got renamed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1918 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:52:06 +00:00
Justin Heiner
ad14c5b14e Flipped a line to make it work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1917 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:38:20 +00:00
Justin Heiner
6dd8b83507 Attempt at fixing reds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1916 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:25:14 +00:00
Daniel Stenberg
5cb571297e CONFIG, API, CONTRIBUTING and CREDITS are now in ../docs/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1915 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:15:01 +00:00
Daniel Stenberg
11714aceab fixed compiler error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1914 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 05:30:07 +00:00
Justin Heiner
70a203341f Added conditional Title-Artist to appease PsycoXul :-) It's bound to %h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1913 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 04:03:57 +00:00
Robert Hak
a27f5d7bd1 faqs and plain txt are now handled differently
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1912 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 03:36:49 +00:00
Robert Hak
0525659877 renameing txt2plain.pl to faq2html.pl
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1911 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 03:34:09 +00:00
Robert Hak
d421f5b372 initial creation.. file is to convert plain text to html
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1910 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 03:33:33 +00:00
Justin Heiner
b10017e3e8 Added %% as an available tag to the Custom WPS. Displays % when used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1909 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 03:02:59 +00:00
Robert Hak
fac7852300 refered to the new WPS formating
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1908 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 03:00:12 +00:00
Robert Hak
363a00d808 initial commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1907 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 02:59:32 +00:00
Robert Hak
b6e8aadb71 added custom_wps_format info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1906 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 02:59:13 +00:00
Robert Hak
c45166db3e updated for new files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1905 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 02:40:23 +00:00
Justin Heiner
43e7cb8f40 Documentation for Custom WPS Display on the Player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1904 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 02:26:08 +00:00
Justin Heiner
b986a5c6b7 Added ability to have a Custom WPS Display on the Player. See the commited doc for the tag specification
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1903 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 02:24:14 +00:00
Justin Heiner
7dcff6d98c Changed the previous patch to restart the same song if over 2 seconds to 3 seconds. That way you can hear a bit of the song before... well, it's just better this way *grin*
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1902 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 23:24:26 +00:00
Heikki Hannikainen
ed04872b46 Added information about the travel charger.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1901 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 20:54:20 +00:00
Heikki Hannikainen
834a3c2509 Charge longer, deeper, better. Also restart charging already at 95%, since
90% is already pretty empty.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1900 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 20:09:13 +00:00