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/SolverSkewbDiamond.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;
......
50 51

  
51 52
///////////////////////////////////////////////////////////////////////////////////////////////////
52 53

  
53
  public SolverSkewbDiamond(Resources res, TwistyObject object)
54
  public SolverSkewbDiamond(OperatingSystemInterface os, Resources res, TwistyObject object)
54 55
    {
55
    super(res,object);
56
    super(os,res,object);
56 57
    mFaceColors = new int[8];
57 58
    }
58 59

  
......
486 487

  
487 488
///////////////////////////////////////////////////////////////////////////////////////////////////
488 489

  
489
  public int[][] solution(int index, Resources res)
490
  public int[][] solution(int index, OperatingSystemInterface os)
490 491
    {
491 492
    if( mSolver==null )
492 493
      {
493
      mSolver = ImplementedTablebasesList.createPacked(res, ObjectSignatures.DIAM_2);
494
      mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.DIAM_2);
494 495
      }
495 496

  
496 497
    return mSolver!=null ? mSolver.solution(index,null) : null;

Also available in: Unified diff