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/SolverJing.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;
......
51 52

  
52 53
///////////////////////////////////////////////////////////////////////////////////////////////////
53 54

  
54
  public SolverJing(Resources res, TwistyObject object)
55
  public SolverJing(OperatingSystemInterface os, Resources res, TwistyObject object)
55 56
    {
56
    super(res,object);
57
    super(os,res,object);
57 58
    }
58 59

  
59 60
///////////////////////////////////////////////////////////////////////////////////////////////////
......
522 523

  
523 524
///////////////////////////////////////////////////////////////////////////////////////////////////
524 525

  
525
  public int[][] solution(int index, Resources res)
526
  public int[][] solution(int index, OperatingSystemInterface os)
526 527
    {
527 528
    if( mSolver==null )
528 529
      {
529
      mSolver = ImplementedTablebasesList.createPacked(res,ObjectSignatures.JING_2);
530
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.JING_2);
530 531
      }
531 532

  
532 533
    return mSolver!=null ? mSolver.solution(index,null) : null;

Also available in: Unified diff