]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
2510 2510
authorToni Wilen <twilen@winuae.net>
Sat, 22 Dec 2012 18:42:07 +0000 (20:42 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 22 Dec 2012 18:42:07 +0000 (20:42 +0200)
archivers/lha/uae_lha.cpp
od-win32/WinUAE_Install.nsi
od-win32/mman.cpp
od-win32/win32.cpp
od-win32/win32.h
od-win32/win32gfx.cpp
od-win32/win32gui.cpp
od-win32/winuaechangelog.txt

index 1d418285cc3f30a2327863236d81b8b9b7fcc42f..8fea158ab7d6ad77d540641e4eea10f0a13e1627 100644 (file)
@@ -39,7 +39,20 @@ struct zvolume *archive_directory_lha (struct zfile *zf)
        zai.name = au (hdr.name);
        zai.size = hdr.original_size;
        zai.flags = hdr.attribute;
-       zai.tv.tv_sec = hdr.unix_last_modified_stamp -= _timezone;
+       if (hdr.extend_type != 0) {
+               zai.tv.tv_sec = hdr.unix_last_modified_stamp -= _timezone;
+       } else {
+               struct tm t;
+               uae_u32 v = hdr.last_modified_stamp;
+
+               t.tm_sec = (v & 0x1f) * 2;
+               t.tm_min = (v >> 5) & 0x3f;
+               t.tm_hour = (v >> 11) & 0x1f;
+               t.tm_mday = (v >> 16) & 0x1f;
+               t.tm_mon = ((v >> 21) & 0xf) - 1;
+               t.tm_year = ((v >> 25) & 0x7f) + 80;
+               zai.tv.tv_sec = mktime (&t) - _timezone;
+       }
        if (hdr.name[strlen(hdr.name) + 1] != 0)
            zai.comment = au (&hdr.name[strlen(hdr.name) + 1]);
        if (method == LZHDIRS_METHOD_NUM) {
index cc90a830ec9592c719826acb2b61398f4caa8b42..6ea4d2c0b1a3332c832f0a9be05fbc188970adc1 100644 (file)
@@ -1,5 +1,5 @@
 !define PRODUCT_NAME "WinUAE"
-!define PRODUCT_VERSION "2.5.0"
+!define PRODUCT_VERSION "2.5.1"
 !define PRODUCT_PUBLISHER "Arabuusimiehet"
 !define PRODUCT_WEB_SITE "http://www.winuae.net/"
 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\winuae.exe"
index 4dbd7b15b14d4553aaa7e546e689fd3e63d01492..7c63a1c1d5dd5717292a4ffb632576c28824146a 100644 (file)
@@ -175,15 +175,15 @@ bool preinit_shm (void)
        if (max_allowed_mman * 1024 * 1024 > size64)
                max_allowed_mman = size64 / (1024 * 1024);
        if (!os_64bit) {
-               if (max_allowed_mman * 1024 * 1024 > (size64 / 2))
-                       max_allowed_mman = (size64 / 2) / (1024 * 1024);
+               if (max_allowed_mman * 1024 * 1024 > (totalphys64 / 2))
+                       max_allowed_mman = (totalphys64 / 2) / (1024 * 1024);
        }
 
        natmem_size = (max_allowed_mman + 1) * 1024 * 1024;
        if (natmem_size < 256 * 1024 * 1024)
                natmem_size = 256 * 1024 * 1024;
 
-       write_log (_T("Total physical RAM %lluM. Attempting to reserve: %uM.\n"), totalphys64 >> 20, natmem_size >> 20);
+       write_log (_T("Total physical RAM %lluM, all RAM %lluM. Attempting to reserve: %uM.\n"), totalphys64 >> 20, total64 >> 20, natmem_size >> 20);
        natmem_offset = 0;
        if (natmem_size <= 768 * 1024 * 1024) {
                uae_u32 p = 0x78000000 - natmem_size;
index 71454b393421cf04c5a8f6db6906aced16f4f59f..aab9838142029a09d07678bb03b52e6ddcd1274e 100644 (file)
@@ -5561,7 +5561,7 @@ LONG WINAPI WIN32_ExceptionFilter (struct _EXCEPTION_POINTERS *pExceptionPointer
                        }
        }
 #endif
-//#ifndef      _DEBUG
+#ifndef        _DEBUG
        if (lRet == EXCEPTION_CONTINUE_SEARCH) {
                TCHAR path[MAX_DPATH];
                TCHAR path2[MAX_DPATH];
@@ -5627,7 +5627,7 @@ LONG WINAPI WIN32_ExceptionFilter (struct _EXCEPTION_POINTERS *pExceptionPointer
                        }
                }
        }
-//#endif
+#endif
 #if 0
        HMODULE hFaultRepDll = LoadLibrary (_T("FaultRep.dll")) ;
        if (hFaultRepDll) {
index 367fd17add4bc2e01398b1f8f0cdc1ee629fbd5e..1f25597e57b7e147a433cb9cbbd04445a33a8529 100644 (file)
 #define GETBDM(x) (((x) - ((x / 10000) * 10000)) / 100)
 #define GETBDD(x) ((x) % 100)
 
-#define WINUAEPUBLICBETA 1
+#define WINUAEPUBLICBETA 0
 #define LANG_DLL 1
 
-//#define WINUAEBETA _T("")
+#if WINUAEPUBLICBETA
 #define WINUAEBETA _T("5")
-#define WINUAEDATE MAKEBD(2012, 12, 21)
+#else
+#define WINUAEBETA _T("")
+#endif
+#define WINUAEDATE MAKEBD(2012, 12, 22)
 #define WINUAEEXTRA _T("")
 //#define WINUAEEXTRA _T("AmiKit Preview")
 #define WINUAEREV _T("")
index ae0dc297f4a190d166cc1d5d73539b1a386efca5..16663f555545afe47fe72b320850f4a53e4df9b4 100644 (file)
@@ -1127,10 +1127,8 @@ void unlockscr (struct vidbuffer *vb)
 
 void flush_clear_screen (struct vidbuffer *vb)
 {
-       struct vidbuffer vb2 = { 0 };
-
        if (!vb)
-               vb = &vb2;
+               return;
        if (lockscr (vb, true)) {
                int y;
                for (y = 0; y < vb->height_allocated; y++) {
index 54c7f88bb886c6581931ef88c1a69a758fe84d1f..2eda445e8198d82075afb6ead626c9a6a87de4a9 100644 (file)
@@ -1903,14 +1903,16 @@ static const GUID diskselectionguids[] = {
        { 0x05aa5db2, 0x470b, 0x4725, { 0x96, 0x03, 0xee, 0x61, 0x30, 0xfc, 0x54, 0x99 } }
 };
 
-static void getfilter (int num, TCHAR *name, int *filter, TCHAR *fname)
+static void getfilter (int num, const TCHAR *name, int *filter, TCHAR *fname)
 {
        _tcscpy (fname, name);
        _tcscat (fname, _T("_Filter"));
        regqueryint (NULL, fname, &filter[num]);
 }
-static void setfilter (int num, int *filter, TCHAR *fname)
+static void setfilter (int num, int *filter, const TCHAR *fname)
 {
+       if (fname == NULL || fname[0] == 0)
+               return;
        regsetint (NULL, fname, filter[num]);
 }
 
@@ -2106,7 +2108,7 @@ int DiskSelection_2 (HWND hDlg, WPARAM wParam, int flag, struct uae_prefs *prefs
                                        }
                                }
                                if (!ok) {
-                                       getfilter(flag, _T("StatefilePath"), previousfilter, filtername);
+                                       getfilter (flag, _T("StatefilePath"), previousfilter, filtername);
                                        fetch_path (_T("StatefilePath"), init_path, sizeof (init_path) / sizeof (TCHAR));
                                }
                                guid = &diskselectionguids[4];
index 3bcb4560c6c04b611cfed0ac33fd87b5af6f6623..f9f84f59e2a1c46ad2f96e3e853fc3ba94dfb888 100644 (file)
@@ -4,6 +4,11 @@
 This is usual quick 2.5.0 bug fix version. Estimated release date: before Christmas.
 I try not to do any GUI changes this time, 2.5.0 translation DLLs should still work with 2.5.1.
 
+2.5.1
+
+- Only reserve max total physical memory / 2 of ram under 32 bit Windows versions.
+- lzh/lha MSDOS-style timestamps supported
+
 Beta 5: (Possibly 2.5.1 final)
 
 - Fixed crash when reset caused switching from RTG to native mode. (b3)