Remove custom_email.edt

Unfinished feature as far as I can tell and new emails will be easier to add via Emails.xml
This commit is contained in:
Asdow
2026-01-03 17:27:43 +02:00
parent 1368962244
commit 1c86d96e9d
3 changed files with 0 additions and 42 deletions
-20
View File
@@ -31,8 +31,6 @@
#define EMAIL_EDT_FILE_JA2 "BINARYDATA\\Email.edt"
#endif
#define EMAIL_EDT_CUSTOM_FILE "BINARYDATA\\Email_Custom.edt"
using namespace std;
//static EmailPtr pEmailList;
@@ -656,24 +654,6 @@ void RenderEmail( void )
// invalidate region to force update
}
//-----------Custom email
void AddCustomEmail(INT32 iMessageOffset, INT32 iMessageLength, UINT8 ubSender, INT32 iDate, INT32 iCurrentIMPPosition, INT16 iCurrentShipmentDestinationID, UINT8 EmailType )
{
CHAR16 pSubject[MAIL_STRING_SIZE];
LoadEncryptedDataFromFile(EMAIL_EDT_CUSTOM_FILE, pSubject, MAIL_STRING_SIZE*(iMessageOffset), MAIL_STRING_SIZE);
// add message to list
AddEmailMessage(iMessageOffset,iMessageLength, pSubject, iDate, ubSender, FALSE, 0, 0, 0, 0, 0, 0, iCurrentIMPPosition, iCurrentShipmentDestinationID, EmailType, TYPE_E_NONE );
// if we are in fact int he laptop, redraw icons, might be change in mail status
if( fCurrentlyInLaptop )
{
// redraw icons, might be new mail
DrawLapTopIcons();
}
}
//--
void AddEmailWithSpecialData(INT32 iMessageOffset, INT32 iMessageLength, UINT8 ubSender, INT32 iDate, INT32 iFirstData, UINT32 uiSecondData, UINT8 EmailType, UINT32 EmailAIM, UINT16 EnumEmailXML)
-4
View File
@@ -586,8 +586,6 @@ void ReDisplayBoxes( void );
void ShutDownEmailList();
void AddMessageToPages(INT32 iMessageId);
void AddCustomEmail(INT32 iMessageOffset, INT32 iMessageLength, UINT8 ubSender, INT32 iDate, INT32 iCurrentIMPPosition, INT16 iCurrentShipmentDestinationID, UINT8 EmailType);
#ifdef JA2BETAVERSION
void AddAllEmails();
#endif
@@ -681,8 +679,6 @@ enum {
TYPE_EMAIL_JOHN_KULBA,
TYPE_EMAIL_AIM_SITE,
TYPE_EMAIL_XML,
TYPE_EMAIL_OTHER,
};
enum {