fix: resolve hardcoded Windows path literals through POSIX helpers (Linux)
linux / build (push) Canceled after 18m39s
linux / build (push) Canceled after 18m39s
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user