fix: resolve hardcoded Windows path literals through POSIX helpers (Linux)
linux / build (push) Canceled after 18m39s

This commit is contained in:
2026-11-29 18:22:40 +00:00
parent bd3805da5b
commit e1955623cc
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -155,6 +155,19 @@ FILE* _fcaseopen(char const* filename, char const* mode)
return result;
}
int _fcasedelete(const char *filename)
{
int result;
char *real = casepath(filename);
if (!real)
result = unlink(filename);
else {
result = unlink(real);
free(real);
}
return result;
}
int _caserename(const char *old_filename, const char *new_filename)
{
int result;
+2 -1
View File
@@ -110,7 +110,8 @@ RwBool IsForegroundApp();
// Codes compatible with Windows and Linux
#ifndef _WIN32
#define DeleteFile unlink
int _fcasedelete(const char *filename);
#define DeleteFile _fcasedelete
// Needed for save games
struct SYSTEMTIME {