• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión79ae349d254e2e31fda2245302003e9e4939db84 (tree)
Tiempo2012-09-12 14:23:14
Autorangeart <angeart@git....>
Commiterangeart

Log Message

GenerateJSON.cpp修正

Cambiar Resumen

Diferencia incremental

--- a/client/GenerateJSON.cpp
+++ b/client/GenerateJSON.cpp
@@ -185,7 +185,7 @@ JsonGen::JsonGen()
185185 FILE *json_file = 0;
186186
187187 // resources/models/内検索 列挙
188- hFind = FindFirstFile(_T("\\resources\\models\\?*"), &win32fd_dir);
188+ hFind = FindFirstFile(_T(".\\resources\\models\\?*"), &win32fd_dir);
189189
190190 if (hFind == INVALID_HANDLE_VALUE) {
191191 return;
@@ -196,7 +196,7 @@ JsonGen::JsonGen()
196196 _tcscmp(win32fd_dir.cFileName,_T("."))!=0 &&
197197 _tcscmp(win32fd_dir.cFileName,_T(".."))!=0 &&
198198 _tcscmp(win32fd_dir.cFileName,_T(".svn"))!=0) {
199- _tcscpy_s(tcsTmpDir,_T("\\resources\\models\\"));
199+ _tcscpy_s(tcsTmpDir,_T(".\\resources\\models\\"));
200200 _tcscat_s(tcsTmpDir,win32fd_dir.cFileName);
201201 _tcscat_s(tcsTmpDir,_T("\\"));
202202
@@ -221,14 +221,14 @@ JsonGen::JsonGen()
221221 ZeroMemory(cur_dir,MAX_PATH);
222222 GetCurrentDirectory(MAX_PATH,cur_dir);
223223 bool flag = false;
224- for(int k = MAX_PATH - 1;k != 0;--k)
224+ /*for(int k = MAX_PATH - 1;k != 0;--k)
225225 {
226226 if( cur_dir[k] == _T('\\') )
227227 {
228228 cur_dir[k] = 0;
229229 break;
230230 }
231- }
231+ }*/
232232 do {
233233 std::wstring tmp_path = cur_dir;
234234 tmp_path += _T("\\resources\\models\\");
@@ -304,7 +304,7 @@ JsonGen::JsonGen()
304304 prejson += tmp_f;
305305 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}");
306306 TCHAR tmp_dir[MAX_PATH];
307- _tcscpy_s(tmp_dir,_T("\\resources\\models\\"));
307+ _tcscpy_s(tmp_dir,_T(".\\resources\\models\\"));
308308 _tcscat_s(tmp_dir,tmp_w_a);
309309 _tcscat_s(tmp_dir,_T("式"));
310310 _tcscat_s(tmp_dir,tmp_w_m);