Added
Link Here
|
0 |
- |
1 |
--- opennxApp.cpp.orig 2022-11-07 09:51:49 UTC |
|
|
2 |
+++ opennxApp.cpp |
3 |
@@ -759,7 +759,7 @@ void opennxApp::checkNxSmartCardSupport() |
4 |
#endif |
5 |
if (!fn.FileExists()) |
6 |
return; |
7 |
- time_t last_mtime; |
8 |
+ long last_mtime; |
9 |
long last_size; |
10 |
time_t mtime = fn.GetModificationTime().GetTicks(); |
11 |
long size = fn.GetSize().ToULong(); |
12 |
@@ -767,8 +767,8 @@ void opennxApp::checkNxSmartCardSupport() |
13 |
wxConfigBase::Get()->Read(wxT("Config/NxSshSize"), &last_size, 0); |
14 |
wxConfigBase::Get()->Read(wxT("Config/NxSshSmartCardSupport"), &m_bNxSmartCardSupport, false); |
15 |
|
16 |
- if ((mtime != last_mtime) || (size != last_size)) { |
17 |
- wxConfigBase::Get()->Write(wxT("Config/NxSshStamp"), mtime); |
18 |
+ if ((mtime != (time_t)last_mtime) || (size != last_size)) { |
19 |
+ wxConfigBase::Get()->Write(wxT("Config/NxSshStamp"), (long)mtime); |
20 |
wxConfigBase::Get()->Write(wxT("Config/NxSshSize"), size); |
21 |
wxString nxsshcmd = fn.GetShortPath(); |
22 |
nxsshcmd << wxT(" -I 0 -V"); |