Update README.md

This commit is contained in:
2026-03-12 18:19:51 -05:00
parent 958dff3a7e
commit 9670037eae

View File

@@ -4,11 +4,11 @@ A powrprof.dll hook which adds custom Lua functions to Forces of Corruption.
## Usage ## Usage
Drop powrprof.dll and MinHooks.x64.dll into the `/corruption/` folder of your Empire at War installation. Drop powrprof.dll and MinHooks.x64.dll into the `/corruption` folder of your Empire at War installation.
Works with both the debug kit `StarWarsI.exe` and client version `StarWarsG.exe` of the Steam version. Works with both the debug kit `StarWarsI.exe` and client version `StarWarsG.exe` of the Steam version.
Not supported on disc / GoG versions (sorry). Not supported on disc / GoG versions (sorry).
## Functions ## Global Functions
- Global `WriteToFile(file, text)` - Appends a line of text specified file in the game directory. - Global `WriteToFile(file, text)` - Appends a line of text specified file in the game directory.
- Parameter `file` string - The file name to append. - Parameter `file` string - The file name to append.
@@ -24,3 +24,7 @@ Not supported on disc / GoG versions (sorry).
- Parameter `a` number? - The alpha component. Default: 1 - Parameter `a` number? - The alpha component. Default: 1
- Global `Remove_Tutorial_Text(key)` - Removes the line associated with the key. - Global `Remove_Tutorial_Text(key)` - Removes the line associated with the key.
- Parameter `key` string - The key used to identify the line when it was added. - Parameter `key` string - The key used to identify the line when it was added.
## GameObjectTypeWrapper
- `Get_Display_Name()` - Returns the localized text string display name of the object type.