Ignore:
Timestamp:
Apr 29, 2011, 9:18:23 PM (11 years ago)
Author:
Sam Hocevar
Message:

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/clisp.cpp

    r527 r555  
    55 *
    66 *  This software was released into the Public Domain. As with most public
    7  *  domain software, no warranty is made or implied by Crack dot Com or
    8  *  Jonathan Clark.
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
    99 */
    1010
    11 #include "config.h"
     11#if defined HAVE_CONFIG_H
     12#   include "config.h"
     13#endif
    1214
    1315#include <string.h>
     
    943945    case 54 :
    944946    {
     947#if defined __CELLOS_LV2__
     948      /* FIXME: retrieve the PS3 account name */
     949      char const *cd = "Player";
     950#else
    945951      char cd[150];
    946       getcwd(cd,100);
     952      getcwd(cd, 100);
     953#endif
    947954      return LString::Create(cd);
    948955    } break;
    949956    case 55 :
    950     { system(lstring_value(CAR(args)->Eval())); } break;
     957#if !defined __CELLOS_LV2__
     958      /* FIXME: this looks rather dangerous */
     959      system(lstring_value(CAR(args)->Eval()));
     960#endif
     961      break;
    951962    case 56 :
    952963    {
     
    21772188    case 276 :
    21782189    {
     2190#if defined __CELLOS_LV2__
     2191      return 0;
     2192#else
    21792193      if (!main_net_cfg) return 0;
    21802194      return become_server(game_name);
     2195#endif
    21812196    } break;
    21822197    case 277 :
Note: See TracChangeset for help on using the changeset viewer.