Add custom modifications

This commit is contained in:
Milan Nikolic 2021-05-25 14:36:08 +02:00
parent c1525b67af
commit 59d7351c8d
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
2 changed files with 6 additions and 2 deletions

View file

@ -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)

View file

@ -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