Add custom modifications
This commit is contained in:
parent
c1525b67af
commit
59d7351c8d
2 changed files with 6 additions and 2 deletions
|
@ -585,15 +585,17 @@ static int FindNearestConnectorMode(const drmModeConnector *connector, uint widt
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
// To allow easier porting to android, we allow the user to define a
|
// To allow easier porting to android, we allow the user to define a
|
||||||
// main function which we call from android_main, defined by ourselves
|
// main function which we call from android_main, defined by ourselves
|
||||||
extern int main(int argc, char *argv[]);
|
//extern int main(int argc, char *argv[]);
|
||||||
|
extern void android_run();
|
||||||
|
|
||||||
void android_main(struct android_app *app)
|
void android_main(struct android_app *app)
|
||||||
{
|
{
|
||||||
char arg0[] = "raylib"; // NOTE: argv[] are mutable
|
char arg0[] = "raylib"; // NOTE: argv[] are mutable
|
||||||
CORE.Android.app = app;
|
CORE.Android.app = app;
|
||||||
|
|
||||||
|
(void)android_run();
|
||||||
// TODO: Should we maybe report != 0 return codes somewhere?
|
// TODO: Should we maybe report != 0 return codes somewhere?
|
||||||
(void)main(1, (char *[]) { arg0, NULL });
|
//(void)main(1, (char *[]) { arg0, NULL });
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add this to header (if apps really need it)
|
// TODO: Add this to header (if apps really need it)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build !noaudio
|
||||||
|
|
||||||
/**********************************************************************************************
|
/**********************************************************************************************
|
||||||
*
|
*
|
||||||
* raudio v1.0 - A simple and easy-to-use audio library based on miniaudio
|
* raudio v1.0 - A simple and easy-to-use audio library based on miniaudio
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue