Commit Graph

53 Commits (9618f31959e4e65521b4997d6bc02f7302c39b43)

Author SHA1 Message Date
Icedream 9618f31959 Remove redundant code. 2015-04-19 00:22:05 +02:00
Icedream 456cb2d593 Fix stack overflow when trying to minify media files. 2015-04-19 00:21:30 +02:00
Icedream dcdebcced4 Fix assembly load error where taglib-sharp.dll could not be found. 2015-04-18 23:47:55 +02:00
Icedream 69913ce25d Optimize --version for semantic versioning. 2015-04-18 23:27:12 +02:00
Icedream cd6d33f018 Add semantic versioning via GitVersionTask. 2015-04-18 23:15:03 +02:00
Icedream 7b59629c93 Upgrade to .NET Framework 4.5 and update dependencies. 2015-04-18 23:08:07 +02:00
Icedream d4e06174b8 Fix reference path for TagLib#. 2015-04-09 15:56:26 +02:00
Icedream 1f6cd33847 Just a bit of extra info in the source code. 2014-12-13 22:02:52 +01:00
Icedream 850f291bff Updated Visual Studio version. 2014-12-13 20:24:35 +01:00
Icedream 31cc47c4bb Correct variable name. 2014-12-13 20:24:18 +01:00
Icedream 0ae2078c7b Correct version information. 2014-12-11 08:39:02 +01:00
Icedream c9edb46159 Add --version parameter to print version. 2014-12-11 08:31:39 +01:00
Icedream 1a4a771697 Add basic media minifying (only strips tags and checks for corruption). 2014-12-11 06:25:36 +01:00
Icedream d247c85ee9 Just a tiny bit of extra security. 2014-12-11 05:36:03 +01:00
Icedream a183baebb4 I knew I forgot something... fixed greedy regex which was supposed to be non-greedy for Lua minification. 2014-12-11 05:04:30 +01:00
Icedream d9942319a5 Making lua minimizing optional. The minimizing is not optimal yet, so help would be appreciated. 2014-12-11 04:44:22 +01:00
Icedream eb36e6013c Fix LuaAddonFileInfo returning NULL content. 2014-12-11 04:07:13 +01:00
Icedream 6b89b38b96 Process Lua scripts by stripping comments. This can save up a few bytes up to kilobytes. 2014-12-11 03:43:36 +01:00
Icedream 8c57d7befb Some very minimal code optimization. 2014-12-11 03:41:32 +01:00
Icedream d7661343bb Allow argument chaining.
Example to extract test.gma into test and afterwards overwriting test.gma using files in test2:
  gmadsharp extract test.gma test create test2 test.gma
2014-12-11 03:39:31 +01:00
Icedream ca52705a04 Correcting/adding some debug output. 2014-12-11 03:37:49 +01:00
Icedream fb68de711b Remove unused CRC32 implementations and rename ParallelCRC to Crc32. 2014-12-11 02:48:59 +01:00
Icedream e0a64208b2 More documentation and overriding. 2014-12-11 02:48:31 +01:00
Icedream 567f8b7e4a Source code cleanup. 2014-12-11 02:26:08 +01:00
Icedream 24e7674f57 Removed exception when CRC32 hash is mismatching for the base addon, kept it for files inside the addon. Referring to #2. 2014-12-11 02:09:32 +01:00
Icedream d35c00dbac Fix offset issue with imported addon files. Closes #1. 2014-12-11 02:08:19 +01:00
Icedream 1294b5cacd Fix no arguments causing crash. 2014-10-23 04:03:20 +02:00
Icedream 5d67d3e720 Switch from Windows-1252 encoding to ISO-8859-1 encoding for mono compatibility. 2014-10-23 02:49:01 +02:00
Icedream 1f07f6b053 Rename assembly to gmadsharp. 2014-10-23 02:31:54 +02:00
Icedream ffb18b3641 Make SegmentedAddonFileInfo use cached values, (very) slight performance improvement. 2014-10-23 02:29:37 +02:00
Icedream 5ffdbcbbb3 File count technically can't exceed uint.MaxValue/2 elements... 2014-10-23 02:28:05 +02:00
Icedream 499dfb7c36 Fix dependency path. 2014-10-23 02:25:11 +02:00
Icedream a57179eb22 Restore NuGet packages automatically. 2014-10-23 02:15:47 +02:00
Icedream abe73519d6 Some more argument checking + usage info. 2014-10-22 23:17:24 +02:00
Icedream d39fe89337 Refactoring, especially namespaces just to keep it easy for myself. 2014-10-22 22:56:05 +02:00
Icedream 9917ac4f9f Fix null-terminated string writing (BinaryWriter prefixed it with a length byte which is unneeded). 2014-10-22 19:55:45 +02:00
Icedream f9b647c38d Show description when extracting (the trimmed down addon.json). 2014-10-22 19:55:20 +02:00
Icedream bd22f08ecf Adding author field to addon.json. 2014-10-22 19:51:18 +02:00
Icedream f67b95007a Some code cleanup. 2014-10-22 19:48:30 +02:00
Icedream 5582debcee Properly default Version field to 1 and ignore fields when left out intentionally. 2014-10-22 19:47:00 +02:00
Icedream c6118e7ca2 Properly exporting information from addon.json. 2014-10-22 19:42:45 +02:00
Icedream 2d92a99e35 Add version field and make CheckForErrors less accessible from outside. 2014-10-22 19:42:25 +02:00
Icedream ff9f1bd17f Enforce .gma file extension. 2014-10-22 19:34:42 +02:00
Icedream 67ec2c70d6 Fixing AddonWhitelist logic. 2014-10-22 19:20:59 +02:00
Icedream d7844f3df5 Forgot to initialize the whitelist regex cache. 2014-10-22 19:09:26 +02:00
Icedream 2ab88b8a24 Fixed to the point where addon extraction works without issues.
- Don't dispose import stream after importing.
- Added debug lines
- Fixed metadata not getting imported and therefore getting information out of sync
- Added some generic debug assertions for official-gmad-generated addons, will be removed later
- Fixed whitelist regex generation code - missing brackets
- Fixed SegmentedAddonFileInfo.GetContents caused by file seek for long filesize compatibility.
2014-10-22 19:07:03 +02:00
Icedream 919f45c9f2 Implemented some addon.json stuff. 2014-10-22 16:29:51 +02:00
Icedream 41375e121a Fix actual export file writing (position was at the end when it's not supposed to be). 2014-10-22 16:01:44 +02:00
Icedream c687de01de Fix relative uris. 2014-10-22 16:01:27 +02:00
Icedream 32d4aa96c3 Modify bin and obj paths. 2014-10-22 16:01:19 +02:00