Skip to content

Commit 64d22c9

Browse files
committed
modified structure
1 parent b38f6bd commit 64d22c9

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

include/vmc_groups.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
#ifndef VMC_GROUPS_H
22
#define VMC_GROUPS_H
33

4-
#include <stddef.h> // Required for size_t
5-
64
// Structure to hold a single Memory Card Group and its associated Title IDs
7-
typedef struct
8-
{
9-
const char *groupId; // The group ID string (e.g., "XEBP_100.01")
10-
const char **titleIds; // Pointer to an array of title ID strings
11-
size_t titleCount; // Number of title IDs in the 'titleIds' array
12-
} MemoryCardGroup;
135

146
/**
157
* @brief Finds the Group ID associated with a given Title ID.
@@ -24,6 +16,5 @@ typedef struct
2416
* @return A const char* pointer to the Group ID string if found,
2517
* otherwise, a const char* pointer to the original titleId parameter.
2618
*/
27-
2819
const char *getGroupIdForTitleId(const char *titleId);
2920
#endif // VMC_GROUPS_H

src/vmc_groups.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
#include "include/vmc_groups.h"
33
#include <string.h>
4+
typedef struct
5+
{
6+
const char *groupId; // The group ID string (e.g., "XEBP_100.01")
7+
const char **titleIds; // Pointer to an array of title ID strings
8+
size_t titleCount; // Number of title IDs in the 'titleIds' array
9+
} MemoryCardGroup;
410

511
// --- Embedded Dictionary Data ---
612

0 commit comments

Comments
 (0)