Some changes II

This commit is contained in:
Robert Vokac 2024-09-14 15:07:33 +02:00
parent 56d3c7d508
commit 7626a1d72c
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
4 changed files with 12 additions and 4 deletions

1
.gitignore vendored
View File

@ -161,3 +161,4 @@ Thumbs.db
## You could also add that configuration to the text in nativeimage.gradle .
## You should delete or comment out the next line if you have configuration in a different resource-config.json .
**/resource-config.json
**pixel-app*

View File

@ -47,6 +47,12 @@ For example, `core:clean` removes `build` folder only from the `core` project.
## FAQ
How to clean Gradle cache
### How to clean Gradle cache
`./gradlew clean build --refresh-dependencies`
### Deploy HTML to localhost
Change directory to html/build/dist and run:
`python3 -m http.server 8000`

View File

@ -77,6 +77,7 @@ public class GameSpaceListScreen extends AbstractOpenEggbertScreen {
final Storage storage = Pixel.storage().getStorage();
storage.createDirectory("modes");
storage.createDirectory("gameSpaces");
System.out.println(storage.debug());
//storage.file("modes").child("text.txt").writeString("textabc");
storage.flush();

View File

@ -44,9 +44,9 @@ public class InitScreen extends AbstractOpenEggbertScreen {
public InitScreen(OpenEggbertGame openEggbertGame) {
super(openEggbertGame);
System.out.println("game.getGameSpace().getDataDirectory() != null" + (game.getGameSpace().getDataDirectory() != null));
Pixel.app().log("###1");
Arrays.asList(Gdx.files.local(".").list()).forEach(e->Pixel.app().log(e.path()));
Pixel.app().log("###2");
// Pixel.app().log("###1");
// Arrays.asList(Gdx.files.local(".").list()).forEach(e->Pixel.app().log(e.path()));
// Pixel.app().log("###2");
if (game.getGameSpace().getDataDirectory() != null) {
FileHandle configDefFileHandle = null;
String[] array = new String[]{"config.def", "Config.def", "CONFIG.DEF"};