We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1600 - SDL_GetPlatform() returns "unknown os"
Summary: SDL_GetPlatform() returns "unknown os"
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 03:23 UTC by Pallav Nawani
Modified: 2012-09-19 22:51 UTC (History)
0 users

See Also:


Attachments
patch for really complicated problem (334 bytes, patch)
2012-09-19 12:11 UTC, Philipp Wiesemann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pallav Nawani 2012-09-14 03:23:02 UTC
Looking through the code for SDL_GetPlatform(), it is obvious that the case for Android platform doesn't exist. And hence SDL_GetPlatform() doesn't return a useful string on Android Phones.
Comment 1 Philipp Wiesemann 2012-09-19 12:11:56 UTC
Created attachment 951 [details]
patch for really complicated problem

I attached a patch which adds the missing case for Android.
Comment 2 Ryan C. Gordon 2012-09-19 18:13:21 UTC
Whoops, Sam beat me to this; it's in there as hg changeset ada3545fed23.

Thanks!

--ryan.
Comment 3 Pallav Nawani 2012-09-19 22:51:19 UTC
(In reply to comment #1)
> Created attachment 951 [details]
> patch for really complicated problem
> 
> I attached a patch which adds the missing case for Android.

Complicated or not, It was a problem.