#3440 closed enhancement (fixed)
[PATCH] Replay menu cleanups
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 20 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description (last modified by )
Attachments (5)
Change History (14)
by , 9 years ago
Attachment: | t3440_fix_main_menu_entry_offset_v1.patch added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
by , 9 years ago
Attachment: | t3440_simplify_and_empty_JS_Interface_v1.patch added |
---|
Moves StartVisualReplay
from JSInterface_VisualReplay.cpp
to VisualReplay.cpp
, so that this file contains all the logic. Also uses early return and eliminates a variable in AutostartVisualReplay
.
by , 9 years ago
Attachment: | t3440_fix_main_menu_entry_add_warning_v2.patch added |
---|
Adds a warning to the main menu entry, that it might take some time to load initially.
comment:2 by , 9 years ago
TODO: hide or disable summary button if data is not available TODO: enhancement: Subtract the game duration of the filemoddate in case we are supplementing the timestamp on an a18 replay. This way those replays without timestamps list the start of the game instead of the end of the game.
by , 9 years ago
Attachment: | t3440_fix_compiler_warning.patch added |
---|
Fix a compiler warning, fileSize
is u64
.
comment:5 by , 8 years ago
TODO: As mentioned by leper: void StartVisualReplay(CStrW directory)
; -> const &
comment:7 by , 8 years ago
Keywords: | review removed |
---|---|
Priority: | Should Have → Nice to Have |
Type: | defect → enhancement |
I couldn't find a way yet to fix the compiler warning reported by fabio on gcc 5.2, without introducing a compiler warning on my own system.
../../../source/ps/VisualReplay.cpp: In function ‘int getReplayDuration(std::istream*, const CStr8&, const u64&)’: ../../../source/ps/VisualReplay.cpp:145:102: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64 {aka long long unsigned int}’ [-Wformat=] debug_printf("At position %i of %lu after %i lines reads.\n", currentPosition, fileSize, linesRead);
The last menu entry touched is off by 4 pixels. Noticed by niektb.