mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 10:32:42 -05:00
Move some helper functions out of Autodetection.
Those functions are rather general, so put them into the Utils class instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30146 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b7fe90aa36
commit
9c9bc1216c
8 changed files with 231 additions and 241 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#include "bootloaderinstallipod.h"
|
||||
|
||||
#include "../ipodpatcher/ipodpatcher.h"
|
||||
#include "autodetection.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
BootloaderInstallIpod::BootloaderInstallIpod(QObject *parent)
|
||||
|
|
@ -226,7 +226,7 @@ BootloaderInstallBase::Capabilities BootloaderInstallIpod::capabilities(void)
|
|||
bool BootloaderInstallIpod::ipodInitialize(struct ipod_t *ipod)
|
||||
{
|
||||
if(!m_blfile.isEmpty()) {
|
||||
QString devicename = Autodetection::resolveDevicename(m_blfile);
|
||||
QString devicename = Utils::resolveDevicename(m_blfile);
|
||||
if(devicename.isEmpty()) {
|
||||
emit logItem(tr("Error: could not retrieve device name"), LOGERROR);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue