tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

The menu has cool background and we save on computer resource when loading file #712

Closed janclod closed 1 year ago

janclod commented 1 year ago

We load file directly from memory without copying it. I would suggest refactor the whole resource handling like this.

    QResource artWork1 { ":/276813041_drakkar__dragon__realistic__flying__paper__rock__scissors__RGB__3.png" };
    m_artwork_1.loadFromMemory(artWork1.data(), artWork1.size());

Probably safe to load from memory according to this.