mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Feature Request #206 Command line switch: -memclear #
This commit is contained in:
+9
-3
@@ -1391,9 +1391,15 @@ void MemReset ()
|
||||
// OR
|
||||
// F2, Ctrl-F2, F7, HGR
|
||||
DWORD clock = getRandomTime();
|
||||
g_eMemoryInitPattern = static_cast<MemoryInitPattern_e>( clock % NUM_MIP );
|
||||
if( g_eMemoryInitPattern == MIP_ZERO )
|
||||
g_eMemoryInitPattern = MIP_FF_FF_00_00;
|
||||
|
||||
if ((g_nMemoryClearType >= 0) && (g_nMemoryClearType != MIP_RANDOM))
|
||||
g_eMemoryInitPattern = static_cast<MemoryInitPattern_e>(g_nMemoryClearType);
|
||||
else // random
|
||||
{
|
||||
g_eMemoryInitPattern = static_cast<MemoryInitPattern_e>( clock % NUM_MIP );
|
||||
if (g_eMemoryInitPattern == MIP_RANDOM) // Twice Lucky! Force a choice.
|
||||
g_eMemoryInitPattern = MIP_FF_FF_00_00;
|
||||
}
|
||||
|
||||
switch( g_eMemoryInitPattern )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user