Skip to content

FileExists

Note

This native function only exists in the RSDKv4 decompilation's mod loader. You can check if the function is usable by using the USE_MOD_LOADER platform flag.

Description

Checks if a file exists in the assets.

Parameters

filePath

The path to the target file, relative to the root of the assets.

unused

Unused parameter.

Return Value

Sets checkResult to true if the given file exists, or false if it doesn't.

Syntax

CallNativeFunction2(FileExists, string filePath, int unused)

Example

CallNativeFunction2(FileExists, "Data/Game/GameConfig.bin", 0)