move melon_fopen() to Platform.cpp

melon_fopen_local() will need fixoring
This commit is contained in:
Arisotura
2019-03-27 04:23:03 +01:00
parent 5d127f9e55
commit 6d7e80b677
8 changed files with 44 additions and 33 deletions

View File

@ -20,6 +20,7 @@
#include <string.h>
#include <stdlib.h>
#include "Config.h"
#include "Platform.h"
#include "melon_fopen.h"
@ -128,7 +129,7 @@ void Save()
strncpy(&path[dirlen+1], kConfigFile, filelen);
path[dirlen+1+filelen] = '\0';
f = melon_fopen(path, "w");
f = Platform::OpenFile(path, "w");
delete[] path;
if (!f) return;
}