Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
nuget restore
msbuild -p:Configuration=Release -m
- name: Package
run: |
cd AC_e-Reader_Card_Creator/bin/Release/net*-windows/
Copy-Item -Destination . '${{ github.workspace }}/x64/Release/nedclib.dll'
7z -tzip a '${{ github.workspace }}/e-ReaderCardCreator.zip' .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: e-ReaderCardCreator
path: e-ReaderCardCreator.zip
27 changes: 26 additions & 1 deletion AC_e-Reader_Card_Creator.sln
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33829.357
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AC_e-Reader_Card_Creator", "AC_e-Reader_Card_Creator\AC_e-Reader_Card_Creator.csproj", "{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nedclib", "AC_e-Reader_Card_Creator\Decompression\External\nedclib\nedclib.vcxproj", "{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|x64.ActiveCfg = Debug|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|x64.Build.0 = Debug|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|x86.ActiveCfg = Debug|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Debug|x86.Build.0 = Debug|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|Any CPU.Build.0 = Release|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|x64.ActiveCfg = Release|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|x64.Build.0 = Release|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|x86.ActiveCfg = Release|Any CPU
{61E3E092-ADF9-4613-B6FB-205DD4F5A7E9}.Release|x86.Build.0 = Release|Any CPU
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Debug|Any CPU.ActiveCfg = Debug|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Debug|Any CPU.Build.0 = Debug|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Debug|x64.ActiveCfg = Debug|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Debug|x64.Build.0 = Debug|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Debug|x86.ActiveCfg = Debug|Win32
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Debug|x86.Build.0 = Debug|Win32
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Release|Any CPU.ActiveCfg = Release|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Release|Any CPU.Build.0 = Release|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Release|x64.ActiveCfg = Release|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Release|x64.Build.0 = Release|x64
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Release|x86.ActiveCfg = Release|Win32
{7B2D1D08-D33C-41F0-83FE-2A92173DDF94}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
18 changes: 9 additions & 9 deletions AC_e-Reader_Card_Creator/AC_e-Reader_Card_Creator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<GenerateManifests>true</GenerateManifests>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationHighDpiMode>SystemAware</ApplicationHighDpiMode>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
</PropertyGroup>

Expand All @@ -34,10 +35,10 @@

<PropertyGroup>
<ApplicationIcon>e-reader-ccc.ico</ApplicationIcon>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<Folder Include="Decompression\eCard\" />

<Content Include="References\*.txt">
<Link>%(RecursiveDir)\Project Files\References\%(Filename)%(Extension)</Link>
Expand All @@ -47,14 +48,6 @@
<Link>%(RecursiveDir)\Project Files\References\%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Decompression\External\*.exe">
<Link>%(RecursiveDir)\Project Files\Decompression\External\%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Decompression\External\*.dll">
<Link>%(RecursiveDir)\Project Files\Decompression\External\%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Resources\*.ico">
<Link>%(RecursiveDir)\Project Files\Resources\%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand All @@ -65,6 +58,13 @@
</Content>
</ItemGroup>

<ItemGroup>
<Compile Remove="Decompression\External\nedclib\**" />
<Content Remove="Decompression\External\nedclib\**" />
<EmbeddedResource Remove="Decompression\External\nedclib\**" />
<None Remove="Decompression\External\nedclib\**" />
</ItemGroup>

<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
cmake_minimum_required(VERSION 3.12)
project(nedclib VERSION 1.4.0 LANGUAGES C CXX)

option(BUILD_TOOLS "Build standalone tools" OFF)

set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

set(NEDCLIB_SRCS
nedclib.cpp
nes.cpp
rawbin/binraw.cpp
rawbin/rs.cpp
rawbmp/address.cpp
rawbmp/dcs_decode.cpp
rawbmp/dcs_encode.cpp
rawbmp/rawbmp.cpp
stdafx.cpp
vpk/vpk.cpp
nedclib.h
rawbin/rs.h
rawbmp/dcs.h
stdafx.h
)
add_library(nedclib SHARED "${NEDCLIB_SRCS}")
target_include_directories(nedclib PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/rawbmp")
target_compile_definitions(nedclib PRIVATE "NEDCLIB_EXPORTS=1")

if(BUILD_TOOLS)
add_executable(raw2bmp "raw2bmp.cpp")
target_link_libraries(raw2bmp PRIVATE nedclib)
add_executable(nedcenc "nedcenc.cpp")
target_link_libraries(nedcenc PRIVATE nedclib)
add_executable(nevpk "nevpk.cpp")
target_link_libraries(nevpk PRIVATE nedclib)
add_executable(nedcmaker "nedcmake/nedcmaker.cpp")
if(UNIX)
target_compile_definitions(nedcmaker PRIVATE "stricmp=strcmp")
endif()
# Special tool: headerfix, which is outside this project
set(HEADER_FIX_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/../Source Code/headerfix.c")
if(EXISTS "${HEADER_FIX_SOURCE}")
add_executable(headerfix "${HEADER_FIX_SOURCE}")
endif()
endif()
33 changes: 33 additions & 0 deletions AC_e-Reader_Card_Creator/Decompression/External/nedclib/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
========================================================================
DYNAMIC LINK LIBRARY : nedclib Project Overview
========================================================================

AppWizard has created this nedclib DLL for you.

This file contains a summary of what you will find in each of the files that
make up your nedclib application.


nedclib.vcproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.

nedclib.cpp
This is the main DLL source file.

/////////////////////////////////////////////////////////////////////////////
Other standard files:

StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named nedclib.pch and a precompiled types file named StdAfx.obj.

/////////////////////////////////////////////////////////////////////////////
Other notes:

AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.

/////////////////////////////////////////////////////////////////////////////
Loading