Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:games
stargus
0019-Fix-MPQ-archive-scanner-add-more-file-path...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0019-Fix-MPQ-archive-scanner-add-more-file-paths-and-simp.patch of Package stargus
From 889dcb3bc53f9f2c9b476960da6ddfd47db65542 Mon Sep 17 00:00:00 2001 From: Hypexed <hypexed@yahoo.com.au> Date: Thu, 18 May 2017 00:03:10 +1000 Subject: [PATCH 19/26] Fix MPQ archive scanner, add more file paths and simplify code. --- startool.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/startool.cpp b/startool.cpp index 9541c49..205e74a 100644 --- a/startool.cpp +++ b/startool.cpp @@ -127,7 +127,7 @@ static inline unsigned int Swap32(unsigned int D) { /** ** Mpq file */ -FILE *MpqFD; +FILE *MpqFD = NULL; static CMpq *Mpq; char listfile[1024]; @@ -236,7 +236,13 @@ Control CDTodo[] = { {F,0,"","install.exe" __4}, {F,0,"","Install.exe" __4}, {F,0,"","starcraft.mpq" __4 }, + {F,0,"","Starcraft.mpq" __4 }, {F,0,"","StarCraft.mpq" __4 }, + {F,0,"","installer tome.mpq" __4 }, + {F,0,"","Installer Tome.mpq" __4 }, + {F,0,"","starcraft archive" __4 }, + {F,0,"","StarCraft Archive" __4 },` + // Fonts {N,0,"font8","files\\font\\font8.fnt" __4}, {N,0,"font10","files\\font\\font10.fnt" __4}, @@ -4191,6 +4197,9 @@ int main(int argc, char **argv) printf("Please be patient, the data may take a couple of minutes to extract...\n"); fflush(stdout); + len = sizeof(CDTodo) / sizeof(*CDTodo); + while( + for (i = 0; i <= 5; ++i) { Control *c; unsigned len; -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor