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/SolverDino6.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;
......
42 43

  
43 44
///////////////////////////////////////////////////////////////////////////////////////////////////
44 45

  
45
  public SolverDino6(Resources res, TwistyObject object)
46
  public SolverDino6(OperatingSystemInterface os, Resources res, TwistyObject object)
46 47
    {
47
    super(res,object);
48
    super(os,res,object);
48 49
    mFaceColors = new int[6];
49 50
    }
50 51

  
......
437 438

  
438 439
///////////////////////////////////////////////////////////////////////////////////////////////////
439 440

  
440
  public int[][] solution(int index, Resources res)
441
  public int[][] solution(int index, OperatingSystemInterface os)
441 442
    {
442 443
    if( mSolver==null )
443 444
      {
444
      mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.DINO_3);
445
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.DINO_3);
445 446
      }
446 447

  
447 448
    return mSolver!=null ? mSolver.solution(index,null) : null;

Also available in: Unified diff