Changes between Version 4 and Version 5 of Ticket #3433, comment 27
- Timestamp:
- Dec 15, 2016, 12:38:41 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3433, comment 27
v4 v5 16 16 2. The `scriptInterface.GetProperty(replay, "directory", fileName)` return `false` if there was any error, but you code doesn't check that, and still works, even the `directory` is invalid, empty I think. 17 17 18 3. Why do you call `wunlink(cacheFileName)`, this file is opened only by the ifstream?18 3. Why break on `if (SDL_QuitRequested())` and not the return? 19 19 20 4. Why break on `if (SDL_QuitRequested())` and not the return?20 4. No needs to have `u32 i = 0;` as global (VisualReplay.cpp:243), move to the loop `for (u32 j = 0, i = 0; j < replaysLength; ++j)`. 21 21 22 5. No needs to have `u32 i = 0;` as global (VisualReplay.cpp:243), move to the loop `for (u32 j = 0, i = 0; j < replaysLength; ++j)`. 23 24 6. I'm not sure, just wondering, maybe use the same name style in the `scriptInterface.SetProperty(replayData, "fileSize", (u32)fileSize)` as other attributes: `filesize` or `file_size`. 22 5. I'm not sure, just wondering, maybe use the same name style in the `scriptInterface.SetProperty(replayData, "fileSize", (u32)fileSize)` as other attributes: `filesize` or `file_size`.