mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix Android remote debug not hitting breakpoints
A change in `Main`'s API is needed. Please read the comment in the diff for an explanation.
This commit is contained in:
parent
723e8482c0
commit
e42d62ae73
3 changed files with 10 additions and 4 deletions
|
|
@ -69,7 +69,6 @@
|
|||
#include "core/io/file_access_zip.h"
|
||||
#include "core/io/stream_peer_ssl.h"
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/os/thread.h"
|
||||
#include "main/input_default.h"
|
||||
#include "performance.h"
|
||||
#include "translation.h"
|
||||
|
|
@ -841,7 +840,11 @@ error:
|
|||
return ERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Error Main::setup2() {
|
||||
Error Main::setup2(Thread::ID p_main_tid_override) {
|
||||
|
||||
if (p_main_tid_override) {
|
||||
Thread::_main_thread_id = p_main_tid_override;
|
||||
}
|
||||
|
||||
OS::get_singleton()->initialize(video_mode, video_driver_idx, audio_driver_idx);
|
||||
if (init_use_custom_pos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue