File 0023-Fix-MPQ-archive-scanner-add-more-file-paths-and-simp.patch of Package stargus

From ecf12ed35fff23bbb4e7f74dc5a02199957dac51 Mon Sep 17 00:00:00 2001
From: Hypexed <hypexed@yahoo.com.au>
Date: Sat, 20 May 2017 02:10:07 +1000
Subject: [PATCH 23/26]   Fix MPQ archive scanner, add more file paths and
 simplify code.

I refactored the MPQ archive scanner so it was simpler and more adaptable. In addition, I modified the code so that a "dummy" archive file entry terminated the list, so that file names can be simply added or removed at will. It will now scan through for all file names. Once found and opened it fall through the name list then start extracting the data. If it ends up at the terminator and no archive has been opened it will then abort with a fatal error. I also added blank lines for output readability. :-)
---
 startool.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/startool.cpp b/startool.cpp
index 06d5436..05bd31f 100644
--- a/startool.cpp
+++ b/startool.cpp
@@ -4232,6 +4232,7 @@ int main(int argc, char **argv)
 							} else {
 								sprintf(buf, "%s/%s", archivedir, c[u].ListFile);
 							}
+							
 							printf("Archive \"%s\"\n", buf);
 							if (OpenArchive(buf) == -1) {
 								printf("Could not open archive \"%s\", skipping\n\n", buf);
@@ -4300,6 +4301,7 @@ int main(int argc, char **argv)
 			unlink(buf);
 		}
 	}
+	
 	delete Mpq;
 
 	CreatePanels();
-- 
2.16.4

openSUSE Build Service is sponsored by