Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile on *-linux-android triple #21

Open
ScottBot10 opened this issue Oct 7, 2024 · 0 comments
Open

Does not compile on *-linux-android triple #21

ScottBot10 opened this issue Oct 7, 2024 · 0 comments

Comments

@ScottBot10
Copy link

The get_minecraft_dir function doesn't have any return value if the OS is android.

libium/src/lib.rs

Lines 42 to 58 in 01d3aeb

/// Gets the default Minecraft instance directory based on the current compilation `target_os`
///
/// If the `target_os` doesn't match `"macos"`, `"linux"`, or `"windows"`, this function will not compile.
pub fn get_minecraft_dir() -> PathBuf {
#[cfg(target_os = "windows")]
return HOME.join("AppData").join("Roaming").join(".minecraft");
#[cfg(target_os = "macos")]
return HOME
.join("Library")
.join("Application Support")
.join("minecraft");
#[cfg(target_os = "linux")]
return HOME.join(".minecraft");
}

@theRookieCoder theRookieCoder changed the title Does not compile on Android (Termux) Does not compile on *-linux-android triple Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant