Skip to content

Commit

Permalink
Move files from Embedded to Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
seionmoya committed Jan 7, 2025
1 parent 9f008de commit e003892
Show file tree
Hide file tree
Showing 207 changed files with 148 additions and 148 deletions.
4 changes: 2 additions & 2 deletions Documentation/fuyu-version-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ The process is roughtly:
#### 2. Updating existing database

1. In `HTTP_DATA/Responses/`, copy-paste from each response that also exists in
`Fuyu.Backend.EFT/embedded/database/` into that folder. In case you got
`Fuyu.Backend.EFT/Resources/database/` into that folder. In case you got
multiple dumps for the same file (exp. `client.items.json`), copy a single
file.
2. Delete the original files from `Fuyu.Backend.EFT/embedded/database/`
2. Delete the original files from `Fuyu.Backend.EFT/Resources/database/`
(the ones without a timestamp at the end of the file).
3. Remove the timestamp from the filenames
4. For locale files, change the last `.` to a `-`
Expand Down
38 changes: 19 additions & 19 deletions Fuyu.Backend.Arena/Fuyu.Backend.Arena.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="embedded/database/locales/client.languages.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-ch.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-cz.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-en.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-es.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-es-mx.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-fr.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-ge.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-hu.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-it.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-jp.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-kr.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-pl.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-po.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-ro.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-ru.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-sk.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-tu.json" />
<EmbeddedResource Include="embedded/database/client.game.token.issue.json" />
<EmbeddedResource Include="Resources/database/locales/client.languages.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-ch.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-cz.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-en.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-es.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-es-mx.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-fr.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-ge.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-hu.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-it.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-jp.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-kr.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-pl.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-po.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-ro.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-ru.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-sk.json" />
<EmbeddedResource Include="Resources/database/locales/client.locale-tu.json" />
<EmbeddedResource Include="Resources/database/client.game.token.issue.json" />
</ItemGroup>

</Project>
248 changes: 124 additions & 124 deletions Fuyu.Backend.EFT/Fuyu.Backend.EFT.csproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Fuyu.Common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public class Program

A simple wrapper around loading embedded files from assemblies.

It assumes the file is located in the `embedded/` folder of your csproj.
It assumes the file is located in the `Resources/` folder of your csproj.

```xml
<ItemGroup>
<EmbeddedResource Include="embedded/path/to/file.txt" />
<EmbeddedResource Include="Resources/path/to/file.txt" />
</ItemGroup>
```

Expand Down
2 changes: 1 addition & 1 deletion Tests/Fuyu.Tests.Common/Fuyu.Tests.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="embedded/test.txt" />
<EmbeddedResource Include="Resources/test.txt" />
</ItemGroup>

<Target Name="PostClean" AfterTargets="Clean">
Expand Down
File renamed without changes.

0 comments on commit e003892

Please sign in to comment.