Changeset 2306
- Timestamp:
- Jan 31, 2013, 6:55:52 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/image/codec/ps3-image.cpp
r2183 r2306 2 2 // Lol Engine 3 3 // 4 // Copyright: (c) 2010-201 1Sam Hocevar <sam@hocevar.net>4 // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> 5 5 // This program is free software; you can redistribute it and/or 6 6 // modify it under the terms of the Do What The Fuck You Want To … … 94 94 CellPngDecSubHandle hsub; 95 95 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); 98 97 99 98 CellPngDecSrc dec_src; 100 99 dec_src.srcSelect = CELL_PNGDEC_FILE; 101 dec_src.fileName = file;100 dec_src.fileName = &fullpath[0]; 102 101 dec_src.fileOffset = 0; 103 102 dec_src.fileSize = 0; … … 110 109 { 111 110 #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]); 113 112 #endif 114 113 return false; … … 120 119 { 121 120 #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]); 123 122 #endif 124 123 return false; … … 155 154 { 156 155 #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]); 158 157 #endif 159 158 return false; -
trunk/src/lol/sys/init.h
r2259 r2306 44 44 45 45 extern 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); 48 48 49 49 extern void SetDataDir(char const *dir); -
trunk/src/sys/init.cpp
r2263 r2306 37 37 38 38 void Init(int argc, char *argv[], 39 String const projectdir, String constsolutiondir)39 String const &projectdir, String const &solutiondir) 40 40 { 41 41 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.