Commit Graph

194 Commits

Author SHA1 Message Date
Phillip Stephens b8773b3d4c Add missing takeOwnership behavior 2016-03-19 21:08:23 -07:00
Jack Andersen b791b7e426 Humungous refactor 2016-03-04 13:00:12 -10:00
Jack Andersen 92d4334a74 Streamlined validation object usage 2016-03-01 10:28:42 -10:00
Jack Andersen ca0ff04340 void-pointer for MemoryReader constructor 2016-02-15 19:48:03 -10:00
Jack Andersen cf3739fced YAML emitter/parser ownership refinement 2016-01-04 14:00:12 -10:00
Jack Andersen 87013ab673 Added native wstring fileSize method for Win32 2015-11-30 14:34:26 -10:00
Jack Andersen 3dbc746ddd Proper FileReader::readUBytesToBuf return value 2015-11-28 11:43:40 -10:00
Jack Andersen 0a4e8c360e Added ability to opt-out of file reader/writer errors 2015-11-22 17:08:48 -10:00
Jack Andersen df43b72f8a Minor fix; added PRISize macro 2015-11-14 13:59:10 -10:00
Phillip 64f34cc903 Fix error handling 2015-11-14 00:47:05 -08:00
Phillip ab86e2195f Fix Typo 2015-11-13 21:59:17 -08:00
Phillip 63a58265ef Squash MSVC warnings
Unify filename usage
2015-11-13 21:53:13 -08:00
Jack Andersen b6b54d0921 Minor file I/O tweaks 2015-11-12 16:10:50 -10:00
Phillip Stephens 8124d219d9 Fix utility::vsprintf
Fix operator>> (I'm a derp)
2015-10-16 17:25:36 -07:00
Phillip Stephens 1b67cce607 Fix fno-exceptions 2015-10-16 16:42:23 -07:00
Phillip Stephens 1ee7c82d8b Fix GC/Wii linker error
Add example program (Currently only targets wii)
2015-10-16 02:46:18 -07:00
Phillip Stephens 8e8135370e Fix largefilewrapper for GC/Wii 2015-10-16 01:17:22 -07:00
Phillip Stephens 1c0c44938e Fix gc/wii build 2015-10-16 01:07:54 -07:00
Jack Andersen f4716070dd Added built-in DNAType field for YAML classification 2015-09-30 14:37:54 -10:00
Phillip Stephens c241158c7b Remove GPL comments from Athena codebase 2015-09-03 13:05:08 -07:00
Jack Andersen bca146dbfc stripped-down utf8proc added 2015-08-31 11:11:42 -10:00
Jack Andersen 9b6fea36e3 windows fixes and proper UTF-8 conversion 2015-08-30 22:13:07 -07:00
Phillip Stephens 1de67f30b8 * Removal of remaining exceptions 2015-08-29 01:34:22 -07:00
Jack Andersen 66cb6c982e removed codecvt headers 2015-08-24 20:48:53 -10:00
Jack Andersen a145f337c0 Added ownership flag for memory reader 2015-08-23 13:52:01 -10:00
Phillip Stephens 7464c8e5eb add optional mask parameter to crc32 2015-08-17 02:32:03 -07:00
Jack Andersen 02e7bb3fc6 Refactored readBytes() and readUBytes() to return std::unique_ptr 2015-08-05 12:41:06 -10:00
Jack Andersen 84591d4260 Added YAML serialization DNA subclass 2015-08-02 18:29:39 -07:00
Jack Andersen 43c317529c AES optimization and aligned SSE allocators 2015-08-02 18:29:39 -07:00
Jack Andersen b38d7533c5 Exception args should be passed as c-string
(it's a compiled literal after-all)
2015-08-02 18:29:39 -07:00
Jack Andersen ac36bb4f4a added support for wchar_t file paths and more stable windows builds 2015-08-02 18:29:38 -07:00
Phillip Stephens d9c4d3b79b Add error state 2015-08-02 18:29:38 -07:00
Phillip Stephens 8ea5071e0f Remove and replace exceptions 2015-08-02 18:29:38 -07:00
Jack Andersen 78286b0f67 corrected type mismatch 2015-07-21 09:26:02 -10:00
Jack Andersen c6a6d3b9c4 renamed read/writeUnicode methods to be more reflective of functionality 2015-07-21 09:04:25 -10:00
Jack Andersen 6405bffdd2 Un-derpified major derp 2015-07-19 17:48:44 -10:00
Jack Andersen 87306a18d8 minor AES optimization 2015-07-13 16:23:36 -10:00
Jack Andersen 7ec5a5971a compile-time system endian check 2015-07-12 06:51:04 -10:00
Jack Andersen 55adeec69c windows packaging and CMake adjustments 2015-07-10 16:14:06 -10:00
Phillip Stephens 8d3524b1f6 Fix sign bug
Prevent blockSize from exceeding file's length
2015-07-09 20:47:56 -07:00
Phillip Stephens a7c180db00 * Add support for cached reads 2015-07-09 20:32:55 -07:00
Jack Andersen 916515f0d7 OS X build fixes 2015-07-08 14:57:51 -10:00
Jack Andersen 44e25e09ca updated MemoryCopyWriter 2015-07-07 20:34:59 -10:00
Jack Andersen ec38ba088e added buffer-copying subclass to MemoryReader/Writer 2015-07-07 20:03:08 -10:00
Jack Andersen 97dfabb265 significant virtual-method refactor to streaming interface 2015-07-07 18:01:13 -10:00
Jack Andersen a63da8db2f header-based read/write optimizations 2015-07-02 13:36:17 -10:00
Jack Andersen fa016115c2 const buffer pointer for write[U]Bytes 2015-06-30 17:01:04 -10:00
Jack Andersen a0f0690719 confirmed linux build working; solved signing warnings 2015-06-20 08:07:11 -10:00
Jack Andersen 5a0f2e8ed4 MSVC build fixes 2015-06-19 21:40:15 -07:00
Jack Andersen 687a7eef64 fixed length string read refinement 2015-06-19 10:54:21 -10:00
Jack Andersen e641dbbe4b added seek directive to fixed-length string reads 2015-06-19 10:40:59 -10:00
Jack Andersen 3dfb001f3d added fixed-length string writing 2015-06-19 10:12:25 -10:00
Jack Andersen fd3db3e1db fix for vector readers 2015-06-18 19:33:46 -10:00
Jack Andersen 7cdfcab55a lots of new 'atdna' types; travis update 2015-06-18 19:18:39 -10:00
Phillip Stephens 6a611ef2cc * Fix last commit 2015-05-20 22:41:29 -07:00
Phillip Stephens d5ccf159f7 * Fix Wii/GC Compiling
* Initial FileInfo/Dir APIs
* Get rid of type punning warnings
2015-05-20 22:35:26 -07:00
Jack Andersen 3223d3faa6 Merge branch 'file-dir-api' of https://github.com/Antidote/Athena into file-dir-api 2015-05-20 19:16:28 -10:00
Jack Andersen 92d86a2673 More portable 'utimes' 2015-05-20 19:14:44 -10:00
Phillip Stephens 47dafe3251 * struct stat64 -> stat64_t 2015-05-20 22:04:35 -07:00
Phillip Stephens 011496db8b * Fix Wii/GC Compiling
* Finish initial FileInfo/Dir APIs
* Get rid of type punning warnings
2015-05-20 21:58:21 -07:00
Phillip Stephens 29a203522d * Fix merge 2015-05-18 20:36:45 -07:00
Phillip Stephens 6ee11b9a08 * Fix styling 2015-05-18 20:24:56 -07:00
Phillip Stephens 423a9a37d2 Reimplement Exceptions. 2015-05-18 16:38:02 -07:00
Phillip Stephens 01f989c21c Initial API implementation 2015-05-18 14:03:13 -07:00
Jack Andersen 20e12b86ca apple compile fix 2015-05-17 16:24:00 -10:00
Antidote 54f884c2f7 * Restore pkgconfig file
* Fix MCSlot
2015-05-17 18:45:55 -07:00
Antidote a563d65388 * Move MCSlot.hpp to it's proper home 2015-05-17 18:33:35 -07:00
Phillip Stephens 8386fa54a0 * Add formattedMessage to Exception
* Add missing IStreamWriter::fill implementations in FileWriter
2015-04-30 21:16:18 -07:00
Jack Andersen 00771aed2d inlined byte-swapping utilities 2015-04-10 18:12:42 -10:00
Jack Andersen e4f8c2959f lots of new streaming interface additions 2015-04-10 14:04:13 -10:00
Jack Andersen 320e1060ca LZO integer-type fix 2015-04-06 19:52:49 -10:00
Jack Andersen b21441cc11 Added OS X filesystem-support 2015-04-04 14:35:32 -10:00
Phillip Stephens 504854f433 * Allow null buffer in MemoryReader 2015-03-11 13:10:18 -07:00
Phillip Stephens 190f1e8c17 * Fix commit
* Fix LZO implementation (use lzo1x_decompress_safe)
2015-03-01 13:22:59 -08:00
Phillip Stephens c28cfbaba6 * Refactor Stream and *Reader classes 2015-03-01 12:42:39 -08:00
Phillip Stephens 39f7ed55fc * Add maxlen to readString 2015-01-28 22:20:57 -08:00
Phillip Stephens e868c31253 * Finish modularization 2015-01-24 20:29:08 -08:00
Antidote 097a507bd0 * Visual Studio fixes (requires VS2013 at the minimum) 2014-12-28 20:46:43 -08:00
Antidote f322f1d7e7 * Change Athena::utility::fileSize to use stat64 instead of ftello
* Fix output of ftello64 in win32_largefilewrapper
2014-12-28 14:38:55 -08:00
Phillip Stephens be135d1caa * Start to fill in save related classes
* Fix silly bug in WiiSave
* Fix typos in Utilitiy.*
2014-11-28 19:32:37 -08:00
Phillip Stephens 6976eda717 * Add configuration for Sakura specific types 2014-09-28 19:32:31 -07:00
Phillip Stephens 8b80f486ad * Change default constructor for BinaryWriter to accept null buffers 2014-09-19 18:16:17 -07:00
Phillip Stephens f92811004f * Added proper tree generation for WiiSave 2014-09-19 04:54:56 -07:00
Phillip Stephens 6187eb3f77 * Fix LZO 2014-09-09 09:53:32 -07:00
Phillip Stephens 2fa715cbbf * Unbreak compression 2014-09-09 09:46:05 -07:00
Phillip Stephens e8fad79134 * Add LZ77 Compression 2014-09-09 09:36:29 -07:00
Phillip Stephens 5a621215de * Refactor compression and utility 2014-09-09 03:19:19 -07:00
Phillip Stephens f3e9fb4f70 * Fix build 2014-08-16 18:48:27 -07:00
Phillip Stephens 47054ea881 * Add PHYSFSFileReader class 2014-07-01 20:32:44 -07:00
Phillip Stephens 5a26e21c5b * Fix Athena::utility::fillRandom 2014-06-29 17:26:34 -07:00
Phillip Stephens d113a91822 * Fix infinite recursion in BinaryReader::readUint64 2014-06-29 13:26:08 -07:00
Phillip Stephens 3b76c4f02f * Fix ATHENA_NO_SAVES 2014-06-28 08:38:50 -07:00
Phillip Stephens 5f74cdb9ed * Rename datatypes to prevent collision 2014-06-17 21:51:18 -07:00
Phillip Stephens cc71bec5d7 * Fix silly bug 2014-06-02 20:09:40 -07:00
Phillip Stephens 05db171ac4 * Add Variadic arguments to THROW_* macros 2014-05-30 17:40:35 -07:00
Phillip 32f5b9cc03 * Fix bug in LZO 2014-05-23 21:38:41 -07:00
Phillip Stephens dfb0ce0b4f * Add fill to Stream 2014-05-15 00:41:54 -07:00
Phillip Stephens a19520ea1e * Add windows specific wrappers 2014-05-14 22:42:20 -07:00
Phillip Stephens c0974d511a * Added filepath implementation in BinaryReader 2014-04-29 19:29:51 -07:00
Phillip Stephens da7781f78e * Revert swap* 2014-04-28 19:31:32 -07:00