diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index 1e4bb44..aa8b36d 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -479,7 +479,7 @@ SaveFile (char * buffer, char *filepath, u32 datasize, int method, bool silent) sprintf(fullpath, "%s%s", rootdir, filepath); // open file for writing - file = fopen (filepath, "wb"); + file = fopen (fullpath, "wb"); if (file > 0) {