forked from len0rd/rockbox
simulator: Fully simulate external storage.
The external storage will be created during make install, as simext folder in the build directory. Upon pressing the e key the sim will mount (virtually ) this into the root directory. It can be accessed in the same way as an sd/mmc card on real targets. This requires quite some path trickery in io.c. Change-Id: I2fa9070a3146101ec5655b5b4115ca349d1d4bf4
This commit is contained in:
parent
0f928f8785
commit
46137ebd4d
4 changed files with 72 additions and 21 deletions
|
@ -50,9 +50,4 @@ int disk_unmount(int drive);
|
|||
int disk_get_sector_multiplier(IF_MD_NONVOID(int drive));
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_HOTSWAP
|
||||
bool volume_removable(int volume);
|
||||
bool volume_present(int volume);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -56,6 +56,12 @@
|
|||
#define VOL_NAMES "<HD%d>"
|
||||
#define VOL_ENUM_POS 3
|
||||
#endif /* CONFIG_STORAGE */
|
||||
|
||||
#ifdef HAVE_HOTSWAP
|
||||
bool volume_removable(int volume);
|
||||
bool volume_present(int volume);
|
||||
#endif
|
||||
|
||||
#else /* empty definitions if no multi-volume */
|
||||
#define IF_MV(x...)
|
||||
#define IF_MV_NONVOID(x...) void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue