Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/archivers/ccmix/files/patch-src_gmdedit_gmdedit.cpp
16461 views
1
--- src/gmdedit/gmdedit.cpp.orig 2017-06-12 14:07:35 UTC
2
+++ src/gmdedit/gmdedit.cpp
3
@@ -83,10 +83,6 @@ int main(int argc, char** argv) {
4
std::fstream ofh;
5
std::vector<t_namepair> names;
6
7
- ifh.open(argv[1], std::ios_base::in|std::ios_base::binary);
8
- gmd.readDB(ifh);
9
- ifh.close();
10
-
11
if(argc < 4){
12
//menu();
13
std::cout << "Use: gmdedit gmdpath additionspath newgmdpath\n";
14
@@ -106,6 +102,10 @@ int main(int argc, char** argv) {
15
}
16
}
17
}
18
+
19
+ ifh.open(argv[1], std::ios_base::in|std::ios_base::binary);
20
+ gmd.readDB(ifh);
21
+ ifh.close();
22
23
for(unsigned int i = 0; i < names.size(); i++) {
24
gmd.addName(game, names[i].first, names[i].second);
25
26