mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
- tested all of Duke's and RR's cutscenes.
This commit is contained in:
parent
06abc0cfe2
commit
3c27ec8cbd
13 changed files with 86 additions and 56 deletions
|
@ -223,6 +223,13 @@ bool StartCutscene(CutsceneDef& cs, int flags, CompletionFunc completion_)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool StartCutscene(const char* s, int flags, CompletionFunc completion)
|
||||
{
|
||||
CutsceneDef def;
|
||||
def.function = s;
|
||||
return StartCutscene(def, 0, completion);
|
||||
}
|
||||
|
||||
|
||||
void DeleteScreenJob()
|
||||
{
|
||||
|
@ -311,6 +318,28 @@ void PlayLogos(gameaction_t complete_ga, gameaction_t def_ga, bool stopmusic)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
CCMD(testcutscene)
|
||||
{
|
||||
if (argv.argc() < 2)
|
||||
{
|
||||
Printf("Usage: testcutscene <buildfunction>\n");
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
CutsceneDef def;
|
||||
def.function = argv[1];
|
||||
if (StartCutscene(def, 0, [](bool) { }))
|
||||
{
|
||||
C_HideConsole();
|
||||
}
|
||||
}
|
||||
catch (const CRecoverableError& err)
|
||||
{
|
||||
Printf("Unable to play cutscene\n");
|
||||
}
|
||||
}
|
||||
/*
|
||||
Duke:
|
||||
if (!userConfig.nologo) fi.ShowLogo([](bool) { gameaction = ga_mainmenunostopsound; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue