ncmconverter 2.2.1

dotnet add package ncmconverter --version 2.2.1                
NuGet\Install-Package ncmconverter -Version 2.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ncmconverter" Version="2.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ncmconverter --version 2.2.1                
#r "nuget: ncmconverter, 2.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ncmconverter as a Cake Addin
#addin nuget:?package=ncmconverter&version=2.2.1

// Install ncmconverter as a Cake Tool
#tool nuget:?package=ncmconverter&version=2.2.1                

NCMConverter

该项目由于引用过于复杂,涉及第三方 dll,存在不确定的安全问题,现在将其废弃。如需使用,请换成使用.NET 重写的新版本: https://www.nuget.org/packages/ncmdecrypter

请务必升级到最新版本,旧版本会下载新版本的 dll 导致报错!

原项目地址:ncmdump

本 nuget 包地址:ncmdumpsharp,以后用不了了记得提 issue。今天早上才发现用不了了,是上游 dll 更新,但是我代码没改,现在改好了,抱歉 qwq。

两项目都是开源项目,不收取任何费用,请给一个 star。

食用方式

下载 dlllibncmdump,放在输出目录(或者始终复制)

(需要客户机联网,不建议使用)调用Convert.GetDllFile()自动下载

方法

请先 using NCMConverter

单文件

int Converter.Convert(string sourceFileName,string outputpath,bool overwrite)

sourceFileName:源文件绝对路径

outputpath:(可选)输出目录,留空(值为 default)输出到源文件目录

overwrite:(可选)覆盖已存在的转换后文件,默认为 false

返回值:return 0 成功,return 1 失败,return -1 找不到 dll

目录(当前不支持多层目录,只能转换给定目录下的文件,如有文件夹不会搜索)

int Converter.ConvertDir(string sourceDirName,string outputpath,bool scanalldir)

sourceFileName:多个源文件所在的目录路径(如:C:/Music)

outputpath:(可选)输出目录,留空(值为 default)输出到源文件目录

scanalldir:(可选)是否扫描文件下子目录,默认为 false

overwrite:(可选)覆盖已存在的转换后文件,默认为 false

返回值:成功转换的个数

DLL 相关

Converter.RemoveLocalDLLFile()用于删除本地 DLL

Convert.GetDllFile(bool overwrite)从 GitHub(其实内置了代理代理的,不会访问不了)下载 DLL,overwrite 默认为 false,为 true 时会覆盖本地文件

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.1 94 12/14/2024
2.2.0 139 4/6/2024
2.1.0 142 2/9/2024
2.0.0 153 1/20/2024
1.0.7 145 1/20/2024
1.0.4 175 12/23/2023
1.0.3 130 12/23/2023
1.0.2 136 12/22/2023
1.0.1 137 12/22/2023
1.0.0 134 12/22/2023

基本功能