kool65
Still Fresh
Hi,
I'm currently writing a basic media player for use in the car with touchscreen capability. I'm writing this in C++ and SDL and is basically my first C++ project.
A couple of questions :-
1) What is the best way (or is there a standard way) to determine what the removable media paths are (ie /media/mmcxxx). I want to do an initial search for the music directory. As a start I have found that I can do "mount | grep media | grep dev", does someone have a better way?
2) Since I'm running this also on a desktop linux box I would like the program to determine that it is running on the pandora.
Something like this would probably work...
if (FileExists("/pandora/appdata/op_lcdsettings")) {
// Running on Pandora
} else {
// Running on other
}
Is there a better way?
I'm currently writing a basic media player for use in the car with touchscreen capability. I'm writing this in C++ and SDL and is basically my first C++ project.
A couple of questions :-
1) What is the best way (or is there a standard way) to determine what the removable media paths are (ie /media/mmcxxx). I want to do an initial search for the music directory. As a start I have found that I can do "mount | grep media | grep dev", does someone have a better way?
2) Since I'm running this also on a desktop linux box I would like the program to determine that it is running on the pandora.
Something like this would probably work...
if (FileExists("/pandora/appdata/op_lcdsettings")) {
// Running on Pandora
} else {
// Running on other
}
Is there a better way?