12 Commits

Author SHA1 Message Date
Luke Street 3643a369ad Split up configPath -> userPath/cachePath 2026-05-13 00:45:19 -06:00
Pieter-Jan Briers d61a1824ac Fix handling of Unicode paths on Windows (#166)
* Fix handling of Unicode paths on Windows

I love C++

* Reduce the amount of reinterpret_casts

* Okay? Don't commit the file CLion? Why not?

* Fix texture replacements too
2026-05-10 10:54:59 -06:00
Pieter-Jan Briers 9ff83bcb97 Change CARD region based on loaded game disc (#137)
Region selection is based on game code, which isn't strictly correct but good enough for our use case.
2026-04-24 07:21:59 -07:00
CraftyBoss be1395c134 fix cardProbeFile not working properly with empty card directories, rename enum values in CARDFileType (#136) 2026-04-23 23:26:55 -07:00
CraftyBoss a801671643 Card gci folder update (#135)
* add ability to set path of card image before CARDInit

* begin work on updating card class to support gci folders

a lot of work will just be directly reading from whatever folder is supplied, instead of relying on an always open FileIO handle

* swap to interface system for easier code seperation, begin actually planning out logic for gci loading

* fix wrong name for func, add modified time to new gci file entry

* get gci folder working

tp seems to be happy with everything ive done, the only funcs im worried about are getSerial and getChecksum as those dont do anything atm.

* fix createFile not assigning file index to output FileHandle, CARDSetLoadType now takes an enum

* make probeCardFile a virtual func so GciFolder and RawFile can both implement their own, bit of cleanup
2026-04-23 22:39:42 -07:00
Phillip Stephens 20a23c7d22 Fix corrupted card on init if card image didn't exist (#129) 2026-04-18 21:27:09 -07:00
Phillip Stephens f8fbfea24c Cleanup CARD and silence clang-tidy warnings, closes #102 (#103) 2026-04-07 10:22:17 -07:00
Roman Sandu 854ce1c178 Fixes for forest (#101) 2026-04-06 21:12:29 -06:00
CraftyBoss 5a23bcbd5e Set path of card image before CARDInit (#87)
* add ability to set path of card image before CARDInit

* add missing func to osx/linux variant of ResolveDolphinCardPath

* remove format specifiers in formatting funcs

* missed some oops

* refactor card loading to allow loading slot A and B if present

if neither slots have card images, a slot A image will be created at the save directory
this commit also changes card image names to "MemoryCardA/B.USA.raw" to fit with dolphins naming conventions (region code will always be USA unless changed in the macro, which could eventually be changed to be something in aurora config)

* only remove file name from CARDSetBasePath if not a directory
2026-04-05 23:14:15 -07:00
Dávid Balatoni 37631c3bf3 Implement CARDGetSectorSize (#88) 2026-04-02 23:39:31 -06:00
Phillip Stephens 95803b7e7d CARD: Commit card contents when modified 2026-03-11 23:54:28 -07:00
CraftyBoss 18cdf141cb Implement CARD API based on kabufuda (#53)
Original repository: https://github.com/AxioDL/kabufuda
Cleaned up & converted to `aurora::card`, with SDL3 file I/O.

---------

Co-authored-by: Phillip Stephens <antidote.crk@gmail.com>
Co-authored-by: Jack Andersen <jackoalan@gmail.com>
Co-authored-by: Lioncash <mathew1800@gmail.com>
Co-authored-by: Luke Street <luke@street.dev>
2026-03-10 19:49:34 -06:00