Revisión | 79ae349d254e2e31fda2245302003e9e4939db84 (tree) |
---|---|
Tiempo | 2012-09-12 14:23:14 |
Autor | angeart <angeart@git....> |
Commiter | angeart |
GenerateJSON.cpp修正
@@ -185,7 +185,7 @@ JsonGen::JsonGen() | ||
185 | 185 | FILE *json_file = 0; |
186 | 186 | |
187 | 187 | // resources/models/内検索 列挙 |
188 | - hFind = FindFirstFile(_T("\\resources\\models\\?*"), &win32fd_dir); | |
188 | + hFind = FindFirstFile(_T(".\\resources\\models\\?*"), &win32fd_dir); | |
189 | 189 | |
190 | 190 | if (hFind == INVALID_HANDLE_VALUE) { |
191 | 191 | return; |
@@ -196,7 +196,7 @@ JsonGen::JsonGen() | ||
196 | 196 | _tcscmp(win32fd_dir.cFileName,_T("."))!=0 && |
197 | 197 | _tcscmp(win32fd_dir.cFileName,_T(".."))!=0 && |
198 | 198 | _tcscmp(win32fd_dir.cFileName,_T(".svn"))!=0) { |
199 | - _tcscpy_s(tcsTmpDir,_T("\\resources\\models\\")); | |
199 | + _tcscpy_s(tcsTmpDir,_T(".\\resources\\models\\")); | |
200 | 200 | _tcscat_s(tcsTmpDir,win32fd_dir.cFileName); |
201 | 201 | _tcscat_s(tcsTmpDir,_T("\\")); |
202 | 202 |
@@ -221,14 +221,14 @@ JsonGen::JsonGen() | ||
221 | 221 | ZeroMemory(cur_dir,MAX_PATH); |
222 | 222 | GetCurrentDirectory(MAX_PATH,cur_dir); |
223 | 223 | bool flag = false; |
224 | - for(int k = MAX_PATH - 1;k != 0;--k) | |
224 | + /*for(int k = MAX_PATH - 1;k != 0;--k) | |
225 | 225 | { |
226 | 226 | if( cur_dir[k] == _T('\\') ) |
227 | 227 | { |
228 | 228 | cur_dir[k] = 0; |
229 | 229 | break; |
230 | 230 | } |
231 | - } | |
231 | + }*/ | |
232 | 232 | do { |
233 | 233 | std::wstring tmp_path = cur_dir; |
234 | 234 | tmp_path += _T("\\resources\\models\\"); |
@@ -304,7 +304,7 @@ JsonGen::JsonGen() | ||
304 | 304 | prejson += tmp_f; |
305 | 305 | prejson += _T(",\n\t\t\t\"motions\":\n\t\t\t\t{\n\t\t\t\t\t\"stand\":\"basic_stand.vmd\",\n\t\t\t\t\t\"walk\": \t\"basic_walk.vmd\",\n\t\t\t\t\t\"run\":\t\"basic_run.vmd\"\n\t\t\t\t}\n\t\t}\n}"); |
306 | 306 | TCHAR tmp_dir[MAX_PATH]; |
307 | - _tcscpy_s(tmp_dir,_T("\\resources\\models\\")); | |
307 | + _tcscpy_s(tmp_dir,_T(".\\resources\\models\\")); | |
308 | 308 | _tcscat_s(tmp_dir,tmp_w_a); |
309 | 309 | _tcscat_s(tmp_dir,_T("式")); |
310 | 310 | _tcscat_s(tmp_dir,tmp_w_m); |