Android Fixes

This commit is contained in:
Isuru Samarathunga
2025-10-12 23:03:39 +05:30
parent ce9ea1fd52
commit 35ecd108ab
5 changed files with 27 additions and 7 deletions

View File

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

View File

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

View File

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