Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro-core
Commits
b5dd9d4a
Commit
b5dd9d4a
authored
Jun 03, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update wasm build
parent
3df667a9
Pipeline
#37131
passed with stages
in 2 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ocgapi.h
ocgapi.h
+6
-1
premake/dll.lua
premake/dll.lua
+1
-1
No files found.
ocgapi.h
View file @
b5dd9d4a
...
@@ -16,11 +16,16 @@
...
@@ -16,11 +16,16 @@
#define EXTERN_C
#define EXTERN_C
#endif
#endif
#ifdef _WIN32
#ifndef OCGCORE_API
#if defined(__EMSCRIPTEN__)
#include <emscripten/emscripten.h>
#define OCGCORE_API EXTERN_C EMSCRIPTEN_KEEPALIVE
#elif defined(_WIN32)
#define OCGCORE_API EXTERN_C __declspec(dllexport)
#define OCGCORE_API EXTERN_C __declspec(dllexport)
#else
#else
#define OCGCORE_API EXTERN_C __attribute__ ((visibility ("default")))
#define OCGCORE_API EXTERN_C __attribute__ ((visibility ("default")))
#endif
#endif
#endif
#define LEN_FAIL 0
#define LEN_FAIL 0
#define LEN_EMPTY 4
#define LEN_EMPTY 4
...
...
premake/dll.lua
View file @
b5dd9d4a
...
@@ -93,7 +93,7 @@ project "ocgcore"
...
@@ -93,7 +93,7 @@ project "ocgcore"
filter
"system:emscripten"
filter
"system:emscripten"
targetextension
".wasm"
targetextension
".wasm"
linkoptions
{
"-s MODULARIZE=1"
,
"-s EXPORT_NAME=\"
createOcgcore
\
""
,
"--no-entry"
,
"-s E
XPORTED_FUNCTIONS=[\"
_set_script_reader
\
",\"
_set_card_reader
\
",\"
_set_message_handler
\
",\"
_create_duel
\
",\"
_start_duel
\
",\"
_end_duel
\
",\"
_set_player_info
\
",\"
_get_log_message
\
",\"
_get_message
\
",\"
_process
\
",\"
_new_card
\
",\"
_new_tag_card
\
",\"
_query_card
\
",\"
_query_field_count
\
",\"
_query_field_card
\
",\"
_query_field_info
\
",\"
_set_responsei
\
",\"
_set_responseb
\
",\"
_preload_script
\
"]"
,
"-s E
NVIRONMENT=web,node"
,
"-s EXPORTED_RUNTIME_METHODS=[\"
ccall
\
",\"
cwrap
\
",\"
addFunction
\
",\"
removeFunction
\
"]"
,
"-s ALLOW_TABLE_GROWTH=1"
,
"-s ALLOW_MEMORY_GROWTH=1"
,
"-o ../wasm/libocgcore.js"
}
linkoptions
{
"-s MODULARIZE=1"
,
"-s EXPORT_NAME=\"
createOcgcore
\
""
,
"--no-entry"
,
"-s ENVIRONMENT=web,node"
,
"-s EXPORTED_RUNTIME_METHODS=[\"
ccall
\
",\"
cwrap
\
",\"
addFunction
\
",\"
removeFunction
\
"]"
,
"-s ALLOW_TABLE_GROWTH=1"
,
"-s ALLOW_MEMORY_GROWTH=1"
,
"-o ../wasm/libocgcore.js"
}
if
not
WASM
and
SQLITE3_DIR
and
os
.
isdir
(
SQLITE3_DIR
)
then
if
not
WASM
and
SQLITE3_DIR
and
os
.
isdir
(
SQLITE3_DIR
)
then
project
"sqlite3"
project
"sqlite3"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment