forked from Perchik71/Creation-Kit-Platform-Extended
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Com multithread patch; - DX11 added fMipLODBias option for mipmaps; SSE: - Remove lock render frame; - Fixed 1.5.73 novysc patch; SF: - Added archive patch, load .ba2's with plugins (limit .ba2's 0xfc);
- Loading branch information
Showing
39 changed files
with
1,583 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Copyright © 2023-2024 aka perchik71. All rights reserved. | ||
// Contacts: <email:[email protected]> | ||
// License: https://www.gnu.org/licenses/gpl-3.0.html | ||
|
||
#include "Core/Engine.h" | ||
#include "Editor API/EditorUI.h" | ||
#include "ComPatch.h" | ||
|
||
namespace CreationKitPlatformExtended | ||
{ | ||
namespace Patches | ||
{ | ||
using namespace CreationKitPlatformExtended::EditorAPI; | ||
|
||
ComPatch::ComPatch() : Module(GlobalEnginePtr) | ||
{} | ||
|
||
bool ComPatch::HasOption() const | ||
{ | ||
return false; | ||
} | ||
|
||
bool ComPatch::HasCanRuntimeDisabled() const | ||
{ | ||
return false; | ||
} | ||
|
||
const char* ComPatch::GetOptionName() const | ||
{ | ||
return nullptr; | ||
} | ||
|
||
const char* ComPatch::GetName() const | ||
{ | ||
return "COM"; | ||
} | ||
|
||
bool ComPatch::HasDependencies() const | ||
{ | ||
return false; | ||
} | ||
|
||
Array<String> ComPatch::GetDependencies() const | ||
{ | ||
return {}; | ||
} | ||
|
||
bool ComPatch::QueryFromPlatform(EDITOR_EXECUTABLE_TYPE eEditorCurrentVersion, | ||
const char* lpcstrPlatformRuntimeVersion) const | ||
{ | ||
return true; | ||
} | ||
|
||
bool ComPatch::Activate(const Relocator* lpRelocator, | ||
const RelocationDatabaseItem* lpRelocationDatabaseItem) | ||
{ | ||
if (lpRelocationDatabaseItem->Version() == 1) | ||
{ | ||
PatchIAT(HKCoInitializeEx, "COMBASE.DLL", "CoInitializeEx"); | ||
PatchIAT(HKCoInitialize, "OLE32.DLL", "CoInitialize"); | ||
|
||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
bool ComPatch::Shutdown(const Relocator* lpRelocator, | ||
const RelocationDatabaseItem* lpRelocationDatabaseItem) | ||
{ | ||
return false; | ||
} | ||
|
||
HRESULT ComPatch::HKCoInitialize(LPVOID pvReserved) | ||
{ | ||
return CoInitializeEx(pvReserved, COINITBASE_MULTITHREADED); | ||
} | ||
|
||
HRESULT ComPatch::HKCoInitializeEx(LPVOID pvReserved, DWORD dwCoInit) | ||
{ | ||
return CoInitializeEx(pvReserved, COINITBASE_MULTITHREADED); | ||
} | ||
} | ||
} |
Oops, something went wrong.