This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[EXTENSION] System2 - Easy to use HTTP(S)/FTP Request API and useful system natives


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Afronanny
Veteran Member
Join Date: Aug 2009
Old 12-24-2010 , 11:17   Re: [EXTENSION] System2
Reply With Quote #10

Quote:
Originally Posted by Popoklopsi View Post
good idea, i will add this
PHP Code:
enum Os {
    
Os_Linux 1,
    
Os_Windows,
    
Os_Mac
}

cell_t Native_GetOS(IPluginContext *pContext, const cell_t *params)
{
#ifdef __linux__
    
return Os_Linux;
#elif defined _WIN32
    
return Os_Windows;
#elif defined __APPLE__
    
return Os_Mac;
#endif

Afronanny is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode