mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
use static QFile::copy() method
This commit is contained in:
parent
3cb647bb2d
commit
7e6816959a
@ -72,7 +72,7 @@ void performNativeCopy(QString src, QString dst)
|
||||
auto dstStr = QAndroidJniObject::fromString(dst);
|
||||
QAndroidJniObject::callStaticObjectMethod("eu/vcmi/vcmi/util/FileUtil", "copyFileFromUri", "(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)V", srcStr.object<jstring>(), dstStr.object<jstring>(), QtAndroid::androidContext().object());
|
||||
#else
|
||||
QFile(src).copy(dst);
|
||||
QFile::copy(src, dst);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user