Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tome
Tales of MajEyal
Commits
8d978da5
Commit
8d978da5
authored
10 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
betetr info
parent
9ddf3076
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/web.c
+18
-10
18 additions, 10 deletions
src/web.c
with
18 additions
and
10 deletions
src/web.c
+
18
−
10
View file @
8d978da5
...
...
@@ -508,44 +508,52 @@ static void web_instant_js(int handlers, const char *fct, int nb_args, WebJsValu
}
void
te4_web_load
()
{
char
*
spawnname
=
NULL
;
char
*
libname
=
NULL
;
const
char
*
self
=
get_self_executable
(
g_argc
,
g_argv
);
#if defined(SELFEXE_LINUX) || defined(SELFEXE_BSD)
#if defined(TE4_RELPATH64)
const
char
*
spawnbname
=
"cef3spawn64"
;
char
*
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
strcpy
(
spawnname
,
self
);
strcpy
(
strrchr
(
spawnname
,
'/'
)
+
1
,
spawnbname
);
void
*
web
=
SDL_LoadObject
(
"lib64/libte4-web.so"
);
libname
=
"lib64/libte4-web.so"
;
void
*
web
=
SDL_LoadObject
(
libname
);
#elif defined(TE4_RELPATH32)
const
char
*
spawnbname
=
"cef3spawn32"
;
char
*
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
strcpy
(
spawnname
,
self
);
strcpy
(
strrchr
(
spawnname
,
'/'
)
+
1
,
spawnbname
);
void
*
web
=
SDL_LoadObject
(
"lib/libte4-web.so"
);
libname
=
"lib/libte4-web.so"
;
void
*
web
=
SDL_LoadObject
(
libname
);
#else
const
char
*
spawnbname
=
"cef3spawn"
;
char
*
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
strcpy
(
spawnname
,
self
);
strcpy
(
strrchr
(
spawnname
,
'/'
)
+
1
,
spawnbname
);
void
*
web
=
SDL_LoadObject
(
"libte4-web.so"
);
libname
=
"libte4-web.so"
;
void
*
web
=
SDL_LoadObject
(
libname
);
#endif
#elif defined(SELFEXE_WINDOWS)
const
char
*
spawnbname
=
"cef3spawn.exe"
;
char
*
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
spawnname
=
malloc
(
strlen
(
self
)
+
strlen
(
spawnbname
)
+
1
);
strcpy
(
spawnname
,
self
);
strcpy
(
strrchr
(
spawnname
,
'\\'
)
+
1
,
spawnbname
);
void
*
web
=
SDL_LoadObject
(
"te4-web.dll"
);
libname
=
"te4-web.dll"
;
void
*
web
=
SDL_LoadObject
(
libname
);
#elif defined(SELFEXE_MACOSX)
char
*
spawnname
=
NULL
;
spawnname
=
NULL
;
const
char
*
name
=
"libte4-web.dylib"
;
char
*
lib
=
malloc
(
strlen
(
self
)
+
strlen
(
name
)
+
1
);
strcpy
(
lib
,
self
);
strcpy
(
lib
+
strlen
(
self
),
name
);
libname
=
lib
;
void
*
web
=
SDL_LoadObject
(
lib
);
#else
void
*
web
=
NULL
;
#endif
printf
(
"Loading web core: %s
\n
"
,
web
?
"loaded!"
:
SDL_GetError
());
printf
(
"WebCore config: library(%s) spawn(%s)
\n
"
,
libname
?
libname
:
"--"
,
spawnname
?
spawnname
:
"--"
);
printf
(
"Loading WebCore: %s
\n
"
,
web
?
"loaded!"
:
SDL_GetError
());
if
(
web
)
{
webcore
=
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment