Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #8902 from JosJuice/android-convert
Android: Add disc image conversion
- Loading branch information
Showing
37 changed files
with
1,366 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| package org.dolphinemu.dolphinemu.activities; | ||
|
|
||
| import android.content.Context; | ||
| import android.content.Intent; | ||
| import android.os.Bundle; | ||
|
|
||
| import org.dolphinemu.dolphinemu.R; | ||
| import org.dolphinemu.dolphinemu.fragments.ConvertFragment; | ||
|
|
||
| import androidx.appcompat.app.AppCompatActivity; | ||
|
|
||
| public class ConvertActivity extends AppCompatActivity | ||
| { | ||
| private static final String ARG_GAME_PATH = "game_path"; | ||
|
|
||
| public static void launch(Context context, String gamePath) | ||
| { | ||
| Intent launcher = new Intent(context, ConvertActivity.class); | ||
| launcher.putExtra(ARG_GAME_PATH, gamePath); | ||
| context.startActivity(launcher); | ||
| } | ||
|
|
||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) | ||
| { | ||
| super.onCreate(savedInstanceState); | ||
|
|
||
| setContentView(R.layout.activity_convert); | ||
|
|
||
| String path = getIntent().getStringExtra(ARG_GAME_PATH); | ||
|
|
||
| ConvertFragment fragment = (ConvertFragment) getSupportFragmentManager() | ||
| .findFragmentById(R.id.fragment_convert); | ||
| if (fragment == null) | ||
| { | ||
| fragment = ConvertFragment.newInstance(path); | ||
| getSupportFragmentManager().beginTransaction().add(R.id.fragment_convert, fragment).commit(); | ||
| } | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.