mirror of
https://github.com/Pixinn/Rgb2Hires.git
synced 2025-02-09 02:31:37 +00:00
Add helper scripts
This commit is contained in:
parent
d2799ed3c9
commit
b20522f5a1
BIN
Loader_Apple2/disk.dsk
Normal file
BIN
Loader_Apple2/disk.dsk
Normal file
Binary file not shown.
25
Loader_Apple2/scripts/add-to-disk.sh
Normal file
25
Loader_Apple2/scripts/add-to-disk.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Adds the required files to the provided disk.dsk
|
||||
# usage: add_to_disk PATH_TO_APPLECOMMANDER.jar PATH_TO_BINARY.a2 PATH_TO_PICTURE PATH_TO_DISK
|
||||
|
||||
set -e
|
||||
|
||||
if (( $# != 4 )); then
|
||||
echo "Bad number of arguments"
|
||||
echo "usage: add_to_disk.sh PATH_TO_APPLECOMMANDER.jar PATH_TO_BINARY.a2 PATH_TO_PICTURE PATH_TO_DISK"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo " . revoving previous instance of DISPLAY form the disk"
|
||||
java -jar ${1} -d ${4} DISPLAY
|
||||
|
||||
echo " .. adding DISPLAY to the disk"
|
||||
java -jar ${1} -cc65 ${4} DISPLAY BIN < ${2}
|
||||
|
||||
echo " . revoving previous instance of PICTURE form the disk"
|
||||
java -jar ${1} -d ${4} PICTURE
|
||||
|
||||
# echo " .. adding PICTURE to the disk"
|
||||
java -jar ${1} -cc65 ${4} PICTURE BIN < ${3}
|
||||
|
||||
echo "DONE."
|
@ -117,6 +117,7 @@
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)\src;$(MAGICK_HOME)\ImageMagick\Magick++\lib;$(MAGICK_HOME)\ImageMagick</AdditionalIncludeDirectories>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
@ -134,6 +135,7 @@
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)\src;$(MAGICK_HOME)\ImageMagick\Magick++\lib;$(MAGICK_HOME)\ImageMagick</AdditionalIncludeDirectories>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
|
@ -46,7 +46,7 @@
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
@ -117,6 +117,7 @@
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(MAGICK_HOME)\ImageMagick\Magick++\lib;$(MAGICK_HOME)\ImageMagick</AdditionalIncludeDirectories>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
@ -132,6 +133,7 @@
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<AdditionalIncludeDirectories>$(MAGICK_HOME)\ImageMagick\Magick++\lib;$(MAGICK_HOME)\ImageMagick</AdditionalIncludeDirectories>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
|
@ -23,18 +23,21 @@
|
||||
|
||||
#include <Magick++.h>
|
||||
|
||||
#define MAGICKCORE_ZERO_CONFIGURATION_SUPPORT 1
|
||||
|
||||
namespace RgbToHires {
|
||||
|
||||
static Magick::Color WHITE("white");
|
||||
static Magick::Color BLACK("black");
|
||||
static Magick::Color BLUE("blue");
|
||||
static Magick::Color GREEN("green");
|
||||
static Magick::Color ORANGE("orange");
|
||||
static Magick::Color VIOLET("purple");
|
||||
|
||||
static constexpr unsigned WIDTH = 140u;
|
||||
static constexpr unsigned HEIGHT = 192u;
|
||||
#define WHITE Magick::Color{"white"}
|
||||
#define BLACK Magick::Color{"black"}
|
||||
#define BLUE Magick::Color{"blue"}
|
||||
#define GREEN Magick::Color{"green"}
|
||||
#define ORANGE Magick::Color{"orange"}
|
||||
#define VIOLET Magick::Color{"purple"}
|
||||
|
||||
|
||||
constexpr unsigned WIDTH = 140u;
|
||||
constexpr unsigned HEIGHT = 192u;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user