Skip to content

Commit

Permalink
asserts: update imagefs.txz, change wow64 cpu list, fix trigger mode
Browse files Browse the repository at this point in the history
  • Loading branch information
longjunyu2 committed Aug 5, 2024
1 parent edef9b5 commit 26b93e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/src/main/assets/imagefs.txz
Git LFS file not shown
3 changes: 2 additions & 1 deletion app/src/main/java/com/winlator/SettingsFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.winlator.core.StringUtils;
import com.winlator.core.WineInfo;
import com.winlator.core.WineUtils;
import com.winlator.inputcontrols.ExternalController;
import com.winlator.xenvironment.ImageFs;

import org.json.JSONArray;
Expand Down Expand Up @@ -139,7 +140,7 @@ public void onStopTrackingTouch(SeekBar seekBar) {}

final RadioGroup rgTriggerMode = view.findViewById(R.id.RGTriggerMode);
List<Integer> triggerRbIds = List.of(R.id.RBTriggerAsButton, R.id.RBTriggerAsAxis, R.id.RBTriggerAsBoth);
int triggerMode = preferences.getInt("trigger_mode", 2);
int triggerMode = preferences.getInt("trigger_mode", ExternalController.TRIGGER_AS_AXIS);

if (triggerMode >= 0 && triggerMode < triggerRbIds.size()) {
((RadioButton) (rgTriggerMode.findViewById(triggerRbIds.get(triggerMode)))).setChecked(true);
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/com/winlator/container/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,10 @@ public static String getFallbackCPUList() {
}

public static String getFallbackCPUListWoW64() {
String cpuList = "";
int numProcessors = Runtime.getRuntime().availableProcessors();
for (int i = numProcessors / 2; i < numProcessors; i++) cpuList += (!cpuList.isEmpty() ? "," : "")+i;
return cpuList;
// String cpuList = "";
// int numProcessors = Runtime.getRuntime().availableProcessors();
// for (int i = numProcessors / 2; i < numProcessors; i++) cpuList += (!cpuList.isEmpty() ? "," : "")+i;
// return cpuList;
return getFallbackCPUList();
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package com.winlator.inputcontrols;

import android.util.Log;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;

public class GamepadState {
public float thumbLX = 0;
Expand Down

0 comments on commit 26b93e6

Please sign in to comment.