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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afronanny
Veteran Member
Join Date: Aug 2009
Old 12-24-2010 , 11:17   Re: [EXTENSION] System2
Reply With Quote #1

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
dordnung
Veteran Member
Join Date: Apr 2010
Old 12-24-2010 , 11:19   Re: [EXTENSION] System2
Reply With Quote #2

Yes i already add this, only have to compile it for linux

UPDATED NOW!
__________________

Last edited by dordnung; 12-25-2010 at 11:28.
dordnung is offline
Reply



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 08:33.


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