Luke Street
4cf61b7d5e
Use UTF-8 exclusively internally
2021-06-28 18:58:22 -04:00
Phillip Stephens
1111fb4839
Fix corruption issues while writing memory card to disk
2021-05-02 15:05:34 -07:00
Luke Street
106bb02fbf
Fix -Wstringop-truncation issues
2021-04-05 13:22:56 -04:00
Luke Street
b585305009
Add AsyncIONX.cpp
2020-10-21 00:45:02 -04:00
Luke Street
6f5cb6f972
GCC nonstring fixes
2020-10-21 00:44:45 -04:00
Luke Street
b63f7c6401
AsyncIOPosix: Add mode_t argument to open
2020-06-24 12:05:55 -04:00
Phillip Stephens
4891a95688
Fix corrupted memory cards
2020-04-15 04:26:14 -07:00
Phillip Stephens
35e5c7c90f
Merge pull request #12 from lioncash/const
...
General: Make member functions const where applicable
2019-09-03 00:37:32 -07:00
Lioncash
ed2a6b3ce8
Card: Make querying functions const member functions where applicable
...
These don't modify member state, so they can be made const .
2019-09-02 08:26:43 -04:00
Lioncash
66ce5ed823
Directory: Make indexForFile() a const member function
...
This doesn't modify instance state, so it can be turned into a const
member function.
2019-09-02 08:20:50 -04:00
Lioncash
69d24d1027
General: Use std::array for constructors where applicable
...
Same behavior, but ensures input absolutely satisfies the total amount
of data that needs to be copied.
2019-09-02 08:14:44 -04:00
Lioncash
1779e14bcc
Directory: Avoid use of unnamed struct in union
...
Anonymous structs have a limitation on GCC when involving non-trivial
default constructors, as it's a compiler extension and not actually
standard C++ to use anonymous structs. We can give the struct a concrete
name, which fixes this issue.
2019-09-02 03:30:58 -04:00
Lioncash
e186d1498f
Revert "Revert "General: Use std::array where applicable""
...
This reverts commit 698e37d6a4
.
2019-09-02 00:34:16 -04:00
Phillip Stephens
698e37d6a4
Revert "General: Use std::array where applicable"
2019-09-01 11:26:50 -07:00
Phillip Stephens
9484bf40f9
Merge pull request #8 from lioncash/game
...
Card: Zero out game array within setCurrentGame for nullptr
2019-09-01 11:05:56 -07:00
Lioncash
54f9a11012
Card: Eliminate a few hardcoded constants
2019-08-31 22:27:54 -04:00
Lioncash
215cb25c5c
Card: Zero out game array within setCurrentGame for nullptr
...
Previously this was zeroing out the maker array, which it shouldn't be
doing.
2019-08-31 22:20:30 -04:00
Lioncash
3e64021400
General: Use std::array where applicable
...
Same behavior, but with stronger typing. We can also eliminate usages of
magic values in some places.
2019-08-31 22:14:42 -04:00
Lioncash
7e3a2370c5
General: Avoid indirect includes
...
Ensures all inclusions are made where necessary.
2019-08-30 10:35:03 -04:00
Jack Andersen
8053d1125b
Windows build fixes
2019-06-12 15:33:09 -10:00
Jack Andersen
51c7163cfd
Better CMake dependency handling
2019-06-11 16:04:15 -10:00
Phillip Stephens
82c607ec40
Fix raw pointer bug
2019-06-02 20:35:04 -07:00
Phillip Stephens
da4008bf50
Prevent garbage data from being written to memcard
2019-06-02 20:31:57 -07:00
Jack Andersen
f126245eef
New code style refactor
2018-12-07 19:20:24 -10:00
Jack Andersen
37461f2165
Add public waitForCompletion method
2018-06-16 10:08:13 -10:00
Jack Andersen
3b10be80f7
Implement Win32 AsyncIO
2018-02-06 15:36:51 -10:00
Jack Andersen
bdf4bd07a8
Use asynchronous I/O for Card access
2018-02-05 23:34:01 -10:00
Jack Andersen
8052a6372e
Huge compile performance refactor
2017-12-28 22:07:49 -10:00
Jack Andersen
ffbe61508f
string_view refactor
2017-11-12 20:18:30 -10:00
Jack Andersen
03f16f7f48
Checksum recalculate fix for getStatus()
2017-02-06 16:25:08 -10:00
Jack Andersen
bb972f8f36
Specify binary mode when reopening card file
2017-02-03 22:19:36 -10:00
Jack Andersen
537cceca49
Card writing bug fixes
2017-02-03 17:43:49 -10:00
Jack Andersen
11d1c676c4
More stable index-flipping for write ops
2017-02-02 20:21:49 -10:00
Phillip Stephens
8ed773d16f
Revert file index 0 avoidance
2017-01-29 18:14:18 -08:00
Jack Andersen
408ac735b4
FileHandle refactor
2017-01-23 21:40:47 -10:00
Jack Andersen
b5f5104877
Checksum and Card copy fixes
2017-01-23 15:50:54 -10:00
Phillip Stephens
3121f67f4d
Better block allocation handling
2016-12-29 13:37:45 -08:00
Jack Andersen
0869c7b5b5
This had better fix S_ISREG on Windows
2016-12-28 12:05:48 -10:00
Jack Andersen
7fb2e91f81
stat include to make windows happy
2016-12-28 11:56:09 -10:00
Jack Andersen
7315a1dedd
getStatus and setStatus implementation
2016-12-28 11:39:10 -10:00
Jack Andersen
223ea9a56e
Changes to support CMemoryCardSys integration
2016-12-27 22:50:25 -10:00
Phillip Stephens
31029767c8
Fix file copy operation
2016-12-23 02:13:01 -08:00
Phillip Stephens
8d2d1134ae
Proper getSerial implementation
2016-12-23 01:48:32 -08:00
Phillip Stephens
fa70961027
Handle no-copy/no-move permissions
2016-12-17 22:03:25 -08:00
Phillip Stephens
b082a92fb2
Formatting pass
2016-09-05 13:56:39 -07:00
Jack Andersen
7ff0fae093
Merge commit 'e7d49'
2016-06-30 09:41:50 -10:00
Jack Andersen
e7d49f7f3b
Add winsupport from hecl
2016-06-30 09:40:35 -10:00
Phillip Stephens
a34b38f8e3
Add directory iteration
2016-06-30 10:36:04 -07:00
Phillip Stephens
369d2cc23f
Clarify API usage
...
IconAddress makes no sense, points to the start of the banner, with the icon directly following,
2016-06-30 09:15:05 -07:00
Phillip Stephens
4d9bb795b9
Complete base API
2016-06-30 02:53:13 -07:00