mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Android: Convert RiivolutionItem to Kotlin
This commit is contained in:
@ -1,40 +0,0 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
package org.dolphinemu.dolphinemu.features.riivolution.ui;
|
|
||||||
|
|
||||||
public class RiivolutionItem
|
|
||||||
{
|
|
||||||
public final int mDiscIndex;
|
|
||||||
public final int mSectionIndex;
|
|
||||||
public final int mOptionIndex;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor for a disc.
|
|
||||||
*/
|
|
||||||
public RiivolutionItem(int discIndex)
|
|
||||||
{
|
|
||||||
mDiscIndex = discIndex;
|
|
||||||
mSectionIndex = -1;
|
|
||||||
mOptionIndex = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor for a section.
|
|
||||||
*/
|
|
||||||
public RiivolutionItem(int discIndex, int sectionIndex)
|
|
||||||
{
|
|
||||||
mDiscIndex = discIndex;
|
|
||||||
mSectionIndex = sectionIndex;
|
|
||||||
mOptionIndex = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor for an option.
|
|
||||||
*/
|
|
||||||
public RiivolutionItem(int discIndex, int sectionIndex, int optionIndex)
|
|
||||||
{
|
|
||||||
mDiscIndex = discIndex;
|
|
||||||
mSectionIndex = sectionIndex;
|
|
||||||
mOptionIndex = optionIndex;
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,36 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
package org.dolphinemu.dolphinemu.features.riivolution.ui
|
||||||
|
|
||||||
|
class RiivolutionItem {
|
||||||
|
val mDiscIndex: Int
|
||||||
|
val mSectionIndex: Int
|
||||||
|
val mOptionIndex: Int
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for a disc.
|
||||||
|
*/
|
||||||
|
constructor(discIndex: Int) {
|
||||||
|
mDiscIndex = discIndex
|
||||||
|
mSectionIndex = -1
|
||||||
|
mOptionIndex = -1
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for a section.
|
||||||
|
*/
|
||||||
|
constructor(discIndex: Int, sectionIndex: Int) {
|
||||||
|
mDiscIndex = discIndex
|
||||||
|
mSectionIndex = sectionIndex
|
||||||
|
mOptionIndex = -1
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor for an option.
|
||||||
|
*/
|
||||||
|
constructor(discIndex: Int, sectionIndex: Int, optionIndex: Int) {
|
||||||
|
mDiscIndex = discIndex
|
||||||
|
mSectionIndex = sectionIndex
|
||||||
|
mOptionIndex = optionIndex
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user