From a6b39207809ff299f1be229f7f89a70b73315af8 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 12 Feb 2024 20:18:31 +0800 Subject: [PATCH] [saco] Implement `unnamed_100B2AF0()` and `unnamed_100B2B20()` --- saco/game/unnamed_1.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 saco/game/unnamed_1.cpp diff --git a/saco/game/unnamed_1.cpp b/saco/game/unnamed_1.cpp new file mode 100644 index 0000000..733f40e --- /dev/null +++ b/saco/game/unnamed_1.cpp @@ -0,0 +1,40 @@ + +#include +#include + +int unnamed_1026B568[200]; +BOOL unnamed_1026B888[200]; + +BOOL unnamed_100B2AF0() +{ + memset(unnamed_1026B888, 0, sizeof(unnamed_1026B888)); + memset(unnamed_1026B568, 0, sizeof(unnamed_1026B568)); + + return TRUE; +} + +int unnamed_100B2B20() +{ + int x=0; + while(x!=200) + { + if(!unnamed_1026B888[x]) + { + unnamed_1026B888[x] = TRUE; + return x; + } + x++; + } + return (-1); +} + + + + + + + + + + +