From 44b887f465f61e1d7b292fd1c7996ed9a4022bce Mon Sep 17 00:00:00 2001 From: zilmar Date: Sun, 5 Jun 2016 10:03:12 +1000 Subject: [PATCH] [Project64] Make sure modification time is updated on save file (android) --- Source/Project64-core/N64System/N64Class.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Project64-core/N64System/N64Class.cpp b/Source/Project64-core/N64System/N64Class.cpp index af617d306..4708d660c 100644 --- a/Source/Project64-core/N64System/N64Class.cpp +++ b/Source/Project64-core/N64System/N64Class.cpp @@ -23,6 +23,9 @@ #include #include #include +#if defined(ANDROID) +#include +#endif #pragma warning(disable:4355) // Disable 'this' : used in base member initializer list @@ -1486,6 +1489,9 @@ bool CN64System::SaveState() zipCloseFileInZip(file); zipClose(file, ""); +#if defined(ANDROID) + utimes((const char *)ZipFile, NULL); +#endif } else {