summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZephiles <cae222@yahoo.com>2022-05-06 16:32:39 -0500
committerZephiles <cae222@yahoo.com>2022-05-06 16:37:11 -0500
commit0d01c735382137ee5ad8333babf365cc47d14bf3 (patch)
tree510eafb5288ddd29e8ef1ae049f269ac4fecc824
parent132cde3a527da4aee8202be2c4b30e9b9b5ccbbb (diff)
Adjust functions in card.h to take const char* instead of char*
The C++ definitions of these functions take a const char*, and this also avoids having to const_cast to pass a char* to them.
-rw-r--r--include/gc_wii/card.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/gc_wii/card.h b/include/gc_wii/card.h
index c75d9ea..629d4ec 100644
--- a/include/gc_wii/card.h
+++ b/include/gc_wii/card.h
@@ -117,10 +117,10 @@ namespace libtp::gc_wii::card
int32_t CARDCheck( int32_t chan );
// int32_t CARDCheckAsync( int32_t chan, CARDCallback callback );
- // int32_t CARDCreate( int32_t chan, char* fileName, u32 size, CARDFileInfo*
- // fileInfo ); int32_t CARDCreateAsync( int32_t chan, char* fileName, u32 size,
+ // int32_t CARDCreate( int32_t chan, const char* fileName, u32 size, CARDFileInfo*
+ // fileInfo ); int32_t CARDCreateAsync( int32_t chan, const char* fileName, u32 size,
// CARDFileInfo* fileInfo, CARDCallback callback ); int32_t CARDDelete( int32_t
- // chan, char* fileName ); int32_t CARDDeleteAsync( int32_t chan, char*
+ // chan, const char* fileName ); int32_t CARDDeleteAsync( int32_t chan, const char*
// fileName, CARDCallback callback ); int32_t CARDFastDelete( int32_t chan,
// int32_t fileNo ); int32_t CARDFastDeleteAsync( int32_t chan, int32_t fileNo,
// CARDCallback callback ); int32_t CARDFastOpen( int32_t chan, int32_t fileNo,
@@ -171,7 +171,7 @@ namespace libtp::gc_wii::card
* @param fileName pointer to file name to be opened
* @param fileInfo pointer to file info to be used
*/
- int32_t CARDOpen( int32_t chan, char* fileName, CARDFileInfo* fileInfo );
+ int32_t CARDOpen( int32_t chan, const char* fileName, CARDFileInfo* fileInfo );
// bool CARDProbe( int32_t chan );
@@ -190,8 +190,8 @@ namespace libtp::gc_wii::card
* size, in bytes. Specify NULL if it is not necessary.
*/
int32_t CARDProbeEx( int32_t chan, int32_t* memSize, int32_t* sectorSize );
- // int32_t CARDRename( int32_t chan, char* oldName, char* newName );
- // int32_t CARDRenameAsync( int32_t chan, char* oldName, char* newName,
+ // int32_t CARDRename( int32_t chan, const char* oldName, const char* newName );
+ // int32_t CARDRenameAsync( int32_t chan, const char* oldName, const char* newName,
// CARDCallback callback ); int32_t CARDSetStatus( int32_t chan, int32_t fileNo,
// CARDStat* stat ); int32_t CARDSetStatusAsync( int32_t chan, int32_t fileNo,
// CARDStat* stat, CARDCallback callback );