diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-07-28 20:29:45 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-07-28 20:33:20 +0500 |
| commit | 7237c999918e44e2e76a6d2e2ae37ea709af08f6 (patch) | |
| tree | f15f39c2ba4092bd3bf7fd7b8548c51535ee3940 /src/resources/resources.h | |
| parent | 48faa910496b1b3811c2b52f16d5a76f38ca3e48 (diff) | |
Added wren limiting fork support
Diffstat (limited to 'src/resources/resources.h')
| -rw-r--r-- | src/resources/resources.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/resources/resources.h b/src/resources/resources.h index d3ad840..8f6cd1d 100644 --- a/src/resources/resources.h +++ b/src/resources/resources.h @@ -1,8 +1,21 @@ +#include <stddef.h> #include <raylib.h> #ifndef RESOURCES_H #define RESOURCES_H +static const size_t DEFAULT_MAX_OPS = 2 * 1000 * 1000; +static const char *DEFAULT_CONFIG_LOCATION = "config.conf"; + +typedef struct { + // The maximum amount of operations performed by a VM on each check. + // + // Keep in mind that setting this parameter higher will make the infinite + // loops in your submission longer to detect. Lowering this parameter will make + // the limitation on the code runtime stricter. + size_t MaxOperations; +} Config; + void DrawBackground(); /// #670916 as RGBA @@ -18,6 +31,9 @@ static const Color COLORSCHEME_WHITE = { 233, 225, 185, 255 }; /// #48A56A as RGBA static const Color COLORSCHEME_GREEN = { 72, 165, 106, 255 }; +bool ReadConfig(const char *location); +Config *GetConfig(); + void LoadResources(); Font *GetMainFont(); Font *GetMonoFont(); |
