Project

General

Profile

« Previous | Next » 

Revision 3103c3c8

Added by Leszek Koltunski about 1 year ago

Move opening local files to the OSInterface

View differences:

src/main/java/org/distorted/objectlib/tablebases/TablebasesAbstract.java
9 9

  
10 10
package org.distorted.objectlib.tablebases;
11 11

  
12
import android.content.res.Resources;
13

  
14 12
import org.distorted.library.main.QuatHelper;
15 13
import org.distorted.library.type.Static3D;
16 14
import org.distorted.library.type.Static4D;
15
import org.distorted.objectlib.helpers.OperatingSystemInterface;
17 16
import org.distorted.objectlib.helpers.QuatGroupGenerator;
18 17

  
19 18
import java.io.ByteArrayOutputStream;
......
99 98

  
100 99
///////////////////////////////////////////////////////////////////////////////////////////////////
101 100

  
102
  public TablebasesAbstract(Resources res, int resource)
101
  public TablebasesAbstract(OperatingSystemInterface os, int resource)
103 102
    {
104 103
    this();
105 104

  
106 105
    mInitialized = true;
107
    InputStream stream = res.openRawResource(resource);
106
    InputStream stream = os.openLocalFile(resource);
108 107
    ByteArrayOutputStream buffer = new ByteArrayOutputStream();
109 108

  
110 109
    int nRead;

Also available in: Unified diff