Using QString now,
fileinfo works now
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
QImage loadTga(const char* filePath, bool &success)
|
||||
QImage loadTga(QString filePath, bool &success)
|
||||
{
|
||||
QImage img;
|
||||
if (!img.load(filePath))
|
||||
{
|
||||
|
||||
// open the file
|
||||
std::fstream fsPicture(filePath, std::ios::in | std::ios::binary);
|
||||
std::fstream fsPicture(filePath.toStdString().c_str(), std::ios::in | std::ios::binary);
|
||||
|
||||
if (!fsPicture.is_open())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user