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/SolverPyraminxDuo.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;
......
195 196

  
196 197
///////////////////////////////////////////////////////////////////////////////////////////////////
197 198

  
198
  public SolverPyraminxDuo(Resources res, TwistyObject object)
199
  public SolverPyraminxDuo(OperatingSystemInterface os, Resources res, TwistyObject object)
199 200
    {
200
    super(res,object);
201
    super(os,res,object);
201 202
    }
202 203

  
203 204
///////////////////////////////////////////////////////////////////////////////////////////////////
......
285 286

  
286 287
///////////////////////////////////////////////////////////////////////////////////////////////////
287 288

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

  
295 296
    return mSolver!=null ? mSolver.solution(index,null) : null;

Also available in: Unified diff