From 79880afb184d7e29aa361c0c191e0fef7d718c9d Mon Sep 17 00:00:00 2001 From: nanshaws <98329722+nanshaws@users.noreply.github.com> Date: Tue, 27 Aug 2024 04:28:53 +0800 Subject: [PATCH] Fixed an issue where CustomShaderDesktopLauncher could not find resources (#126) * Fixed an issue where CustomShaderDesktopLauncher could not find resources Fixed an issue where CustomShaderDesktopLauncher could not find resources * fixed Box2dLightTest fixed Box2dLightTest --- test/tests/Box2dLightCustomShaderTest.java | 12 ++++++------ test/tests/Box2dLightTest.java | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/tests/Box2dLightCustomShaderTest.java b/test/tests/Box2dLightCustomShaderTest.java index acbbc02..7232761 100644 --- a/test/tests/Box2dLightCustomShaderTest.java +++ b/test/tests/Box2dLightCustomShaderTest.java @@ -80,8 +80,8 @@ public class Box2dLightCustomShaderTest extends InputAdapter implements Applicat @Override public void create() { - bg = new Texture(Gdx.files.internal("data/bg-deferred.png")); - bgN = new Texture(Gdx.files.internal("data/bg-deferred-n.png")); + bg = new Texture(Gdx.files.internal("test/data/bg-deferred.png")); + bgN = new Texture(Gdx.files.internal("test/data/bg-deferred-n.png")); MathUtils.random.setSeed(Long.MIN_VALUE); @@ -95,10 +95,10 @@ public void create() { font.setColor(Color.RED); TextureRegion marbleD = new TextureRegion(new Texture( - Gdx.files.internal("data/marble.png"))); + Gdx.files.internal("test/data/marble.png"))); TextureRegion marbleN = new TextureRegion(new Texture( - Gdx.files.internal("data/marble-n.png"))); + Gdx.files.internal("test/data/marble-n.png"))); marble = new DeferredObject(marbleD, marbleN); marble.width = RADIUS * 2; @@ -135,8 +135,8 @@ public void create() { /** BOX2D LIGHT STUFF END */ - objectReg = new TextureRegion(new Texture(Gdx.files.internal("data/object-deferred.png"))); - objectRegN = new TextureRegion(new Texture(Gdx.files.internal("data/object-deferred-n.png"))); + objectReg = new TextureRegion(new Texture(Gdx.files.internal("test/data/object-deferred.png"))); + objectRegN = new TextureRegion(new Texture(Gdx.files.internal("test/data/object-deferred-n.png"))); for (int x = 0; x < 4; x++) { for (int y = 0; y < 3; y++) { diff --git a/test/tests/Box2dLightTest.java b/test/tests/Box2dLightTest.java index e67a538..d2c8e51 100644 --- a/test/tests/Box2dLightTest.java +++ b/test/tests/Box2dLightTest.java @@ -89,8 +89,8 @@ public void create() { font.setColor(Color.RED); textureRegion = new TextureRegion(new Texture( - Gdx.files.internal("data/marble.png"))); - bg = new Texture(Gdx.files.internal("data/bg.png")); + Gdx.files.internal("test/data/marble.png"))); + bg = new Texture(Gdx.files.internal("test/data/bg.png")); createPhysicsWorld(); Gdx.input.setInputProcessor(this);