Author Message

amilmand

00
Posts: 259

Location: ---
Occupation:
Age:
V$:
#138351   2018-03-06 02:21          
Thats not a bad idea ALAN.
For that I added two new functions to the File class though they are pretty hmm peculiar.
I'm calling the GetFileTime API and returning the low and high DWORD of the LastWriteTime but these values are unsigned and the slrr script engine only supports signed integers so the return values are strange though not impossible to use (I added a "continue last saved carrier" button to the SlrrExhaustive patch link)
If you have two unsigned integers interpreted as signed ones their arithmetic changes significantly for example a function deciding if a > b given the two numbers are badly interpreted would look like:
int BadReinterpretGreater(int a, int b)
{
	if(a >= 0 && b < 0)
		return 0;
	if(a < 0 && b >= 0)
		return 1;
	if(a > b)
		return 1;
	return 0;
}

But this is enough to find the most recent saved file so I stopped here.
I also added these functions to the SlrrExhaustive Bits
although I doubt it will be used frequently :P