From 8c8e66875853c59a51606146e8784bdfbd518658 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 11 Jun 2010 02:25:18 +0000 Subject: [PATCH] Only include libresrc.h once rather than once per file packed Originally committed to SVN as r4475. --- aegisub/tools/common-respack.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/tools/common-respack.cpp b/aegisub/tools/common-respack.cpp index 91745a888..46fb08c3f 100644 --- a/aegisub/tools/common-respack.cpp +++ b/aegisub/tools/common-respack.cpp @@ -113,6 +113,8 @@ int main(int argc, const char *argv[]) { ofstream outH(headerFileName.GetFullPath().char_str()); ofstream outC(argv[1]); + outC << "#include \"libresrc.h\"" << endl; + wxRegEx nameCleaner("[^A-Za-z_0-9]"); wxString filename; FileIterator iter(argc, argv); @@ -134,7 +136,6 @@ int main(int argc, const char *argv[]) { nameCleaner.ReplaceAll(&identifier, "_"); std::string tmp(identifier.mb_str()); - outC << "#include \"libresrc.h\"" << endl; outC << "const unsigned char " << tmp << "[] = {"; bool first = true; char c[1];