X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=inline;f=player_replay.c;h=38c21921aa387af1f9dfe04cde497ad0b8abd38b;hb=2dd61c7f0185ec525658ca398801f46e6adccf23;hp=5f57d9f0337da280e7c4deb6cdf8ba93d9a94a9d;hpb=09be4380a98386d6494946fbd3369458f8e7f267;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_replay.c b/player_replay.c index 5f57d9f..38c2192 100644 --- a/player_replay.c +++ b/player_replay.c @@ -12,12 +12,6 @@ VG_STATIC void replay_clear( replay_buffer *replay ){ replay->control = k_replay_control_none; } -VG_STATIC void local_replay_init( u32 bytes ){ - localplayer.replay.data = vg_linear_alloc( vg_mem.rtmemory, bytes ); - localplayer.replay.size = bytes; - replay_clear( &localplayer.replay ); -} - replay_gamestate *replay_frame_gamestate( replay_frame *frame, u16 index ){ void *baseptr = frame; @@ -162,6 +156,7 @@ VG_STATIC replay_frame *replay_find_recent_stateframe( replay_buffer *replay ){ } VG_STATIC void player_replay_control_update( player_instance *player ){ +#if 0 f64 speed = 1.0; f64 target = player->replay.cursor; @@ -220,9 +215,11 @@ VG_STATIC void player_replay_control_update( player_instance *player ){ return; } } +#endif } VG_STATIC void replay_debug_info( player_instance *player ){ +#if 0 player__debugtext( 2, "replay info" ); replay_buffer *replay = &player->replay; @@ -250,9 +247,11 @@ VG_STATIC void replay_debug_info( player_instance *player ){ len = end - start; player__debugtext( 1, "cursor: %.2fs / %.2fs\n", cur, len ); +#endif } VG_STATIC void replay_imgui( player_instance *player ){ +#if 0 if( player->replay.control == k_replay_control_none ) return; replay_buffer *replay = &player->replay; @@ -310,6 +309,7 @@ VG_STATIC void replay_imgui( player_instance *player ){ snprintf( buffer, 128, "-%.2fs\n", len ); ui_text( bar, buffer, 1, k_ui_align_middle_left, 0 ); ui_text( bar, "0s", 1, k_ui_align_middle_right, 0 ); +#endif } #endif /* PLAYER_REPLAY_C */