Changeset 2306


Ignore:
Timestamp:
Jan 31, 2013, 6:55:52 PM (10 years ago)
Author:
sam
Message:

ps3: use network fallback for image files.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/image/codec/ps3-image.cpp

    r2183 r2306  
    22// Lol Engine
    33//
    4 // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
     4// Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
    55//   This program is free software; you can redistribute it and/or
    66//   modify it under the terms of the Do What The Fuck You Want To
     
    9494    CellPngDecSubHandle hsub;
    9595
    96     char file[1024];
    97     sprintf(file, "/app_home/c:/Users/s.hocevar/le/%s", path);
     96    String fullpath = String("/app_home/") + String(System::GetDataDir()) + String(path);
    9897
    9998    CellPngDecSrc dec_src;
    10099    dec_src.srcSelect = CELL_PNGDEC_FILE;
    101     dec_src.fileName = file;
     100    dec_src.fileName = &fullpath[0];
    102101    dec_src.fileOffset = 0;
    103102    dec_src.fileSize = 0;
     
    110109    {
    111110#if !LOL_RELEASE
    112         Log::Error("could not open %s for decoding\n", file);
     111        Log::Error("could not open %s for decoding\n", &fullpath[0]);
    113112#endif
    114113        return false;
     
    120119    {
    121120#if !LOL_RELEASE
    122         Log::Error("could not read image header\n");
     121        Log::Error("could not read image header in %s\n", &fullpath[0]);
    123122#endif
    124123        return false;
     
    155154    {
    156155#if !LOL_RELEASE
    157         Log::Error("could not run PngDec decoder\n");
     156        Log::Error("could not run PngDec decoder on %s\n", &fullpath[0]);
    158157#endif
    159158        return false;
  • trunk/src/lol/sys/init.h

    r2259 r2306  
    4444
    4545extern void Init(int argc, char *argv[],
    46                  String const projectdir = LOL_CONFIG_PROJECTDIR,
    47                  String const solutiondir = LOL_CONFIG_SOLUTIONDIR);
     46                 String const &projectdir = LOL_CONFIG_PROJECTDIR,
     47                 String const &solutiondir = LOL_CONFIG_SOLUTIONDIR);
    4848
    4949extern void SetDataDir(char const *dir);
  • trunk/src/sys/init.cpp

    r2263 r2306  
    3737
    3838void Init(int argc, char *argv[],
    39           String const projectdir, String const solutiondir)
     39          String const &projectdir, String const &solutiondir)
    4040{
    4141    using namespace std;
Note: See TracChangeset for help on using the changeset viewer.