You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f6639.
There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
This commit is contained in:
@@ -225,7 +225,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
|
||||
/* identify the codec: try theora */
|
||||
if (!theora_p && th_decode_headerin(&ti, &tc, &ts, &op) >= 0) {
|
||||
/* it is theora */
|
||||
copymem(&to, &test, sizeof(test));
|
||||
memcpy(&to, &test, sizeof(test));
|
||||
theora_p = 1;
|
||||
} else if (!vorbis_p && vorbis_synthesis_headerin(&vi, &vc, &op) >= 0) {
|
||||
/* it is vorbis */
|
||||
@@ -238,7 +238,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
|
||||
|
||||
audio_track_skip--;
|
||||
} else {
|
||||
copymem(&vo, &test, sizeof(test));
|
||||
memcpy(&vo, &test, sizeof(test));
|
||||
vorbis_p = 1;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user