- a few things may not be static anymore.

This commit is contained in:
Christoph Oelckers 2021-05-22 01:34:50 +02:00
parent 5aaabbeb01
commit df0412d634
2 changed files with 18 additions and 6 deletions

View file

@ -51,10 +51,10 @@
#include "s_music.h"
#include "m_argv.h"
static DObject* runner;
static PClass* runnerclass;
static PType* runnerclasstype;
static CompletionFunc completion;
DObject* runner;
PClass* runnerclass;
PType* runnerclasstype;
CompletionFunc completion;
static int ticks;
int intermissiondelay;
@ -83,7 +83,7 @@ void Job_Init()
//
//=============================================================================
static VMFunction* LookupFunction(const char* qname, bool validate = true)
VMFunction* LookupFunction(const char* qname, bool validate)
{
size_t p = strcspn(qname, ".");
if (p == 0) I_Error("Call to undefined function %s", qname);
@ -122,7 +122,7 @@ void CallCreateFunction(const char* qname, DObject* runner)
//
//=============================================================================
DObject* CreateRunner(bool clearbefore = true)
DObject* CreateRunner(bool clearbefore)
{
auto obj = runnerclass->CreateNew();
auto func = LookupFunction("ScreenJobRunner.Init", false);

View file

@ -36,8 +36,20 @@ void DeleteScreenJob();
bool ScreenJobResponder(event_t* ev);
bool ScreenJobTick();
void ScreenJobDraw();
bool ScreenJobValidate();
struct CutsceneDef;
bool StartCutscene(const char* s, int flags, const CompletionFunc& completion);
bool StartCutscene(CutsceneDef& cs, int flags, const CompletionFunc& completion_);
VMFunction* LookupFunction(const char* qname, bool validate = true);
void CallCreateFunction(const char* qname, DObject* runner);
DObject* CreateRunner(bool clearbefore = true);
void AddGenericVideo(DObject* runner, const FString& fn, int soundid, int fps);
extern int intermissiondelay;
extern DObject* runner;
extern PClass* runnerclass;
extern PType* runnerclasstype;
extern CompletionFunc completion;