mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 03:42:34 +01:00
- [Psy-X] PrintMessageToOutput makes pretty output for emscripten
- fix runtime warning - fix build errors, bump version
This commit is contained in:
parent
9d1f80dc00
commit
4783a9a745
@ -1,4 +1,4 @@
|
||||
version: 7.0.{build}
|
||||
version: 7.2.{build}
|
||||
|
||||
branches:
|
||||
only:
|
||||
|
@ -40,7 +40,7 @@ void emStateFunc()
|
||||
void DoStateLoop()
|
||||
{
|
||||
#ifdef __EMSCRIPTEN__
|
||||
emscripten_set_main_loop(emStateFunc, 120, 1);
|
||||
emscripten_set_main_loop(emStateFunc, 0, 1);
|
||||
#else
|
||||
do
|
||||
{
|
||||
|
@ -515,6 +515,31 @@ void PrintMessageToOutput(SpewType_t spewtype, char const* pMsgFormat, va_list a
|
||||
|
||||
#ifdef WIN32
|
||||
Spew_ConDebugSpew(spewtype, pTempBuffer);
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
if (spewtype == SPEW_INFO)
|
||||
{
|
||||
EM_ASM({
|
||||
console.info(UTF8ToString($0));
|
||||
}, pTempBuffer);
|
||||
}
|
||||
else if (spewtype == SPEW_WARNING)
|
||||
{
|
||||
EM_ASM({
|
||||
console.warn(UTF8ToString($0));
|
||||
}, pTempBuffer);
|
||||
}
|
||||
else if (spewtype == SPEW_ERROR)
|
||||
{
|
||||
EM_ASM({
|
||||
console.error(UTF8ToString($0));
|
||||
}, pTempBuffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
EM_ASM({
|
||||
console.log(UTF8ToString($0));
|
||||
}, pTempBuffer);
|
||||
}
|
||||
#else
|
||||
printf(pTempBuffer);
|
||||
#endif
|
||||
|
@ -19,8 +19,8 @@ SDL2_DIR = os.getenv("SDL2_DIR") or "dependencies/SDL2"
|
||||
OPENAL_DIR = os.getenv("OPENAL_DIR") or "dependencies/openal-soft"
|
||||
JPEG_DIR = os.getenv("JPEG_DIR") or "dependencies/jpeg"
|
||||
|
||||
WEBDEMO_DIR = os.getenv("WEBDEMO_DIR") or "../../content/web_demo@/" -- FIXME: make it better
|
||||
WEBSHELL_PATH = "../.emscripten"
|
||||
WEBDEMO_DIR = os.getenv("WEBDEMO_DIR") or "../../../content/web_demo@/" -- FIXME: make it better
|
||||
WEBSHELL_PATH = "../../.emscripten"
|
||||
|
||||
GAME_REGION = os.getenv("GAME_REGION") or "NTSC_VERSION" -- or PAL_VERSION
|
||||
GAME_VERSION = os.getenv("APPVEYOR_BUILD_VERSION") or nil
|
||||
@ -81,8 +81,6 @@ workspace "REDRIVER2"
|
||||
("--preload-file " .. WEBDEMO_DIR)
|
||||
}
|
||||
|
||||
targetextension ".bc"
|
||||
|
||||
filter { "kind:*App" }
|
||||
targetextension ".html"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user