Project

General

Profile

« Previous | Next » 

Revision da57afae

Added by Leszek Koltunski about 1 year ago

Move opening local files to the OSInterface

View differences:

src/main/java/org/distorted/solvers/SolverCube2.java
12 12
import android.content.res.Resources;
13 13

  
14 14
import org.distorted.main.R;
15
import org.distorted.objectlib.helpers.OperatingSystemInterface;
15 16
import org.distorted.objectlib.main.ObjectSignatures;
16 17
import org.distorted.objectlib.main.TwistyObject;
17 18
import org.distorted.objectlib.tablebases.ImplementedTablebasesList;
......
140 141

  
141 142
///////////////////////////////////////////////////////////////////////////////////////////////////
142 143

  
143
  public SolverCube2(Resources res, TwistyObject object)
144
  public SolverCube2(OperatingSystemInterface os, Resources res, TwistyObject object)
144 145
    {
145
    super(res,object);
146
    super(os,res,object);
146 147
    mFaceColors = new int[6];
147 148
    }
148 149

  
......
283 284

  
284 285
///////////////////////////////////////////////////////////////////////////////////////////////////
285 286

  
286
  public int[][] solution(int index, Resources res)
287
  public int[][] solution(int index, OperatingSystemInterface os)
287 288
    {
288 289
    if( mSolver==null )
289 290
      {
290
      mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.CUBE_2);
291
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.CUBE_2);
291 292
      }
292 293

  
293 294
    return mSolver!=null ? mSolver.solution(index,null) : null;

Also available in: Unified diff