Skip to content

Commit

Permalink
Common: fixed all found call xrCore::Initialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Aug 20, 2018
1 parent 779c065 commit 4ea4f93
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/editors/xrEditor/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void UIThreadProc(void*)

auto windowIDE = gcnew WindowIDE();

Core.Initialize("OpenXRayEditor", LogCallback(ELogCallback, windowIDE->Log().Handle.ToPointer()), true);
Core.Initialize("OpenXRayEditor", nullptr, LogCallback(ELogCallback, windowIDE->Log().Handle.ToPointer()), true);

#ifdef XR_X64
Device.m_sdlWnd = (SDL_Window*)windowIDE->View().GetViewHandle().ToInt64();
Expand Down
3 changes: 1 addition & 2 deletions src/editors/xrManagedApi/core/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ void Core::Initialize(String ^ appName, LogCallback ^ logCallback, bool initFs,
if (fsFileName)
{
std::string fsFileNameC = msclr::interop::marshal_as<std::string>(fsFileName);
::Core.Initialize(
appNameC.c_str(), nullptr ,::LogCallback(LogCallbackWrapper, nullptr), initFs, fsFileNameC.c_str());
::Core.Initialize(appNameC.c_str(), nullptr ,::LogCallback(LogCallbackWrapper, nullptr), initFs, fsFileNameC.c_str());
}
else
::Core.Initialize(appNameC.c_str(), nullptr, ::LogCallback(LogCallbackWrapper, nullptr), initFs, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Export/MeshExpPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, ULONG fdwReason, LPVOID lpvReserved)
if (!controlsInit)
{
controlsInit = TRUE;
Core.Initialize("S.T.A.L.K.E.R.Plugin", LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
Core.Initialize("S.T.A.L.K.E.R.Plugin", nullptr, LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
FS._initialize(CLocatorAPI::flScanAppRoot, NULL, "xray_path.ltx");
FPU::m64r(); // нужно чтобы макс не сбрасывал контрольки в 0
InitCustomControls(hInstance);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Material/DllEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, ULONG fdwReason, LPVOID lpvReserved)
if (!controlsInit)
{
controlsInit = TRUE;
Core.Initialize("S.T.A.L.K.E.R.Plugin", 0, FALSE, nullptr, true);
Core.Initialize("S.T.A.L.K.E.R.Plugin", nullptr, 0, FALSE, nullptr, true);
FS._initialize(CLocatorAPI::flScanAppRoot, NULL, "xray_path.ltx");
FPU::m64r(); // нужно чтобы макс не сбрасывал контрольки в 0
InitCustomControls(hInstance); // Initialize MAX's custom controls
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Maya/Export/XRayExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void uninitialize(void*)
MStatus initializePlugin(MObject obj)
{
INIT_OBJ = obj;
Core.Initialize("XRayMayaPlugin", LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
Core.Initialize("XRayMayaPlugin", nullptr, LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
FS._initialize(CLocatorAPI::flScanAppRoot, NULL, "xray_path.ltx");

MFnPlugin plugin(obj, "GSC Game World", "1.00", "Any");
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Maya/Material/lambertShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ MStatus initializePlugin(MObject obj)
INIT_OBJ = obj;
const MString UserClassify("shader/surface");

Core.Initialize("XRayMayaPlugin", LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
Core.Initialize("XRayMayaPlugin", nullptr, LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
FS._initialize(CLocatorAPI::flScanAppRoot, NULL, "xray_path.ltx");

MString command("if( `window -exists createRenderNodeWindow` ) {refreshCreateRenderNodeWindow(\"");
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/lw/Export/LW_export_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
//-----------------------------------------------------------------------------------------
void __cdecl SaveObjectMotion(GlobalFunc* global)
{
Core.Initialize("XRayPlugin", LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
Core.Initialize("XRayPlugin", nullptr, LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
FS._initialize(CLocatorAPI::flScanAppRoot, NULL, "xray_path.ltx");
// get bone ID
bool bErr = false;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/lw/Export/LW_export_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ extern "C" {
//-----------------------------------------------------------------------------------------
void __cdecl SaveObject(GlobalFunc* global)
{
Core.Initialize("XRayPlugin", LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
Core.Initialize("XRayPlugin", nullptr, LogCallback(ELogCallback, nullptr), FALSE, nullptr, true);
FS._initialize(CLocatorAPI::flScanAppRoot, NULL, "xray_path.ltx");

// get bone ID
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mp_balancer/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
void main(int argc, char* argv[])
{
xrDebug::Initialize(false);
Core.Initialize("mp_ballancer", NULL, TRUE, "fsgame.ltx");
Core.Initialize("mp_ballancer", nullptr, NULL, TRUE, "fsgame.ltx");

SetConsoleOutputCP(1251);

Expand Down
2 changes: 1 addition & 1 deletion src/utils/mp_configs_verifyer/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void run_configs_verifyer_server()

void initialize_core()
{
Core.Initialize("mp_configs_info", LogCallback(xrcore_log_cb, nullptr), TRUE, "fsgame4mpu.ltx");
Core.Initialize("mp_configs_info", nullptr, LogCallback(xrcore_log_cb, nullptr), TRUE, "fsgame4mpu.ltx");

string_path fname;
FS.update_path(fname, "$game_config$", "system.ltx");
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mp_screenshots_info/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ int main(int argc, char** argv)
return EXIT_FAILURE;
}
printf("Initializing core...\n");
Core.Initialize("mp_screenshots_info", LogCallback(xrcore_log_cb, nullptr), TRUE, "fsgame4mpu.ltx");
Core.Initialize("mp_screenshots_info", nullptr, LogCallback(xrcore_log_cb, nullptr), TRUE, "fsgame4mpu.ltx");

#ifdef DEBUG
if (strstr(argv[1], "--gen_params"))
Expand Down

0 comments on commit 4ea4f93

Please sign in to comment.