Remove the mmap usage. Do not use memory buffer to hold the whole file.

This commit is contained in:
codestation
2014-01-05 00:41:22 -04:30
parent 9784332bae
commit a0d9e03d17
4 changed files with 79 additions and 37 deletions

View File

@@ -61,6 +61,9 @@ private:
void vitaEventSendObjectMetadataItems(vita_event_t *event, int eventId);
void vitaEventSendNPAccountInfo(vita_event_t *event, int eventId);
static int readCallback(unsigned char *data, unsigned long wantlen, unsigned long *gotlen);
static int writeCallback(const unsigned char *data, unsigned long size, unsigned long *written);
void processEvent();
bool isActive();
void setDevice(vita_device_t *device);
@@ -75,6 +78,7 @@ private:
QSemaphore sema;
static metadata_t g_thumbmeta;
static QFile *m_file;
signals:
void finishedEventLoop();