Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed Jun 21, 2024
1 parent 741a32b commit 389fbce
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "RLBotCS/flatbuffers-schema"]
path = RLBotCS/flatbuffers-schema
path = flatbuffers-schema
url = https://github.com/RLBot/flatbuffers-schema.git
2 changes: 1 addition & 1 deletion RLBotCS/RLBotCS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</Target>

<ItemGroup>
<Compile Include="FlatBuffer\rlbot.cs" />
<Compile Include="..\FlatBuffer\rlbot.cs" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion RLBotCS/flatbuffers-schema
Submodule flatbuffers-schema deleted from 73eb39
1 change: 1 addition & 0 deletions flatbuffers-schema
Submodule flatbuffers-schema added at 9428d5
6 changes: 3 additions & 3 deletions generate-flatbuffers.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ cd /D "%~dp0"

echo Generating flatbuffers header file...

.\RLBotCS\flatbuffers-schema\flatc.exe --csharp --gen-all --gen-object-api --gen-onefile -o .\RLBotCS\FlatBuffer .\RLBotCS\flatbuffers-schema\rlbot.fbs
.\flatbuffers-schema\flatc.exe --csharp --gen-all --gen-object-api --gen-onefile -o .\FlatBuffer .\flatbuffers-schema\rlbot.fbs

IF EXIST .\RLBotCS\FlatBuffer\rlbot.cs del .\RLBotCS\FlatBuffer\rlbot.cs
IF EXIST .\FlatBuffer\rlbot.cs del .\FlatBuffer\rlbot.cs

REM the file produced is called rlbot_generated.cs, rename it to rlbot.cs after removing the old one
ren .\RLBotCS\FlatBuffer\rlbot_generated.cs rlbot.cs
ren .\FlatBuffer\rlbot_generated.cs rlbot.cs

echo Done.
6 changes: 3 additions & 3 deletions generate-flatbuffers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ cd "$(dirname "$0")"

echo Generating flatbuffers header file...

./RLBotCS/flatbuffers-schema/flatc --gen-all --csharp --gen-object-api --gen-onefile -o ./RLBotCS/FlatBuffer ./RLBotCS/flatbuffers-schema/rlbot.fbs
./flatbuffers-schema/flatc --gen-all --csharp --gen-object-api --gen-onefile -o ./FlatBuffer ./flatbuffers-schema/rlbot.fbs

# the file produced is called rlbot_generated.cs, rename it to rlbot.cs after removing the old one
rm -f ./RLBotCS/FlatBuffer/rlbot.cs
mv ./RLBotCS/FlatBuffer/rlbot_generated.cs ./RLBotCS/FlatBuffer/rlbot.cs
rm -f ./FlatBuffer/rlbot.cs
mv ./FlatBuffer/rlbot_generated.cs ./FlatBuffer/rlbot.cs

echo Done.

0 comments on commit 389fbce

Please sign in to comment.