Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 73b0165

Browse files
committed
[Bug 19345] revbrowser: Add workaround for loading CEF from Externals dir
Add the same workaround to `revbrowser` that was added for `libbrowser` in commit 0e42caf. See also bug 19381.
1 parent 06095ed commit 73b0165

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

revbrowser/src/cefbrowser.cpp

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,20 @@ static bool __MCCefGetLibraryPath(char*& r_path)
143143
int t_retval = EXTERNAL_SUCCESS;
144144

145145
void *t_module = nullptr;
146-
LoadModuleByName("./CEF/libcef", &t_module, &t_retval);
147-
if (t_retval != EXTERNAL_SUCCESS)
148-
t_module = nullptr;
146+
if (t_module == nullptr)
147+
{
148+
LoadModuleByName("./CEF/libcef", &t_module, &t_retval);
149+
if (t_retval != EXTERNAL_SUCCESS)
150+
t_module = nullptr;
151+
}
152+
#if defined(WIN32) || defined(TARGET_PLATFORM_LINUX)
153+
if (t_module == nullptr)
154+
{
155+
LoadModuleByName("./Externals/CEF/libcef", &t_module, &t_retval);
156+
if (t_retval != EXTERNAL_SUCCESS)
157+
t_module = nullptr;
158+
}
159+
#endif
149160

150161
char *t_module_path =
151162
t_module != nullptr ? CopyNativePathOfModule(t_module, &t_retval)

0 commit comments

Comments
 (0)