From 48c5953fc5b948399b7a11d73bf244b5c6375b2e Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Thu, 9 Feb 2006 01:35:19 +0000 Subject: [PATCH] WIP disclaimer now only comes up once ber build --- zsnes/src/win/winlink.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index e1571942..a979bbcf 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -3137,9 +3137,26 @@ int CheckBatteryPercent() return((SysPowerStat.BatteryLifePercent == 255) ? -1 : SysPowerStat.BatteryLifePercent); } +extern "C" unsigned int PrevBuildNum; + void DisplayWIPDisclaimer() { - MessageBox(NULL, "This build of ZSNES is a WORK IN PROGRESS. This means that it is known to contain bugs and certain features\nmay or may not be working correctly. This build is not any representation of final work and is provided AS IS\nfor people to try bleeding edge code.\n\nPlease see http://zsnes.gamehost.com/~pagefault/ for a list of current issues.", "Disclaimer", MB_OK); + // This stupid function calculates a build hash based on the build date + + unsigned int CurrentBuildNum = 0; + char *BuildWorkBuffer = (char *) malloc(sizeof(__DATE__)); + + strcpy(BuildWorkBuffer, __DATE__); + + for (int i = 0; i