mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Remove WinAPI primitives from common app helpers
This commit is contained in:
parent
a0202d55c9
commit
3a98ff640c
|
|
@ -329,7 +329,7 @@ public:
|
||||||
C4JStorage::ETMSStatus WriteTMSFile(
|
C4JStorage::ETMSStatus WriteTMSFile(
|
||||||
int iPad, C4JStorage::eGlobalStorage eStorageFacility,
|
int iPad, C4JStorage::eGlobalStorage eStorageFacility,
|
||||||
C4JStorage::eTMS_FileType eFileType, CHAR* pchFilePath, CHAR* pchBuffer,
|
C4JStorage::eTMS_FileType eFileType, CHAR* pchFilePath, CHAR* pchBuffer,
|
||||||
DWORD dwBufferSize, TMSCLIENT_CALLBACK Func, LPVOID lpParam);
|
unsigned int dwBufferSize, TMSCLIENT_CALLBACK Func, LPVOID lpParam);
|
||||||
HRESULT GetUserQuotaInfo(int iPad, TMSCLIENT_CALLBACK Func, LPVOID lpParam);
|
HRESULT GetUserQuotaInfo(int iPad, TMSCLIENT_CALLBACK Func, LPVOID lpParam);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5285,8 +5285,8 @@ int CMinecraftApp::DLCMountedCallback(void *pParam,int iPad,std::uint32_t dwErr,
|
||||||
m_Time.qwAppTime.QuadPart += qwDeltaTime.QuadPart;
|
m_Time.qwAppTime.QuadPart += qwDeltaTime.QuadPart;
|
||||||
m_Time.qwTime.QuadPart = qwNewTime.QuadPart;
|
m_Time.qwTime.QuadPart = qwNewTime.QuadPart;
|
||||||
|
|
||||||
m_Time.fElapsedTime = m_Time.fSecsPerTick * ((FLOAT)(qwDeltaTime.QuadPart));
|
m_Time.fElapsedTime = m_Time.fSecsPerTick * static_cast<float>(qwDeltaTime.QuadPart);
|
||||||
m_Time.fAppTime = m_Time.fSecsPerTick * ((FLOAT)(m_Time.qwAppTime.QuadPart));
|
m_Time.fAppTime = m_Time.fSecsPerTick * static_cast<float>(m_Time.qwAppTime.QuadPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -6099,7 +6099,7 @@ std::wstring CMinecraftApp::FormatHTMLString(int iPad, const std::wstring &desc,
|
||||||
#endif // _XBOX
|
#endif // _XBOX
|
||||||
|
|
||||||
// Fix for #8903 - UI: Localization: KOR/JPN/CHT: Button Icons are rendered with padding space, which looks no good
|
// Fix for #8903 - UI: Localization: KOR/JPN/CHT: Button Icons are rendered with padding space, which looks no good
|
||||||
DWORD dwLanguage = XGetLanguage( );
|
std::uint32_t dwLanguage = XGetLanguage( );
|
||||||
switch(dwLanguage)
|
switch(dwLanguage)
|
||||||
{
|
{
|
||||||
case XC_LANGUAGE_KOREAN:
|
case XC_LANGUAGE_KOREAN:
|
||||||
|
|
|
||||||
|
|
@ -291,7 +291,7 @@ public:
|
||||||
static void NotificationsCallback(void *pParam,std::uint32_t dwNotification, unsigned int uiParam);
|
static void NotificationsCallback(void *pParam,std::uint32_t dwNotification, unsigned int uiParam);
|
||||||
|
|
||||||
// for the ethernet being disconnected
|
// for the ethernet being disconnected
|
||||||
static void LiveLinkChangeCallback(void *pParam,BOOL bConnected);
|
static void LiveLinkChangeCallback(void *pParam, bool bConnected);
|
||||||
bool GetLiveLinkRequired() {return m_bLiveLinkRequired;}
|
bool GetLiveLinkRequired() {return m_bLiveLinkRequired;}
|
||||||
void SetLiveLinkRequired(bool required) {m_bLiveLinkRequired=required;}
|
void SetLiveLinkRequired(bool required) {m_bLiveLinkRequired=required;}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue