Skip to content

Commit

Permalink
tr2: port S_IntroFMV
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Oct 20, 2024
1 parent 92796fc commit 44a2001
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
16 changes: 8 additions & 8 deletions docs/tr2/progress.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/tr2/progress.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3937,7 +3937,7 @@ typedef enum {
0x0044C3A0 0x0043 *R void __cdecl S_FadeToBlack(void);
0x0044C3F0 0x0057 +R void __cdecl S_Wait(int32_t timeout, BOOL input_check);
0x0044C450 0x000E +R bool __cdecl S_PlayFMV(const char *file_name);
0x0044C460 0x0013 -R bool __cdecl S_IntroFMV(const char *file_name1, const char *file_name2);
0x0044C460 0x0013 +R bool __cdecl S_IntroFMV(const char *file_name1, const char *file_name2);
0x0044C480 0x0144 + int16_t __cdecl Game_Start(int32_t level_num, GAMEFLOW_LEVEL_TYPE level_type);
0x0044C5D0 0x009A + int32_t __cdecl Game_Loop(bool demo_mode);
0x0044C670 0x0006 +R int32_t __cdecl LevelCompleteSequence(void);
Expand Down
6 changes: 6 additions & 0 deletions src/tr2/decomp/fmv.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,9 @@ bool __cdecl S_PlayFMV(const char *const file_name)
{
return PlayFMV(file_name);
}

bool __cdecl S_IntroFMV(
const char *const file_name_1, const char *const file_name_2)
{
return IntroFMV(file_name_1, file_name_2);
}
1 change: 1 addition & 0 deletions src/tr2/decomp/fmv.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ void __cdecl FmvBackToGame(void);
void __cdecl WinPlayFMV(const char *file_name, bool is_playback);
void __cdecl WinStopFMV(bool is_playback);
bool __cdecl S_PlayFMV(const char *file_name);
bool __cdecl S_IntroFMV(const char *file_name_1, const char *file_name_2);
1 change: 0 additions & 1 deletion src/tr2/global/funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@
#define S_DrawScreenFBox ((void __cdecl (*)(int32_t sx, int32_t sy, int32_t z, int32_t width, int32_t height, BYTE color_idx, const GOURAUD_FILL *gour, uint16_t flags))0x0044C360)
#define S_FinishInventory ((void __cdecl (*)(void))0x0044C390)
#define S_FadeToBlack ((void __cdecl (*)(void))0x0044C3A0)
#define S_IntroFMV ((bool __cdecl (*)(const char *file_name1, const char *file_name2))0x0044C460)
#define GetValidLevelsList ((void __cdecl (*)(REQUEST_INFO *req))0x0044C9D0)
#define GetSavedGamesList ((void __cdecl (*)(REQUEST_INFO *req))0x0044CA20)
#define DisplayCredits ((void __cdecl (*)(void))0x0044CA70)
Expand Down
1 change: 1 addition & 0 deletions src/tr2/inject_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ static void M_DecompFMV(const bool enable)
INJECT(enable, 0x0044BE10, WinPlayFMV);
INJECT(enable, 0x0044C0F0, WinStopFMV);
INJECT(enable, 0x0044C450, S_PlayFMV);
INJECT(enable, 0x0044C460, S_IntroFMV);
}

static void M_DecompStats(const bool enable)
Expand Down

0 comments on commit 44a2001

Please sign in to comment.