Fix compile error
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user