mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
44eb5ea3c6
This reverts commit 1c61ccfe84
.
24 lines
537 B
C++
24 lines
537 B
C++
/*
|
|
* Copyright 2010-2022 Branimir Karadzic. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
|
|
*/
|
|
|
|
#include "test.h"
|
|
|
|
int runAllTests(int _argc, const char* _argv[]);
|
|
|
|
#if BX_PLATFORM_ANDROID
|
|
# include <android/native_activity.h>
|
|
|
|
static const char* s_argv[] = { "bx.test" };
|
|
|
|
void ANativeActivity_onCreate(ANativeActivity*, void*, size_t)
|
|
{
|
|
exit(runAllTests(BX_COUNTOF(s_argv), s_argv) );
|
|
}
|
|
#else
|
|
int main(int _argc, const char* _argv[])
|
|
{
|
|
return runAllTests(_argc, _argv);
|
|
}
|
|
#endif // BX_PLATFORM
|