You've already forked AstralRinth
forked from didirus/AstralRinth
Pack format changes (#268)
This commit is contained in:
10
.idea/runConfigurations.xml
generated
10
.idea/runConfigurations.xml
generated
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="RunConfigurationProducerService">
|
|
||||||
<option name="ignoredProducers">
|
|
||||||
<set>
|
|
||||||
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
|
||||||
</set>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
@@ -106,7 +106,7 @@ pub struct PackValidator;
|
|||||||
|
|
||||||
impl super::Validator for PackValidator {
|
impl super::Validator for PackValidator {
|
||||||
fn get_file_extensions(&self) -> &[&str] {
|
fn get_file_extensions(&self) -> &[&str] {
|
||||||
&["zip"]
|
&["mrpack"]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_project_types(&self) -> &[&str] {
|
fn get_project_types(&self) -> &[&str] {
|
||||||
@@ -126,7 +126,7 @@ impl super::Validator for PackValidator {
|
|||||||
archive: &mut ZipArchive<Cursor<bytes::Bytes>>,
|
archive: &mut ZipArchive<Cursor<bytes::Bytes>>,
|
||||||
) -> Result<ValidationResult, ValidationError> {
|
) -> Result<ValidationResult, ValidationError> {
|
||||||
let mut file = archive
|
let mut file = archive
|
||||||
.by_name("index.json")
|
.by_name("modrinth.index.json")
|
||||||
.map_err(|_| ValidationError::InvalidInputError("Pack manifest is missing.".into()))?;
|
.map_err(|_| ValidationError::InvalidInputError("Pack manifest is missing.".into()))?;
|
||||||
|
|
||||||
let mut contents = String::new();
|
let mut contents = String::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user