Remove registration screen
This commit is contained in:
parent
08a0c82768
commit
0b90ea2f12
@ -33,78 +33,12 @@
|
||||
|
||||
int IsInFront();
|
||||
|
||||
void ShowRegistrationScreen()
|
||||
{
|
||||
HandleError(RT3_Open(true,VERSION_3_CODES,RT3_PRODUCT_NAME,"Redline"));
|
||||
Bool8 launched;
|
||||
UInt64 code=RT3_GetLicenseCode();
|
||||
/* int test=false;
|
||||
qRT3_LicenseIsSameCode(code,RT3_PIRATED_CODE_01,test);
|
||||
printf("license test: %d\n",test);*/
|
||||
|
||||
int valid=true;
|
||||
int invalid=false;
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_CODE_01,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_CODE_02,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_03,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_04,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_05,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_06,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_07,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_08,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_09,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_10,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_11,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_12,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_13,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_14,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_15,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_16,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_17,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_18,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_19,invalid);
|
||||
if(!invalid)qRT3_LicenseIsSameCode(code,RT3_PIRATED_FAKE_20,invalid);
|
||||
valid=!invalid;
|
||||
if(!valid)
|
||||
FT_FileDelete(kPathRefPreferences, "Redline License");
|
||||
if(!RT3_IsRegistered())
|
||||
{
|
||||
ASWReg_Initialization();
|
||||
ASWReg_ShowDialog(true);
|
||||
}
|
||||
/* if(RT3_DisplayNotice(!valid,&launched)==nsvErr)
|
||||
{
|
||||
short hit;
|
||||
AlertStdAlertParamRec alertParam={
|
||||
false,false,nil,
|
||||
"\pExit",
|
||||
nil,
|
||||
nil,
|
||||
kAlertStdAlertOKButton,
|
||||
0,
|
||||
kWindowDefaultPosition};
|
||||
StandardAlert(kAlertStopAlert,
|
||||
"\pCan't find Register Redline app.",
|
||||
"\pMake sure the Register Redline application is in the same folder as Redline, or reinstall Redline.",
|
||||
&alertParam,
|
||||
&hit);
|
||||
ExitToShell();
|
||||
}
|
||||
if(launched)
|
||||
ExitToShell();
|
||||
if(!IsInFront())
|
||||
{
|
||||
gSystemSuspended=true;
|
||||
} */
|
||||
}
|
||||
|
||||
void CarSelectionDrawCar(tFileRef carRef,float time,int addOns,int color);
|
||||
|
||||
void Init()
|
||||
{
|
||||
SystemInit();
|
||||
//EnableFPUExceptions();
|
||||
ShowRegistrationScreen();
|
||||
FileInitIO();
|
||||
|
||||
ConfigInit();
|
||||
@ -148,7 +82,6 @@ void Exit()
|
||||
NetworkExit();
|
||||
WriteOutFile(FileGetReference(kConfigFileName),gConfig,kParserTypeConfigDesc);
|
||||
ScreenExit();
|
||||
RT3_Close();
|
||||
SystemExit();
|
||||
ExitToShell();
|
||||
}
|
Loading…
Reference in New Issue
Block a user