Skip to content

Commit

Permalink
Plugins now log info to stdout and errors to stderr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Threetwosevensixseven committed Mar 22, 2024
1 parent 04697a9 commit 7e20a6b
Show file tree
Hide file tree
Showing 28 changed files with 708 additions and 409 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ nextregs. This is required for ESP
[boot mode selection](https://docs.espressif.com/projects/esptool/en/latest/esp8266/advanced-topics/boot-mode-selection.html),
and for a proposed NextPi GPIO protocol to control the SUPervisor and applications when the UART is otherwise engaged.

**If you're using this plugin, _do not_ start CSpect with the `-com` or `-com2` arguments.**

### RTCSys
A simple date/time plugin which works in tandem with a custom `RTC.SYS` driver to provide date/time on the NextZXOS main menu, and to the `M_GETDATE` and `IDE_RTC API` calls. See its [wiki page](https://github.com/Threetwosevensixseven/CSpectPlugins/wiki/RTCSys) for installation details.

Expand All @@ -46,7 +48,7 @@ CSpect is a ZXSpectrum emulator by Mike Dailly.
Download the latest version [here](http://www.cspect.org/). These plugins only work with v2.19.4.4 or newer.

## Copyright and Licence
All plugins except i2C_Sample are copyright © 2019-2023 Robin Verhagen-Guest, and are licensed under [Apache 2.0](https://github.com/Threetwosevensixseven/CSpectPlugins/blob/master/LICENSE).
All plugins except i2C_Sample are copyright © 2019-2024 Robin Verhagen-Guest, and are licensed under [Apache 2.0](https://github.com/Threetwosevensixseven/CSpectPlugins/blob/master/LICENSE).

CSpect and the i2C_Sample example project are copyright © 1998-2023 Mike Dailly All rights reserved.

Expand Down
19 changes: 19 additions & 0 deletions RTCSys/AssemblyExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Reflection;

namespace Plugins.RTCSys
{
public static class AssemblyExtensions
{
public static string GetAssemblyConfiguration(this Assembly assembly)
{
object[] attributes = assembly.GetCustomAttributes(typeof(AssemblyConfigurationAttribute), false);

AssemblyConfigurationAttribute attribute = null;
if (attributes.Length > 0)
{
attribute = attributes[0] as AssemblyConfigurationAttribute;
}
return (attribute?.Configuration ?? "");
}
}
}
15 changes: 0 additions & 15 deletions RTCSys/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
// associated with an assembly.
[assembly: AssemblyTitle("RTCSys")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RTCSys")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -21,16 +19,3 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("df5ac599-1ee2-49ab-94e5-f44a842db4f7")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
10 changes: 10 additions & 0 deletions RTCSys/Properties/AssemblyInfoExtra.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// AssemblyInfoExtra.cs
//
// Auto-generated by ZXVersion.exe

using System.Reflection;

[assembly: AssemblyConfiguration("04697a9")]
[assembly: AssemblyCopyright("Copyright © 2019-2024 Robin Verhagen-Guest")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
2 changes: 1 addition & 1 deletion RTCSys/RTCStates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace RTCSys
namespace Plugins.RTCSys
{
public enum RTCStates
{
Expand Down
10 changes: 8 additions & 2 deletions RTCSys/RTCSys.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ProjectGuid>{DF5AC599-1EE2-49AB-94E5-F44A842DB4F7}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RTCSys</RootNamespace>
<RootNamespace>Plugins.RTCSys</RootNamespace>
<AssemblyName>RTCSys</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand All @@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<OutputPath>..\..\..\..\..\..\..\spec\CSpect2_19_4_4\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down Expand Up @@ -46,11 +46,17 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyExtensions.cs" />
<Compile Include="Properties\AssemblyInfoExtra.cs" />
<Compile Include="RTCStates.cs" />
<Compile Include="RTCSys_Device.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>cd "$(ProjectDir)"
"$(ProjectDir)ZXVersion.exe"</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
Loading

0 comments on commit 7e20a6b

Please sign in to comment.