summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
AgeCommit message (Collapse)AuthorFilesLines
2007-12-03Simulate the effects of sector caching a bit. Bypass I/O yield if a byte ↵Michael Sevakis1-9/+21
counter hasn't reached a certain threshold. Can be dialed-in by changing a #define. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15871 a1c6a512-1295-4272-9138-f99709370657
2007-12-03Simplify the uisimulator I/O routine and let the rockbox thread calling the ↵Michael Sevakis1-106/+21
functions be the background thread. Should speed things up too and lose none of the advantanges of background I/O. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15870 a1c6a512-1295-4272-9138-f99709370657
2007-11-08Code police; trailing spaces mainly.Steve Bavin1-14/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15527 a1c6a512-1295-4272-9138-f99709370657
2007-11-08Add --root option to allow overriding of simulator root menu.Steve Bavin1-11/+20
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15526 a1c6a512-1295-4272-9138-f99709370657
2007-11-07compile talk.c on hwcodec sim. it wont actually talk thoughJonathan Gordon1-47/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15512 a1c6a512-1295-4272-9138-f99709370657
2007-11-02Fix sims: sim_codec_load_ram() needed an updateNicolas Pennequin1-15/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15411 a1c6a512-1295-4272-9138-f99709370657
2007-10-19FS#7994 - Rename talk.c API, make talk_disable() affect all talking (not ↵Steve Bavin1-18/+2
just menus), hopefully save some space. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15206 a1c6a512-1295-4272-9138-f99709370657
2007-10-17Remove some dead codeDave Chapman3-299/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15171 a1c6a512-1295-4272-9138-f99709370657
2007-10-13Fixes a problem where the sim would try to start the WPS on HAVE_RTC_ALARM ↵Jonathan Gordon1-1/+3
sims (FS#7862 with a small addition by me) use the --alarm argument if you do want to simulate this behaviour git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15094 a1c6a512-1295-4272-9138-f99709370657
2007-10-09Fix crosscompiling the uisim with mingw32 by adding a definition of CLOSEJonas Häggqvist1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15047 a1c6a512-1295-4272-9138-f99709370657
2007-10-09Keep track of the number of opened files in the sim to enforce the same ↵Nicolas Pennequin1-5/+30
limit as on target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15045 a1c6a512-1295-4272-9138-f99709370657
2007-09-13FS #7752 by Catalin Patulea: Stop 'Rockbox Info' from crashing multivolume ↵Jens Arnold1-1/+13
target simulators (Ondio, Sansa). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14684 a1c6a512-1295-4272-9138-f99709370657
2007-09-10UISIMULATOR: Do a graceful shutdown of all threads and avoid (mostly lockup) ↵Michael Sevakis1-6/+13
problems caused by not worrying about states. Have rockbox objects initialized only by rockbox threads save for the main 'gui' thread which is a needed exception. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14660 a1c6a512-1295-4272-9138-f99709370657
2007-09-09UISIMULATOR: Give the host OS some needed context switching hints (which ↵Michael Sevakis1-1/+2
_is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Sim I/O and threading that runs more like on target. Tweakable if any ↵Michael Sevakis1-1/+168
genuine slowness imitation is required for any one of them. One point of concern is the sim shutdown on an OS other than Linux just because terminating threads in a manner other than having the do it themselves is kind of dirty IMHO. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14639 a1c6a512-1295-4272-9138-f99709370657
2007-08-14Moved archos power handling into target tree. * Tuner power handling cleaned ↵Jens Arnold1-4/+0
up a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14345 a1c6a512-1295-4272-9138-f99709370657
2007-08-12Enable a lot more features for simulators and add stubs where necessary, ↵Nils Wallménius1-0/+104
simulators should now work with identical lng and voice files as the respective target git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14299 a1c6a512-1295-4272-9138-f99709370657
2007-08-10Remove the 'USB' menu item from the sim system menu, press the 'u' key to ↵Nils Wallménius1-6/+0
display the USB screen instead, will break binary lng files and voice files for the sims only git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14269 a1c6a512-1295-4272-9138-f99709370657
2007-07-14Fix all the red this time?Michael Sevakis1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13884 a1c6a512-1295-4272-9138-f99709370657
2007-07-14Do some planned radio interface cleanup since adding in the LV24020LP.Michael Sevakis1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13880 a1c6a512-1295-4272-9138-f99709370657
2007-07-08Add lcd_sleep stub to sim too.Michael Sevakis1-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13819 a1c6a512-1295-4272-9138-f99709370657
2007-06-11Oops. I should respect the simulator #ifdefs more.Steve Bavin1-0/+13
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13618 a1c6a512-1295-4272-9138-f99709370657
2007-06-06As ususual, fix the sim errors.Michael Sevakis1-0/+13
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13574 a1c6a512-1295-4272-9138-f99709370657
2007-04-20A bit more readable code. Also saves one buffer.Jens Arnold1-12/+13
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13222 a1c6a512-1295-4272-9138-f99709370657
2007-04-20a little extra poke to get the sim to buildDaniel Stenberg1-8/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13215 a1c6a512-1295-4272-9138-f99709370657
2007-04-19Make the simulator work with unicode filenames on windows. This includes ↵Jens Arnold1-46/+120
both file operations and console (debug) output. Note that the console window _must_ be configured to use a truetype font for proper unicode display. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13211 a1c6a512-1295-4272-9138-f99709370657
2007-04-12Fix sim crashes on long filenames. Patch by Sean Morrisey with some minor ↵Peter D'Hoye1-29/+30
changes by me. Fixes FS #6009 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13138 a1c6a512-1295-4272-9138-f99709370657
2007-04-07Declare struct sim_dirent the same way as rockbox core's struct dirent. ↵Jens Arnold1-2/+2
Fixes file time reading for 64 bit sims. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13053 a1c6a512-1295-4272-9138-f99709370657
2007-04-06Fix redPeter D'Hoye1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13052 a1c6a512-1295-4272-9138-f99709370657
2007-04-06Fix file date and time reading in the simulator (used by the properties plugin)Peter D'Hoye1-2/+9
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13051 a1c6a512-1295-4272-9138-f99709370657
2007-04-03It's not necessary (anymore?) to map lcd_icon() to sim_lcd_icon() for the ↵Jens Arnold2-29/+0
simulator. * Removed a stray lcd_icon() call from usb handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13006 a1c6a512-1295-4272-9138-f99709370657
2007-04-02Fix flickering battery icon in the player sim.Jens Arnold1-6/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13003 a1c6a512-1295-4272-9138-f99709370657
2007-03-31Charcell lcd driver: Preparations for switching to non-immediate LCD ↵Jens Arnold4-732/+593
updates, using lcd_update() like on bitmap targets. * Added proper clipping. * Simplified simulator code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12979 a1c6a512-1295-4272-9138-f99709370657
2007-03-30Implement remove_thread for SDL simulatorSteve Bavin1-7/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12971 a1c6a512-1295-4272-9138-f99709370657
2007-03-26First step of charcell LCD code rework: * Make it fully unicode aware so ↵Jens Arnold1-5/+4
that adding non-ISO8859-1 scripts becomes possible (limited by the LCD capabilities of course). * Make the API more similar to the bitmap LCD code's API. * Moved hardware dependent parts to target tree. * Simplified code. * Jumpscroll temporarily non-functional. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12916 a1c6a512-1295-4272-9138-f99709370657
2007-03-17Cast some more to keep both 32 bit and 64 bit simulator platforms happy.Jens Arnold1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12819 a1c6a512-1295-4272-9138-f99709370657
2007-03-16FM Radio mishmash: Make a quieter screen for the SWCODEC targets esp. for ↵Michael Sevakis1-2/+8
the benefit of x5; I wasn't sure if it was good to alter timeouts for HW codec. Simplify things and prepare for eventual scanning and tuning changes (which should help quiet x5 down even more). Make things behave themselves better in general. Enable SWCODEC FM Recording menu and screen for sim as a bonus. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12804 a1c6a512-1295-4272-9138-f99709370657
2007-03-11Audio Init: Just can't stand that heirarchy. Add one level of abstraction. ↵Michael Sevakis1-6/+0
Might come in handy anyhow. Use sound.h instead of the conditional includes for audio hardware headers. If someone doesn't like that, yell at my evil twin. :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12718 a1c6a512-1295-4272-9138-f99709370657
2007-03-11Add audiohw_postinit() stub for the sims.Michael Sevakis1-0/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12716 a1c6a512-1295-4272-9138-f99709370657
2007-03-04Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - ↵Daniel Ankers1-6/+0
iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
2007-02-18Fix remaining CONFIG_TUNER checks.Jens Arnold1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12385 a1c6a512-1295-4272-9138-f99709370657
2007-02-14Icons in the menus. Thanks midkay for them.Jonathan Gordon1-1/+0
Any menus which dont yet show them are not converted to the new system. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12300 a1c6a512-1295-4272-9138-f99709370657
2007-02-03Removed unused 'mode' parameter from mkdir() for consistency with creat().Jens Arnold1-2/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12183 a1c6a512-1295-4272-9138-f99709370657
2007-02-01Removed 'mode' parameter from creat(). It wasn't pure posix anyway, it was ↵Jens Arnold1-15/+12
ignored on target and mixed into 'oflags' in the simulator. * Simplified io.c a bit by defining a dummy O_BINARY for OSes which don't have that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12179 a1c6a512-1295-4272-9138-f99709370657
2006-11-10Support building tagcache db natively on PC using the core of theMiika Pekkarinen1-6/+47
Rockbox tagcache database engine. Only host endian support at the moment and no command line parameters. Mainly for developers for debugging at the moment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11497 a1c6a512-1295-4272-9138-f99709370657
2006-10-27Next step of Makefile tuning: * Use 'make' internal commands for printing ↵Jens Arnold1-5/+3
messages. Saves build time especially on cygwin. * SILENT variable used in more places. * Bitmap build system uses one Makefille less. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11369 a1c6a512-1295-4272-9138-f99709370657
2006-10-23Consistent style of 'make' messages. Always use ranlib after ar.Jens Arnold1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11322 a1c6a512-1295-4272-9138-f99709370657
2006-09-29Allow UI simulator to be build on OS (Slightly updated version of FS5767)Barry Wardell1-0/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11094 a1c6a512-1295-4272-9138-f99709370657
2006-09-28Improve simulator use of multiple codecsSteve Bavin1-16/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11083 a1c6a512-1295-4272-9138-f99709370657
2006-09-28Fixed settings persistence for simulatorsSteve Bavin1-3/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11082 a1c6a512-1295-4272-9138-f99709370657