Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f43623d
Committing pending changes before starting .NET 8.0 upgrade.
DefKorns Oct 20, 2025
6ce23c8
Commit upgrade plan
DefKorns Oct 20, 2025
29e9cea
Migrate project to SDK-style and .NET 8; cleanup files
DefKorns Oct 20, 2025
7fd3015
Update references in (S)NES Mini - Lua Compiler .csproj
DefKorns Oct 20, 2025
9b14e7c
* 'Line 118: Disambiguate 'MethodInvoker' by specifying 'System.Windo…
DefKorns Oct 20, 2025
83335ba
install avalonia
DefKorns Oct 24, 2025
a45a027
cleanup
DefKorns Oct 24, 2025
fae5251
Initial assets
DefKorns Oct 24, 2025
4fa509b
settings
DefKorns Oct 24, 2025
13b94bd
Add image assets for UI icons and loading animation
DefKorns Oct 27, 2025
51ed623
Added library
DefKorns Oct 27, 2025
0c02397
Update .gitignore, restructure project, add new assets
DefKorns Oct 27, 2025
af8876b
Refactor message box system and update dependencies
DefKorns Oct 27, 2025
e20f7bf
Update assets: modify icons and remove unused files
DefKorns Oct 29, 2025
2997951
Refactor and enhance codebase for maintainability
DefKorns Oct 29, 2025
e381e1b
Refactor UI, logging, and resource management
DefKorns Oct 29, 2025
73b34dd
Improve error handling and enhance UI functionality
DefKorns Nov 2, 2025
7df6653
Refactor resource handling and add progress tracking
DefKorns Nov 2, 2025
eb78893
Refactor and clean up codebase for maintainability
DefKorns Nov 2, 2025
b759bbf
Add GitVersion and CI/CD workflow for automated builds
DefKorns Nov 2, 2025
49b5089
Refactor GitVersion config and improve version handling
DefKorns Nov 2, 2025
96b9790
Add dynamic UI state handling and Git version saving
DefKorns Nov 4, 2025
4b5c34a
Update GitVersion and build pipeline configurations
DefKorns Nov 4, 2025
4d68bce
cleanup
DefKorns Oct 22, 2026
0fbee91
Replace Python decompiler with LuaJIT Decompiler v2 and add Linux sup…
DefKorns Nov 1, 2026
76ca5de
Apply Microsoft C# conventions via Roslyn analyzers
DefKorns Nov 1, 2026
47e7026
Add pre-commit hooks, like MiniThemeStudio
DefKorns Nov 1, 2026
a64f3a0
Apply the conventions: explicit types instead of var, formatting, unu…
DefKorns Nov 1, 2026
1381972
Move to .NET 10 (LTS)
DefKorns Nov 1, 2026
a0c177c
Simplify: remove dead code and commented-out code
DefKorns Nov 1, 2026
2090ea2
Remove leftovers of the old LuaJIT/decompiler setup
DefKorns Nov 1, 2026
ce61ddb
Move window state into the view model; share the MessageBox code
DefKorns Nov 1, 2026
5970c95
Drop Roots.xml: stop preserving the whole assembly from the trimmer
DefKorns Nov 1, 2026
6e8c0ab
Do not publish the XML documentation file (only generated so IDE0005 …
DefKorns Nov 1, 2026
adcb6c2
New look: header, console cards, result panel with Open folder, bigge…
DefKorns Nov 1, 2026
b78c0c2
Lucide icons, logo colours, theme button; Avalonia 11.3.22
DefKorns Nov 1, 2026
666db7e
Encode: neutral grey when disabled instead of a faded gold
DefKorns Nov 1, 2026
cb32462
Build LuaJIT from the source Nintendo publishes for the consoles (2.0.4)
DefKorns Nov 1, 2026
6ba2f99
README: fix the path of the Windows LuaJIT build script
DefKorns Nov 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2,060 changes: 0 additions & 2,060 deletions (S)NES Mini - Lua Compiler .csproj

This file was deleted.

80 changes: 80 additions & 0 deletions (S)NES Mini - Lua Compiler.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<Version>2.0.0-beta</Version>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<StartupObject>SNESMiniLuaCompiler.Program</StartupObject>
<RootNamespace>SNESMiniLuaCompiler</RootNamespace>
<ApplicationIcon>Assets\Icon.ico</ApplicationIcon>
<PublishAot Condition="'$(Configuration)' != 'Debug'">true</PublishAot>
<IsAotCompatible>true</IsAotCompatible>
<AssemblyName>SNESMiniLuaCompiler</AssemblyName>
<PublishTrimmed>True</PublishTrimmed>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<!-- Roslyn analyzers: Microsoft .NET analyzers (CAxxxx) and code style (IDExxxx) enforced at build time -->
<AnalysisLevel>latest-recommended</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<!-- needed for the unused-using rule (IDE0005) to run in the build; public APIs need no XML docs -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PublishDocumentationFile>false</PublishDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<AvaloniaResource Include="Assets\**" />
</ItemGroup>

<ItemGroup>
<None Remove="Assets\Icon.ico" />
</ItemGroup>

<PropertyGroup>
<!-- Which native tools (LuaJIT + decompiler) get embedded. Override with -p:TargetOs=linux|windows. -->
<TargetOs Condition="'$(TargetOs)' == '' And $([MSBuild]::IsOSPlatform('Windows'))">windows</TargetOs>
<TargetOs Condition="'$(TargetOs)' == ''">linux</TargetOs>
</PropertyGroup>

<!-- Resources are named Lib/<path> (real path, so files without extension work).
Lib\luajit-linux and Lib\decompiler-linux are embedded as Lib/luajit and Lib/decompiler on Linux. -->
<ItemGroup>
<EmbeddedResource Include="Lib\**"
Exclude="Lib\luajit\**;Lib\decompiler\**;Lib\luajit-linux\**;Lib\decompiler-linux\**"
LogicalName="Lib/%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="Lib\luajit\**" Condition="'$(TargetOs)' == 'windows'"
LogicalName="Lib/luajit/%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="Lib\decompiler\**" Condition="'$(TargetOs)' == 'windows'"
LogicalName="Lib/decompiler/%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="Lib\luajit-linux\**" Condition="'$(TargetOs)' == 'linux'"
LogicalName="Lib/luajit/%(RecursiveDir)%(Filename)%(Extension)" />
<EmbeddedResource Include="Lib\decompiler-linux\**" Condition="'$(TargetOs)' == 'linux'"
LogicalName="Lib/decompiler/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia" Version="11.3.22" />
<PackageReference Include="Avalonia.Desktop" Version="11.3.22" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Include="Avalonia.Diagnostics" Version="11.3.22">
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
</PackageReference>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="Lucide.Avalonia" Version="0.2.28" />
<PackageReference Include="Semi.Avalonia" Version="11.3.7" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
<!-- Avalonia pulls in 0.21.2 (GHSA-xrw6-gwf8-vvr9); 0.21.3 is the patched release of the same line -->
<PackageReference Include="Tmds.DBus.Protocol" Version="0.21.3" />
</ItemGroup>

<ItemGroup>
<Compile Update="Views\MessageBox.axaml.cs">
<DependentUpon>MessageBox.axaml</DependentUpon>
</Compile>
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions (S)NES Mini - Lua Compiler.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36518.9
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "(S)NES Mini - Lua Compiler", "(S)NES Mini - Lua Compiler.csproj", "{C38F6CC2-6753-4E91-8F9D-C84ABD17FE2C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C38F6CC2-6753-4E91-8F9D-C84ABD17FE2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C38F6CC2-6753-4E91-8F9D-C84ABD17FE2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C38F6CC2-6753-4E91-8F9D-C84ABD17FE2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C38F6CC2-6753-4E91-8F9D-C84ABD17FE2C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {59B4D959-7A58-4465-A476-34E1BF0EA76B}
EndGlobalSection
EndGlobal
156 changes: 155 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,158 @@
[*.cs]
# Microsoft C# conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions
# and the .NET Framework Design Guidelines naming rules), enforced by the Roslyn analyzers at build time.
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.{xml,csproj,props,targets,axaml,yml,yaml,json}]
indent_size = 2

[*.cs]
# the existing C# files start with a BOM
charset = utf-8-bom

#### .NET code style ####

# Organize usings
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false

# this. qualification
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

# Language keywords instead of BCL types
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion
dotnet_style_readonly_field = true:suggestion

# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion

# Parentheses
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent

#### C# code style ####

# var: only when the type is apparent
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = false:suggestion

# Expression-bodied members
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent

# Pattern matching and null checks
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_pattern_matching = true:silent
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_prefer_simple_using_statement = true:suggestion
csharp_style_namespace_declarations = block_scoped:silent
csharp_using_directive_placement = outside_namespace:suggestion
csharp_prefer_braces = true:silent

# Newlines (Allman)
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Indentation
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = one_less_than_current
csharp_indent_block_contents = true
csharp_indent_braces = false

# Spacing
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true

#### Naming (Framework Design Guidelines) ####

dotnet_naming_symbols.interfaces.applicable_kinds = interface
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_rule.interfaces_begin_with_i.symbols = interfaces
dotnet_naming_rule.interfaces_begin_with_i.style = begins_with_i
dotnet_naming_rule.interfaces_begin_with_i.severity = suggestion

dotnet_naming_symbols.types.applicable_kinds = class,struct,enum,delegate
dotnet_naming_symbols.non_field_members.applicable_kinds = property,method,event
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_naming_rule.types_are_pascal_case.symbols = types
dotnet_naming_rule.types_are_pascal_case.style = pascal_case
dotnet_naming_rule.types_are_pascal_case.severity = suggestion
dotnet_naming_rule.members_are_pascal_case.symbols = non_field_members
dotnet_naming_rule.members_are_pascal_case.style = pascal_case
dotnet_naming_rule.members_are_pascal_case.severity = suggestion

dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private,protected,internal,private_protected
dotnet_naming_style.underscore_camel_case.required_prefix = _
dotnet_naming_style.underscore_camel_case.capitalization = camel_case
dotnet_naming_rule.private_fields_underscore_camel_case.symbols = private_fields
dotnet_naming_rule.private_fields_underscore_camel_case.style = underscore_camel_case
dotnet_naming_rule.private_fields_underscore_camel_case.severity = suggestion

dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.required_modifiers = const
dotnet_naming_rule.constants_are_pascal_case.symbols = constants
dotnet_naming_rule.constants_are_pascal_case.style = pascal_case
dotnet_naming_rule.constants_are_pascal_case.severity = suggestion

# CA2213: Disposable fields should be disposed
dotnet_diagnostic.CA2213.severity = silent

# var only where the type is apparent (new, casts), as the Microsoft C# conventions say
dotnet_diagnostic.IDE0008.severity = warning
dotnet_diagnostic.IDE0005.severity = warning
73 changes: 13 additions & 60 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,63 +1,16 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
# Normalize line endings: LF in the repo and in the working tree (pre-commit enforces it)
* text=auto eol=lf

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
# Windows scripts
*.bat text eol=crlf
*.cmd text eol=crlf

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
# Binary files
*.png binary
*.ico binary
*.exe binary
*.dll binary
*.sln text eol=crlf

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
# Vendored third-party source: keep the bytes as published
third_party/** -text
Loading
Loading