Skip to content

Commit

Permalink
Merge pull request #966 from splewis/development
Browse files Browse the repository at this point in the history
* Add missing event parameter to Get5_OnEvent forward (#964)
* Use correct argument for demo file deletion when using subfolders (#965)
  • Loading branch information
nickdnk authored Jan 16, 2023
2 parents 7f12495 + f206105 commit 4d7b8f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripting/get5/recording.sp
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ static void DemoRequest_Callback(Handle request, bool failure, bool requestSucce
if (deleteAfterUpload) {
LogDebug(
"get5_demo_delete_after_upload set to true when demo request started; deleting the file from the game server.");
if (FileExists(demoFileName) && !DeleteFile(demoFileName)) {
LogError("Unable to delete demo file %s.", demoFileName);
if (FileExists(demoFilePath) && !DeleteFile(demoFilePath)) {
LogError("Unable to delete demo file %s.", demoFilePath);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripting/get5/version.sp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#tryinclude "manual_version.sp"
#if !defined PLUGIN_VERSION
#define PLUGIN_VERSION "0.12.0-dev"
#define PLUGIN_VERSION "0.12.1-dev"
#endif

// This MUST be the latest version in x.y.z semver format followed by -dev.
Expand Down
2 changes: 1 addition & 1 deletion scripting/include/get5.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ stock void ConvertBombSiteToStringInJson(const JSON_Object obj, const char[] key
}

// Called each get5-event with JSON formatted event text.
forward void Get5_OnEvent(const Get5Event, const char[] eventJson);
forward void Get5_OnEvent(const Get5Event event, const char[] eventJson);

// Called when a series is first setup.
// Note: Do not rely on the state of any cvars at this point.
Expand Down

0 comments on commit 4d7b8f5

Please sign in to comment.