THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/02/2010 at 06:02, xxxxxxxx wrote:
Okay so I tried this in the main.cpp..
Bool PluginStart(void)
{
// example of installing a crashhandler
old_handler = C4DOS.CrashHandler; // backup the original handler (must be called!)
C4DOS.CrashHandler = SDKCrashHandler; // insert the own handler
//GePrint("PLANET X GENERATOR IS AVAILABLE FOR DEMO USE ONLY!");
if (GeGetVersionType() &VERSION_SAVABLEDEMO_ACTIVE || VERSION_SAVABLEDEMO || VERSION_DEMO)
{
GePrint("PLANET X GENERATOR IS AVAILABLE FOR DEMO USE ONLY!");
}
else
{
GePrint("NOT THE DEMO");
GePrint("THE VERSION TYPE IS " + LongToString(GeGetVersionType()));
if (!IsSerialOKHook()) return FALSE; //don't load plugins if key is wrong
}
// Planet Object
if (!RegisterPlanet()) return FALSE;
// Sun Object
if (!RegisterSun()) return FALSE;
// Space Object
if (!RegisterSpace()) return FALSE;
//SERIAL NUMBER
if (!RegisterPlanetXSerial()) return FALSE;
return RegisterPlanet() && RegisterSun() && RegisterSpace();
}
When I am in the demo mode I get the plugin enabled and I am able to use it and as expected, the console prints out....
PLANET X GENERATOR IS AVAILABLE FOR DEMO USE ONLY!
However, when I am using my registered copy of the plugin, I am also able to use it and the console prints out...
PLANET X GENERATOR IS AVAILABLE FOR DEMO USE ONLY!
Why do you think this is happening?
~Shawn