mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-19 21:22:54 +00:00
Merge branch 'main' of https://github.com/JezuzLizard/T4SP-Server-Plugin
This commit is contained in:
commit
fce9fcee51
24
README.md
24
README.md
@ -3,8 +3,28 @@ A plugin that has code that hopefully compiles and the game will load it to do t
|
||||
|
||||
Requires Git (https://git-scm.com/), Premake5 (https://premake.github.io/), and MSVC 2022 (https://visualstudio.microsoft.com/vs/features/cplusplus/) to build.
|
||||
|
||||
# What does it do?
|
||||
Nothing really right now, just detours and reimplements the entire GSC VM, for research purposes.
|
||||
# Features
|
||||
## FileIO
|
||||
This plugin provides FileIO interface to GSC for reading and writing files, this is exact to [CoD4x's](https://github.com/callofduty4x/CoD4x_Server/blob/master/scriptdocumentation/script_functions_reference.md#file-operations) interface.
|
||||
|
||||
However, all reads and writes will take place strictly and only in the `scriptdata` folder.
|
||||
|
||||
All files will be closed upon GSC restart (map_restart or fast_restart or missionfailed, etc).
|
||||
|
||||
* `<int> FS_TestFile(<filename string>)` Returns `true` if the file exists, `false` otherwise.
|
||||
```gsc
|
||||
if (FS_TestFile("test.txt"))
|
||||
{
|
||||
PrintConsole("Found test.txt!");
|
||||
}
|
||||
```
|
||||
* `<int> FS_Remove(<filename string>)` Deletes the file, return `true` if successful.
|
||||
```gsc
|
||||
if (FS_Remove("test.txt"))
|
||||
{
|
||||
PrintConsole("test.txt was deleted!");
|
||||
}
|
||||
```
|
||||
|
||||
# Installation
|
||||
Move the `t4sp-server-plugin.dll` to `%LOCALAPPDATA%\Plutonium\storage\t4\plugins\`, the plugin will be loaded when you start up a dedicated server for Plutonium T4SP.
|
||||
|
Loading…
x
Reference in New Issue
Block a user