mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 09:15:41 +00:00
emscripten: Update deprecated calls to EM_ASM*.
`EM_ASM_` and `EM_ASM_INT_V` are calls that have been deprecated for a long time. Since the return value isn't used for the call to `EM_ASM_`, it can be replaced with `EM_ASM`. `EM_ASM_INT_V` is now (for the last few years) `EM_ASM_INT`. (cherry picked from commit a8e89f2567b9069c919f9b21996e0a46cd4bb679)
This commit is contained in:
parent
17515f4aef
commit
7d2012af87
|
@ -264,7 +264,7 @@ static int EMSCRIPTENAUDIO_OpenDevice(_THIS, const char *devname)
|
||||||
this->hidden = (struct SDL_PrivateAudioData *)0x1;
|
this->hidden = (struct SDL_PrivateAudioData *)0x1;
|
||||||
|
|
||||||
/* limit to native freq */
|
/* limit to native freq */
|
||||||
this->spec.freq = EM_ASM_INT_V({
|
this->spec.freq = EM_ASM_INT({
|
||||||
var SDL2 = Module['SDL2'];
|
var SDL2 = Module['SDL2'];
|
||||||
return SDL2.audioContext.sampleRate;
|
return SDL2.audioContext.sampleRate;
|
||||||
});
|
});
|
||||||
|
|
|
@ -4565,7 +4565,7 @@ int SDL_ShowSimpleMessageBox(Uint32 flags, const char *title, const char *messag
|
||||||
if (message == NULL) {
|
if (message == NULL) {
|
||||||
message = "";
|
message = "";
|
||||||
}
|
}
|
||||||
EM_ASM_({
|
EM_ASM({
|
||||||
alert(UTF8ToString($0) + "\n\n" + UTF8ToString($1));
|
alert(UTF8ToString($0) + "\n\n" + UTF8ToString($1));
|
||||||
},
|
},
|
||||||
title, message);
|
title, message);
|
||||||
|
|
Loading…
Reference in a new issue