mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 20:11:42 +00:00
Make consistent with existing code
This commit is contained in:
parent
0ec4de6aff
commit
4b21677649
1 changed files with 4 additions and 4 deletions
|
|
@ -570,7 +570,7 @@ bool mod_file_exists(const char* filename) {
|
|||
if (gLuaActiveMod == NULL) { return false; }
|
||||
|
||||
char normPath[SYS_MAX_PATH] = { 0 };
|
||||
char normalized_relative[SYS_MAX_PATH] = "";
|
||||
char normRelative[SYS_MAX_PATH] = { 0 };
|
||||
|
||||
if (snprintf(normPath, sizeof(normPath), "%s", filename) < 0) {
|
||||
LOG_ERROR("Failed to copy filename for normalization: %s", filename);
|
||||
|
|
@ -580,9 +580,9 @@ bool mod_file_exists(const char* filename) {
|
|||
|
||||
for (s32 i = 0; i < gLuaActiveMod->fileCount; i++) {
|
||||
struct ModFile* file = &gLuaActiveMod->files[i];
|
||||
strcpy(normalized_relative, file->relativePath);
|
||||
normalize_path(normalized_relative);
|
||||
if (!strcmp(normalized_relative, normPath)) {
|
||||
strcpy(normRelative, file->relativePath);
|
||||
normalize_path(normRelative);
|
||||
if (!strcmp(normRelative, normPath)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue