mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
More minGW fixes.
This commit is contained in:
@ -99,4 +99,4 @@ REGISTER_CREATABLE(pfBackdoorMsg);
|
|||||||
|
|
||||||
REGISTER_CREATABLE(pfMovieEventMsg);
|
REGISTER_CREATABLE(pfMovieEventMsg);
|
||||||
|
|
||||||
#endif pfMessageCreatable_inc
|
#endif //pfMessageCreatable_inc
|
||||||
|
@ -295,7 +295,7 @@ void plInputManager::HandleWin32ControlEvent(UINT message, WPARAM Wparam, LPARAM
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
BYTE scan = (BYTE)(Lparam >> 16);
|
BYTE scan = (BYTE)(Lparam >> 16);
|
||||||
UINT vkey = MapVirtualKey(scan, MAPVK_VSC_TO_VK);
|
UINT vkey = MapVirtualKey(scan, 1); //MAPVK_VSC_TO_VK
|
||||||
|
|
||||||
bExtended = Lparam >> 24 & 1;
|
bExtended = Lparam >> 24 & 1;
|
||||||
hsBool bRepeat = ((Lparam >> 29) & 0xf) != 0;
|
hsBool bRepeat = ((Lparam >> 29) & 0xf) != 0;
|
||||||
|
@ -608,7 +608,8 @@ hsBool plSceneInputInterface::MsgReceive( plMessage *msg )
|
|||||||
if (fBookMode == kBookOffered)
|
if (fBookMode == kBookOffered)
|
||||||
{
|
{
|
||||||
// and put our own dialog back up...
|
// and put our own dialog back up...
|
||||||
ISendOfferNotification(plNetClientMgr::GetInstance()->GetLocalPlayerKey(), 0, false);
|
plKey avKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||||
|
ISendOfferNotification(avKey, 0, false);
|
||||||
//IManageIgnoredAvatars(fOffereeKey, false);
|
//IManageIgnoredAvatars(fOffereeKey, false);
|
||||||
fOffereeKey = nil;
|
fOffereeKey = nil;
|
||||||
fBookMode = kNotOffering;
|
fBookMode = kNotOffering;
|
||||||
@ -627,7 +628,8 @@ hsBool plSceneInputInterface::MsgReceive( plMessage *msg )
|
|||||||
// tell them to ignore us
|
// tell them to ignore us
|
||||||
|
|
||||||
plInputIfaceMgrMsg* pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableAvatarClickable);
|
plInputIfaceMgrMsg* pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableAvatarClickable);
|
||||||
pMsg->SetAvKey(plNetClientMgr::GetInstance()->GetLocalPlayerKey());
|
plKey avKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||||
|
pMsg->SetAvKey(avKey);
|
||||||
pMsg->SetBCastFlag(plMessage::kNetPropagate);
|
pMsg->SetBCastFlag(plMessage::kNetPropagate);
|
||||||
pMsg->SetBCastFlag(plMessage::kNetForce);
|
pMsg->SetBCastFlag(plMessage::kNetForce);
|
||||||
pMsg->SetBCastFlag(plMessage::kLocalPropagate, false);
|
pMsg->SetBCastFlag(plMessage::kLocalPropagate, false);
|
||||||
@ -754,7 +756,8 @@ hsBool plSceneInputInterface::MsgReceive( plMessage *msg )
|
|||||||
if (fBookMode == kBookOffered)
|
if (fBookMode == kBookOffered)
|
||||||
{
|
{
|
||||||
// and put our own dialog back up...
|
// and put our own dialog back up...
|
||||||
ISendOfferNotification(plNetClientMgr::GetInstance()->GetLocalPlayerKey(), 0, false);
|
plKey avKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||||
|
ISendOfferNotification(avKey, 0, false);
|
||||||
//IManageIgnoredAvatars(fOffereeKey, false);
|
//IManageIgnoredAvatars(fOffereeKey, false);
|
||||||
fBookMode = kOfferBook;
|
fBookMode = kOfferBook;
|
||||||
fOffereeKey = nil;
|
fOffereeKey = nil;
|
||||||
@ -830,7 +833,8 @@ void plSceneInputInterface::ILinkOffereeToAge()
|
|||||||
else if (!VaultGetOwnedAgeLink(&info, &link)) {
|
else if (!VaultGetOwnedAgeLink(&info, &link)) {
|
||||||
|
|
||||||
// We must have an owned copy of the age before we can offer it, so make one now
|
// We must have an owned copy of the age before we can offer it, so make one now
|
||||||
info.SetAgeInstanceGuid(&plUUID(GuidGenerate()));
|
plUUID guid(GuidGenerate());
|
||||||
|
info.SetAgeInstanceGuid(&guid);
|
||||||
std::string title;
|
std::string title;
|
||||||
std::string desc;
|
std::string desc;
|
||||||
|
|
||||||
@ -858,7 +862,8 @@ void plSceneInputInterface::ILinkOffereeToAge()
|
|||||||
VaultAgeLinkNode linkAcc(linkNode);
|
VaultAgeLinkNode linkAcc(linkNode);
|
||||||
if (linkAcc.volat) {
|
if (linkAcc.volat) {
|
||||||
if (VaultUnregisterOwnedAgeAndWait(link.GetAgeInfo())) {
|
if (VaultUnregisterOwnedAgeAndWait(link.GetAgeInfo())) {
|
||||||
link.GetAgeInfo()->SetAgeInstanceGuid(&plUUID(GuidGenerate()));
|
plUUID guid(GuidGenerate());
|
||||||
|
link.GetAgeInfo()->SetAgeInstanceGuid(&guid);
|
||||||
VaultRegisterOwnedAgeAndWait(&link);
|
VaultRegisterOwnedAgeAndWait(&link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -882,7 +887,8 @@ void plSceneInputInterface::ILinkOffereeToAge()
|
|||||||
if (!fPendingLink && stricmp(fOfferedAgeFile, kPersonalAgeFilename))
|
if (!fPendingLink && stricmp(fOfferedAgeFile, kPersonalAgeFilename))
|
||||||
{
|
{
|
||||||
// tell our local dialog to pop up again...
|
// tell our local dialog to pop up again...
|
||||||
ISendOfferNotification(plNetClientMgr::GetInstance()->GetLocalPlayerKey(), 0, false);
|
plKey avKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||||
|
ISendOfferNotification(avKey, 0, false);
|
||||||
// make them clickable again(in case they come back?)
|
// make them clickable again(in case they come back?)
|
||||||
//IManageIgnoredAvatars(fOffereeKey, false);
|
//IManageIgnoredAvatars(fOffereeKey, false);
|
||||||
|
|
||||||
@ -1041,7 +1047,8 @@ hsBool plSceneInputInterface::InterpretInputEvent( plInputEventMsg *pMsg )
|
|||||||
{
|
{
|
||||||
// and put our own dialog back up...
|
// and put our own dialog back up...
|
||||||
ISendOfferNotification(fOffereeKey, -999, true);
|
ISendOfferNotification(fOffereeKey, -999, true);
|
||||||
ISendOfferNotification(plNetClientMgr::GetInstance()->GetLocalPlayerKey(), 0, false);
|
plKey avKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||||
|
ISendOfferNotification(avKey, 0, false);
|
||||||
//IManageIgnoredAvatars(fOffereeKey, false);
|
//IManageIgnoredAvatars(fOffereeKey, false);
|
||||||
fBookMode = kOfferBook;
|
fBookMode = kOfferBook;
|
||||||
fOffereeKey = nil;
|
fOffereeKey = nil;
|
||||||
@ -1138,7 +1145,8 @@ void plSceneInputInterface::ISendAvatarDisabledNotification(hsBool enabled)
|
|||||||
pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kEnableAvatarClickable);
|
pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kEnableAvatarClickable);
|
||||||
else
|
else
|
||||||
pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableAvatarClickable);
|
pMsg = new plInputIfaceMgrMsg(plInputIfaceMgrMsg::kDisableAvatarClickable);
|
||||||
pMsg->SetAvKey(plNetClientMgr::GetInstance()->GetLocalPlayerKey());
|
plKey avKey = plNetClientMgr::GetInstance()->GetLocalPlayerKey();
|
||||||
|
pMsg->SetAvKey(avKey);
|
||||||
pMsg->SetBCastFlag(plMessage::kNetPropagate);
|
pMsg->SetBCastFlag(plMessage::kNetPropagate);
|
||||||
pMsg->SetBCastFlag(plMessage::kNetForce);
|
pMsg->SetBCastFlag(plMessage::kNetForce);
|
||||||
pMsg->SetBCastFlag(plMessage::kLocalPropagate, false);
|
pMsg->SetBCastFlag(plMessage::kLocalPropagate, false);
|
||||||
|
@ -225,7 +225,7 @@ enum ETransType {
|
|||||||
kNumTransTypes
|
kNumTransTypes
|
||||||
};
|
};
|
||||||
|
|
||||||
static char * s_transTypes[] = {
|
static const char * s_transTypes[] = {
|
||||||
// NglAuth.cpp
|
// NglAuth.cpp
|
||||||
"PingRequestTrans",
|
"PingRequestTrans",
|
||||||
"LoginRequestTrans",
|
"LoginRequestTrans",
|
||||||
|
@ -148,4 +148,4 @@ public:
|
|||||||
};
|
};
|
||||||
#endif // Move up to FeatureLevel
|
#endif // Move up to FeatureLevel
|
||||||
|
|
||||||
#endif hsFogControl_inc
|
#endif //hsFogControl_inc
|
||||||
|
@ -443,7 +443,7 @@ const wchar_t* plProfileManagerFull::GetProfilePath()
|
|||||||
plFileUtils::CreateDir(profilePath);
|
plFileUtils::CreateDir(profilePath);
|
||||||
|
|
||||||
wchar_t buff[256];
|
wchar_t buff[256];
|
||||||
swprintf(buff, 256, L"%02d-%02d-%04d_%02d-%02d//",
|
hsSnwprintf(buff, 256, L"%02d-%02d-%04d_%02d-%02d//",
|
||||||
curTime.GetMonth(),
|
curTime.GetMonth(),
|
||||||
curTime.GetDay(),
|
curTime.GetDay(),
|
||||||
curTime.GetYear(),
|
curTime.GetYear(),
|
||||||
@ -460,7 +460,7 @@ const wchar_t* plProfileManagerFull::GetProfilePath()
|
|||||||
void plProfileManagerFull::ILogStats()
|
void plProfileManagerFull::ILogStats()
|
||||||
{
|
{
|
||||||
wchar_t statFilename[256];
|
wchar_t statFilename[256];
|
||||||
swprintf(statFilename, 256, L"%s%s.csv", GetProfilePath(), fLogAgeName.c_str());
|
hsSnwprintf(statFilename, 256, L"%s%s.csv", GetProfilePath(), fLogAgeName.c_str());
|
||||||
|
|
||||||
bool exists = plFileUtils::FileExists(statFilename);
|
bool exists = plFileUtils::FileExists(statFilename);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user