Fix compile error

This commit is contained in:
2026-05-08 23:11:20 -05:00
parent 7415944e0a
commit bafbf2ec2f
5 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ errorret_t assetInitDolphinFAT(void) {
if(!fatInitDefault()) errorThrow("Failed to initialize FAT filesystem.");
char_t **dolphinSearchPath = (char_t **)ASSET_DOLPHIN_PATHS;
char_t foundPath[ASSET_FILE_PATH_MAX];
char_t foundPath[ASSET_DOLPHIN_FAT_PATH_MAX];
foundPath[0] = '\0';
do {
DIR *pdir = opendir(*dolphinSearchPath);
@@ -35,7 +35,7 @@ errorret_t assetInitDolphinFAT(void) {
snprintf(
foundPath,
ASSET_FILE_PATH_MAX,
ASSET_DOLPHIN_FAT_PATH_MAX,
"%s/%s",
*dolphinSearchPath,
ASSET_FILE_NAME
+2
View File
@@ -8,6 +8,8 @@
#pragma once
#include "error/error.h"
#define ASSET_DOLPHIN_FAT_PATH_MAX FILENAME_MAX
static const char_t *ASSET_DOLPHIN_PATHS[] = {
"/",
"/Dusk",