|
[A5] Setting Path Values for Android |
Eric Johnson
Member #14,841
January 2013
|
Hello. I'm having issues with finding paths in an Android project of mine. Here's my path-setting function: void SetResourcePath(const char *k_resources_directory) { ALLEGRO_PATH *path = al_get_standard_path(ALLEGRO_RESOURCES_PATH); al_append_path_component(path, k_resources_directory); al_change_directory(al_path_cstr(path, '/')); al_destroy_path(); } The directory of my resources is ./assets, which I call by SetResourcePath("assets"). Well, it's not working on Android. Is there any particular reason as to why this is? Also, I can't seem to get my Android project to compile with my own directories. For example, I want to have a "potatoes" directory, so I throw the directory into the project, but it doesn't compile with it. It does, however, compile with an "assets" directory. Why is that?
|
Thomas Fjellstrom
Member #476
June 2000
|
Yeah, its been a while since i last played with those things, but I'm not sure you can get to the actual app resources with ALLEGRO_RESOURCES_PATH. Try ALLEGRO_USER_DATA_PATH. Sheegoth said: Also, I can't seem to get my Android project to compile with my own directories. For example, I want to have a "potatoes" directory, so I throw the directory into the project, but it doesn't compile with it. It does, however, compile with an "assets" directory. Why is that? I think its because Android has a specific package layout that you need to stick to. -- |
Eric Johnson
Member #14,841
January 2013
|
Edit (13.09.06 at 13:43 PST)
|
|