mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 12:32:30 +00:00
Mass rename CxPrivate to CmptPrivate.
As part of the SM45->52 migration, a ScriptInterface becomes a wrapper around a JSCompartment, not a JSContext, thus we ought to store private data for the compartment and not the context. This is a mass rename of CxPrivate to CmptPrivate to match that before the actual changes. Part of the SM52 migration, stage: SM45 compatible Patch by: Itms Tested By: Freagarach Refs #4893 Differential Revision: https://code.wildfiregames.com/D3089 This was SVN commit r24177.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/ModIo.h"
|
||||
|
||||
void JSI_ModIo::StartGetGameId(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
void JSI_ModIo::StartGetGameId(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivate))
|
||||
{
|
||||
if (!g_ModIo)
|
||||
g_ModIo = new ModIo();
|
||||
@@ -32,7 +32,7 @@ void JSI_ModIo::StartGetGameId(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
g_ModIo->StartGetGameId();
|
||||
}
|
||||
|
||||
void JSI_ModIo::StartListMods(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
void JSI_ModIo::StartListMods(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivate))
|
||||
{
|
||||
if (!g_ModIo)
|
||||
{
|
||||
@@ -43,7 +43,7 @@ void JSI_ModIo::StartListMods(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
g_ModIo->StartListMods();
|
||||
}
|
||||
|
||||
void JSI_ModIo::StartDownloadMod(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), uint32_t idx)
|
||||
void JSI_ModIo::StartDownloadMod(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivate), uint32_t idx)
|
||||
{
|
||||
if (!g_ModIo)
|
||||
{
|
||||
@@ -54,7 +54,7 @@ void JSI_ModIo::StartDownloadMod(ScriptInterface::CxPrivate* UNUSED(pCxPrivate),
|
||||
g_ModIo->StartDownloadMod(idx);
|
||||
}
|
||||
|
||||
bool JSI_ModIo::AdvanceRequest(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
bool JSI_ModIo::AdvanceRequest(ScriptInterface::CmptPrivate* pCmptPrivate)
|
||||
{
|
||||
if (!g_ModIo)
|
||||
{
|
||||
@@ -62,11 +62,11 @@ bool JSI_ModIo::AdvanceRequest(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
return false;
|
||||
}
|
||||
|
||||
ScriptInterface* scriptInterface = pCxPrivate->pScriptInterface;
|
||||
ScriptInterface* scriptInterface = pCmptPrivate->pScriptInterface;
|
||||
return g_ModIo->AdvanceRequest(*scriptInterface);
|
||||
}
|
||||
|
||||
void JSI_ModIo::CancelRequest(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
void JSI_ModIo::CancelRequest(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivate))
|
||||
{
|
||||
if (!g_ModIo)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ void JSI_ModIo::CancelRequest(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
g_ModIo->CancelRequest();
|
||||
}
|
||||
|
||||
JS::Value JSI_ModIo::GetMods(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
JS::Value JSI_ModIo::GetMods(ScriptInterface::CmptPrivate* pCmptPrivate)
|
||||
{
|
||||
if (!g_ModIo)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ JS::Value JSI_ModIo::GetMods(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
return JS::NullValue();
|
||||
}
|
||||
|
||||
ScriptInterface* scriptInterface = pCxPrivate->pScriptInterface;
|
||||
ScriptInterface* scriptInterface = pCmptPrivate->pScriptInterface;
|
||||
ScriptInterface::Request rq(scriptInterface);
|
||||
|
||||
const std::vector<ModIoModData>& availableMods = g_ModIo->GetMods();
|
||||
@@ -123,7 +123,7 @@ const std::map<DownloadProgressStatus, std::string> statusStrings = {
|
||||
{ DownloadProgressStatus::FAILED_FILECHECK, "failed_filecheck" }
|
||||
};
|
||||
|
||||
JS::Value JSI_ModIo::GetDownloadProgress(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
JS::Value JSI_ModIo::GetDownloadProgress(ScriptInterface::CmptPrivate* pCmptPrivate)
|
||||
{
|
||||
if (!g_ModIo)
|
||||
{
|
||||
@@ -131,7 +131,7 @@ JS::Value JSI_ModIo::GetDownloadProgress(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
return JS::NullValue();
|
||||
}
|
||||
|
||||
ScriptInterface* scriptInterface = pCxPrivate->pScriptInterface;
|
||||
ScriptInterface* scriptInterface = pCmptPrivate->pScriptInterface;
|
||||
ScriptInterface::Request rq(scriptInterface);
|
||||
|
||||
const DownloadProgressData& progress = g_ModIo->GetDownloadProgress();
|
||||
|
||||
Reference in New Issue
Block a user