Skip to content

Commit

Permalink
Add proj_vers
Browse files Browse the repository at this point in the history
  • Loading branch information
DEntisT committed Jan 3, 2024
1 parent ef02fcf commit 8b1aba5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/proj.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ stack_output=true

```ini
stack_output=false
```

## `proj_vers`

Using this option, you can specify the version of your project.
For example:
```ini
proj_vers=1.0
```
1 change: 1 addition & 0 deletions src/modules/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ stock dpp_execute(const script[])
{
dpp_prepareproject("config.psproj");
dpp_print("Executing project: '%s'",dpp_projname);
dpp_print("Project version: '%s'",dpp_projvers);
new content[16000];
format(content,sizeof content, "\t");
/*print(" ");
Expand Down
6 changes: 6 additions & 0 deletions src/modules/proj.inc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ stock dpp_projfileprocess(line[])
strmid(dpp_projname,address[1],0,128,128);
return 1;
}
//proj_vers
if(!strcmp(address[0], "proj_vers"))
{
strmid(dpp_projvers,address[1],0,128,128);
return 1;
}
//stack_output
if(!strcmp(address[0], "stack_output"))
{
Expand Down
1 change: 1 addition & 0 deletions src/ps_mem.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ new dpp_fhandleused = 0;

new dpp_projname[128];
new dpp_stackoutput = 0;
new dpp_projvers[128];
//-----------------------------------------------------------
// process cache

Expand Down

0 comments on commit 8b1aba5

Please sign in to comment.