Skip to content

Commit

Permalink
Fixed Linux Download Folder Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
LRFLEW committed Jan 25, 2016
1 parent b6dc070 commit 2a524ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OpenRCT2Launcher/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ bool Updater::extract(QByteArray &data) {
while (archive_read_next_header(a, &entry) == ARCHIVE_OK) {
quint16 type = archive_entry_filetype(entry);
QString name = archive_entry_pathname(entry);

#ifdef Q_OS_LINUX
if (name.startsWith("OpenRCT2/")) {
name.remove(0, 9);
if (name.isEmpty()) continue;
}
#endif

if (type == AE_IFDIR) {
bin.mkdir(name);
} else if (type == AE_IFREG) {
Expand Down

0 comments on commit 2a524ec

Please sign in to comment.