Add apple.py, fix some global initialization on iOS, and add some missing bundle-related files.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4524 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-16 13:57:40 +00:00
parent 11929e8c68
commit b3a1f17452
5 changed files with 1670 additions and 2 deletions

View File

@ -568,6 +568,7 @@ static int _tf_command_usage(const char* file, int argc, char* argv[])
}
return 0;
}
#endif
static void _backtrace_error(void* data, const char* message, int errnum)
{
@ -582,7 +583,7 @@ static void _error_handler(int sig)
_exit(1);
}
int main(int argc, char* argv[])
static void _startup(int argc, char* argv[])
{
bool tracking = false;
for (int i = 1; i < argc; i++)
@ -635,6 +636,12 @@ int main(int argc, char* argv[])
perror("signal");
}
}
}
#if !TARGET_OS_IPHONE
int main(int argc, char* argv[])
{
_startup(argc, argv);
int result = 0;
if (argc >= 2)
@ -662,6 +669,7 @@ done:
void tf_run_thread_start(const char* zip_path)
{
_startup(0, NULL);
uv_thread_t* thread = tf_malloc(sizeof(uv_thread_t));
tf_run_thread_data_t* data = tf_malloc(sizeof(tf_run_thread_data_t));
tf_run_args_t args =