Skip to content

Commit

Permalink
fx?
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jan 10, 2025
1 parent 717de80 commit ba32da6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/cmnds/cmd_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ const char* CMD_GetResultString(commandResult_t r);

void SVM_RunThreads(int deltaMS);
void CMD_InitScripting();
typedef struct scriptInstance_s scriptInstance_t;
scriptInstance_t *SVM_StartScriptAndRun(const char *fname, const char *label, int uniqueID);
void SVM_StartScriptAndRun(const char *fname, const char *label, int uniqueID);
byte* LFS_ReadFile(const char* fname);
int LFS_WriteFile(const char *fname, const byte *data, int len, bool bAppend);

Expand Down
9 changes: 3 additions & 6 deletions src/cmnds/cmd_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,15 +624,12 @@ scriptInstance_t *SVM_StartScript(const char *fname, const char *label, int uniq
return th;
}

scriptInstance_t *SVM_StartScriptAndRun(const char *fname, const char *label, int uniqueID) {
void SVM_StartScriptAndRun(const char *fname, const char *label, int uniqueID) {
scriptInstance_t *th = SVM_StartScript(fname, label, uniqueID);
if (th == 0) {
return NULL;
}
for (int i = 0; i < 10 && th->curLine; i++) {
SVM_RunThread(th);
return;
}
return th;
SVM_RunThread(th);
}
static commandResult_t CMD_GoTo(const void *context, const char *cmd, const char *args, int cmdFlags){
const char *fname;
Expand Down

0 comments on commit ba32da6

Please sign in to comment.