Android Fixes
This commit is contained in:
@ -119,6 +119,7 @@ namespace ia::iae
|
||||
|
||||
// Utility Functions
|
||||
STATIC Direction GetVectorPointingDirection(IN Vec2 v);
|
||||
STATIC Vector<UINT8> ReadBinaryAsset(IN CONST String& path);
|
||||
|
||||
// Random Functions
|
||||
STATIC FLOAT32 GetRandomFloat();
|
||||
|
||||
@ -27,7 +27,7 @@ struct GameRequestedConfig
|
||||
INT32 ScreenHeight{};
|
||||
};
|
||||
|
||||
C_DECL(GameRequestedConfig Game_GetConfigRequest());
|
||||
C_DECL(GameRequestedConfig* Game_GetConfigRequest());
|
||||
C_DECL(VOID Game_OnInitialize());
|
||||
C_DECL(VOID Game_OnTerminate());
|
||||
C_DECL(VOID Game_OnDebugDraw());
|
||||
@ -41,7 +41,7 @@ namespace ia::iae
|
||||
} // namespace ia::iae
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#define IAENGINE_RUN(name, packageName, developerName, publisherName, versionMajor, versionMinor, versionPatch) int SDL_main(int argc, char *argv[]) { return ia::iae::Run(name, packageName, developerName, publisherName, IA_MAKE_VERSION(versionMajor, versionMinor, versionPatch)); }
|
||||
#define IAENGINE_RUN(name, packageName, developerName, publisherName, versionMajor, versionMinor, versionPatch) extern "C" int SDL_main(int argc, char *argv[]) { return ia::iae::Run(name, packageName, developerName, publisherName, IA_MAKE_VERSION(versionMajor, versionMinor, versionPatch)); }
|
||||
#else
|
||||
#define IAENGINE_RUN(name, packageName, developerName, publisherName, versionMajor, versionMinor, versionPatch) int main(int argc, char *argv[]) { return ia::iae::Run(name, packageName, developerName, publisherName, IA_MAKE_VERSION(versionMajor, versionMinor, versionPatch)); }
|
||||
#endif
|
||||
|
||||
@ -39,7 +39,7 @@ namespace ia::iae
|
||||
{
|
||||
for (auto &c : m_components)
|
||||
{
|
||||
_component_type *comp = dynamic_cast<_component_type *>(c.get());
|
||||
_component_type *comp = dynamic_cast<_component_type *>(c);
|
||||
if (comp)
|
||||
return comp;
|
||||
}
|
||||
@ -51,7 +51,7 @@ namespace ia::iae
|
||||
Vector<_component_type *> result;
|
||||
for (auto &c : m_components)
|
||||
{
|
||||
_component_type *comp = dynamic_cast<_component_type *>(c.get());
|
||||
_component_type *comp = dynamic_cast<_component_type *>(c);
|
||||
if (comp)
|
||||
result.pushBack(comp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user