qt: Add floppy support to media history manager
This commit is contained in:
@@ -161,7 +161,13 @@ plat_timer_read(void)
|
||||
FILE *
|
||||
plat_fopen(const char *path, const char *mode)
|
||||
{
|
||||
#if defined(Q_OS_MACOS) or defined(Q_OS_LINUX)
|
||||
QFileInfo fi(path);
|
||||
QString filename = fi.isRelative() ? usr_path + fi.filePath() : fi.filePath();
|
||||
return fopen(filename.toUtf8().constData(), mode);
|
||||
#else
|
||||
return fopen(QString::fromUtf8(path).toLocal8Bit(), mode);
|
||||
#endif
|
||||
}
|
||||
|
||||
FILE *
|
||||
|
||||
Reference in New Issue
Block a user