mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 10:01:46 +00:00
oopsies uh oh made a big whoopsie daisy
This commit is contained in:
parent
e860144c47
commit
25ab2282d2
1 changed files with 8 additions and 2 deletions
|
|
@ -615,9 +615,15 @@ LuaTable get_mod_files(struct Mod* mod, OPTIONAL const char* subDirectory) {
|
|||
snprintf(normalizedSubDir, SYS_MAX_PATH, "%s", subDirectory ? subDirectory : "");
|
||||
normalize_path(normalizedSubDir);
|
||||
|
||||
#ifdef _WIN32
|
||||
char* slashChar = "\\";
|
||||
#else
|
||||
char* slashChar = "/";
|
||||
#endif
|
||||
|
||||
size_t subDirLen = strlen(normalizedSubDir);
|
||||
if (subDirLen > 0 && subDirLen + 1 < SYS_MAX_PATH && normalizedSubDir[subDirLen - 1] != '/') {
|
||||
strcat(normalizedSubDir, "/");
|
||||
if (subDirLen > 0 && subDirLen + 1 < SYS_MAX_PATH && normalizedSubDir[subDirLen - 1] != slashChar[0]) {
|
||||
strcat(normalizedSubDir, slashChar);
|
||||
subDirLen = strlen(normalizedSubDir);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue