mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-16 18:54:45 +00:00
Initial commit from the source zip for version 2.3.18
This commit is contained in:
commit
dccbbdd63d
62 files changed
+12694
No files matched your search
@@ -0,0 +1,38 @@
|
||||
package shadersmodcore.client;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
|
||||
public class ShaderPackFolder implements IShaderPack {
|
||||
|
||||
protected File packFile;
|
||||
|
||||
public ShaderPackFolder(String name, File file)
|
||||
{
|
||||
packFile = file;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputStream getResourceAsStream(String resName)
|
||||
{
|
||||
try
|
||||
{
|
||||
File resFile = new File(packFile, resName.substring(1));
|
||||
if (resFile != null)
|
||||
{
|
||||
return new BufferedInputStream(new FileInputStream(resFile));
|
||||
}
|
||||
}
|
||||
catch (Exception excp)
|
||||
{
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user