fix build
This commit is contained in:
11
SM64Lib/My Project/Application.Designer.cs
generated
11
SM64Lib/My Project/Application.Designer.cs
generated
@@ -1,11 +0,0 @@
|
|||||||
// ------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
|
||||||
// Laufzeitversion:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
|
||||||
// der Code erneut generiert wird.
|
|
||||||
// </auto-generated>
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<MySubMain>false</MySubMain>
|
|
||||||
<SingleInstance>false</SingleInstance>
|
|
||||||
<ShutdownMode>0</ShutdownMode>
|
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
|
||||||
<ApplicationType>1</ApplicationType>
|
|
||||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
|
||||||
</MyApplicationData>
|
|
||||||
192
SM64Lib/My Project/MyNamespace.Static.1.Designer.cs
generated
192
SM64Lib/My Project/MyNamespace.Static.1.Designer.cs
generated
@@ -1,192 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia *//* TODO ERROR: Skipped DefineDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
namespace SM64Lib.My
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped ElifDirectiveTrivia */
|
|
||||||
internal partial class MyApplication : Microsoft.VisualBasic.ApplicationServices.ApplicationBase
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
internal partial class MyComputer : Microsoft.VisualBasic.Devices.Computer
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyComputer() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[HideModuleName()]
|
|
||||||
[System.CodeDom.Compiler.GeneratedCode("MyTemplate", "11.0.0.0")]
|
|
||||||
internal static class MyProject
|
|
||||||
{
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Computer")]
|
|
||||||
internal static MyComputer Computer
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_ComputerObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyComputer> m_ComputerObjectProvider = new ThreadSafeObjectProvider<MyComputer>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.Application")]
|
|
||||||
internal static MyApplication Application
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_AppObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyApplication> m_AppObjectProvider = new ThreadSafeObjectProvider<MyApplication>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.User")]
|
|
||||||
internal static Microsoft.VisualBasic.ApplicationServices.User User
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_UserObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User> m_UserObjectProvider = new ThreadSafeObjectProvider<Microsoft.VisualBasic.ApplicationServices.User>();
|
|
||||||
/* TODO ERROR: Skipped ElifDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.Design.HelpKeyword("My.WebServices")]
|
|
||||||
internal static MyWebServices WebServices
|
|
||||||
{
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return m_MyWebServicesObjectProvider.GetInstance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")]
|
|
||||||
internal sealed class MyWebServices
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override bool Equals(object o)
|
|
||||||
{
|
|
||||||
return base.Equals(o);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return base.GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
internal new Type GetType()
|
|
||||||
{
|
|
||||||
return typeof(MyWebServices);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[DebuggerHidden()]
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return base.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private static T Create__Instance__<T>(T instance) where T : new()
|
|
||||||
{
|
|
||||||
if (instance == null)
|
|
||||||
{
|
|
||||||
return new T();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
private void Dispose__Instance__<T>(ref T instance)
|
|
||||||
{
|
|
||||||
instance = default;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public MyWebServices() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly static ThreadSafeObjectProvider<MyWebServices> m_MyWebServicesObjectProvider = new ThreadSafeObjectProvider<MyWebServices>();
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.InteropServices.ComVisible(false)]
|
|
||||||
internal sealed class ThreadSafeObjectProvider<T> where T : new()
|
|
||||||
{
|
|
||||||
internal T GetInstance
|
|
||||||
{
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
[DebuggerHidden()]
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var Value = m_Context.Value;
|
|
||||||
if (Value == null)
|
|
||||||
{
|
|
||||||
Value = new T();
|
|
||||||
m_Context.Value = Value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Value;
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped ElseDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerHidden()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public ThreadSafeObjectProvider() : base()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* TODO ERROR: Skipped IfDirectiveTrivia */
|
|
||||||
private readonly Microsoft.VisualBasic.MyServices.Internal.ContextValue<T> m_Context = new Microsoft.VisualBasic.MyServices.Internal.ContextValue<T>();
|
|
||||||
/* TODO ERROR: Skipped ElseDirectiveTrivia *//* TODO ERROR: Skipped DisabledTextTrivia *//* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* TODO ERROR: Skipped EndIfDirectiveTrivia */
|
|
||||||
254
SM64Lib/My Project/MyNamespace.Static.2.Designer.cs
generated
254
SM64Lib/My Project/MyNamespace.Static.2.Designer.cs
generated
@@ -1,254 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
// See Compiler::LoadXmlSolutionExtension
|
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Xml.Linq;
|
|
||||||
using Microsoft.VisualBasic;
|
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
|
||||||
|
|
||||||
namespace SM64Lib.My
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal sealed class InternalXmlHelper
|
|
||||||
{
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private InternalXmlHelper()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_Value(IEnumerable<XElement> source)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return item.Value;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_Value(IEnumerable<XElement> source, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.Value = value;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(IEnumerable<XElement> source, XName name)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
return Convert.ToString(item.Attribute(name));
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(IEnumerable<XElement> source, XName name, string value)
|
|
||||||
{
|
|
||||||
foreach (XElement item in source)
|
|
||||||
{
|
|
||||||
item.SetAttributeValue(name, value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string get_AttributeValue(XElement source, XName name)
|
|
||||||
{
|
|
||||||
return Convert.ToString(source.Attribute(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void set_AttributeValue(XElement source, XName name, string value)
|
|
||||||
{
|
|
||||||
source.SetAttributeValue(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateAttribute(XName name, object value)
|
|
||||||
{
|
|
||||||
if (value is null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new XAttribute(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XAttribute CreateNamespaceAttribute(XName name, XNamespace ns)
|
|
||||||
{
|
|
||||||
var a = new XAttribute(name, ns.NamespaceName);
|
|
||||||
a.AddAnnotation(ns);
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static object RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, object obj)
|
|
||||||
{
|
|
||||||
if (obj is not null)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is not null)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IEnumerable elems = obj as IEnumerable;
|
|
||||||
if (elems is not null)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(inScopePrefixes, inScopeNs, attributes, elems);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static IEnumerable RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, IEnumerable obj)
|
|
||||||
{
|
|
||||||
if (obj is not null)
|
|
||||||
{
|
|
||||||
IEnumerable<XElement> elems = obj as IEnumerable<XElement>;
|
|
||||||
if (elems is not null)
|
|
||||||
{
|
|
||||||
return elems.Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessXElement);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj.Cast<object>().Select(new RemoveNamespaceAttributesClosure(inScopePrefixes, inScopeNs, attributes).ProcessObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
[DebuggerNonUserCode()]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
private sealed class RemoveNamespaceAttributesClosure
|
|
||||||
{
|
|
||||||
private readonly string[] m_inScopePrefixes;
|
|
||||||
private readonly XNamespace[] m_inScopeNs;
|
|
||||||
private readonly List<XAttribute> m_attributes;
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal RemoveNamespaceAttributesClosure(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes)
|
|
||||||
{
|
|
||||||
m_inScopePrefixes = inScopePrefixes;
|
|
||||||
m_inScopeNs = inScopeNs;
|
|
||||||
m_attributes = attributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal XElement ProcessXElement(XElement elem)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
internal object ProcessObject(object obj)
|
|
||||||
{
|
|
||||||
XElement elem = obj as XElement;
|
|
||||||
if (elem is not null)
|
|
||||||
{
|
|
||||||
return RemoveNamespaceAttributes(m_inScopePrefixes, m_inScopeNs, m_attributes, elem);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
public static XElement RemoveNamespaceAttributes(string[] inScopePrefixes, XNamespace[] inScopeNs, List<XAttribute> attributes, XElement e)
|
|
||||||
{
|
|
||||||
if (e is not null)
|
|
||||||
{
|
|
||||||
var a = e.FirstAttribute;
|
|
||||||
while (a is not null)
|
|
||||||
{
|
|
||||||
var nextA = a.NextAttribute;
|
|
||||||
if (a.IsNamespaceDeclaration)
|
|
||||||
{
|
|
||||||
var ns = a.Annotation<XNamespace>();
|
|
||||||
string prefix = a.Name.LocalName;
|
|
||||||
if (ns is not null)
|
|
||||||
{
|
|
||||||
if (inScopePrefixes is not null && inScopeNs is not null)
|
|
||||||
{
|
|
||||||
int lastIndex = inScopePrefixes.Length - 1;
|
|
||||||
for (int i = 0, loopTo = lastIndex; i <= loopTo; i++)
|
|
||||||
{
|
|
||||||
string currentInScopePrefix = inScopePrefixes[i];
|
|
||||||
var currentInScopeNs = inScopeNs[i];
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is not null)
|
|
||||||
{
|
|
||||||
// Prefix is not in scope
|
|
||||||
// Now check whether it's going to be in scope because it is in the attributes list
|
|
||||||
|
|
||||||
if (attributes is not null)
|
|
||||||
{
|
|
||||||
int lastIndex = attributes.Count - 1;
|
|
||||||
for (int i = 0, loopTo1 = lastIndex; i <= loopTo1; i++)
|
|
||||||
{
|
|
||||||
var currentA = attributes[i];
|
|
||||||
string currentInScopePrefix = currentA.Name.LocalName;
|
|
||||||
var currentInScopeNs = currentA.Annotation<XNamespace>();
|
|
||||||
if (currentInScopeNs is not null)
|
|
||||||
{
|
|
||||||
if (prefix.Equals(currentInScopePrefix))
|
|
||||||
{
|
|
||||||
if (ns == currentInScopeNs)
|
|
||||||
{
|
|
||||||
// prefix and namespace match. Remove the unneeded ns attribute
|
|
||||||
a.Remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
// prefix is in scope but refers to something else. Leave the ns attribute.
|
|
||||||
a = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a is not null)
|
|
||||||
{
|
|
||||||
// Prefix is definitely not in scope
|
|
||||||
a.Remove();
|
|
||||||
// namespace is not defined either. Add this attributes list
|
|
||||||
attributes.Add(a);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a = nextA;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
14
SM64Lib/My Project/MyNamespace.Static.3.Designer.cs
generated
14
SM64Lib/My Project/MyNamespace.Static.3.Designer.cs
generated
@@ -1,14 +0,0 @@
|
|||||||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Microsoft.VisualBasic
|
|
||||||
{
|
|
||||||
[Embedded()]
|
|
||||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Module | AttributeTargets.Assembly, Inherited = false)]
|
|
||||||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
|
|
||||||
[System.Runtime.CompilerServices.CompilerGenerated()]
|
|
||||||
internal sealed class Embedded : Attribute
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -33,14 +33,12 @@ public class PatchClass
|
|||||||
StartingExternalTool?.Invoke(this);
|
StartingExternalTool?.Invoke(this);
|
||||||
|
|
||||||
p.Start();
|
p.Start();
|
||||||
while (!p.HasExited)
|
p.WaitForExit();
|
||||||
Application.DoEvents();
|
|
||||||
|
|
||||||
ExitingExternalTool?.Invoke(this);
|
ExitingExternalTool?.Invoke(this);
|
||||||
return p.ExitCode;
|
return p.ExitCode;
|
||||||
}
|
}
|
||||||
/* TODO ERROR: Skipped EndRegionDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped RegionDirectiveTrivia */
|
|
||||||
public void UpdateChecksum(string Romfile)
|
public void UpdateChecksum(string Romfile)
|
||||||
{
|
{
|
||||||
RunProcess(General.MyFilePaths["rn64crc.exe"], $"\"{Romfile}\" -u");
|
RunProcess(General.MyFilePaths["rn64crc.exe"], $"\"{Romfile}\" -u");
|
||||||
@@ -53,8 +51,7 @@ public class PatchClass
|
|||||||
data.Position = 0x678;
|
data.Position = 0x678;
|
||||||
data.Write(369623043U);
|
data.Write(369623043U);
|
||||||
}
|
}
|
||||||
/* TODO ERROR: Skipped EndRegionDirectiveTrivia */
|
|
||||||
/* TODO ERROR: Skipped RegionDirectiveTrivia */
|
|
||||||
public void Open(string Romfile, bool OnlyRead)
|
public void Open(string Romfile, bool OnlyRead)
|
||||||
{
|
{
|
||||||
Open(new BinaryFile(Romfile, FileMode.Open, OnlyRead ? FileAccess.Read : FileAccess.ReadWrite));
|
Open(new BinaryFile(Romfile, FileMode.Open, OnlyRead ? FileAccess.Read : FileAccess.ReadWrite));
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Pilz.IO;
|
using Pilz.IO;
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace SM64Lib.Patching;
|
namespace SM64Lib.Patching;
|
||||||
|
|
||||||
@@ -10,5 +9,5 @@ public class PatchScriptExecuteParams
|
|||||||
public EmbeddedFilesContainer EmbeddedFiles { get; set; }
|
public EmbeddedFilesContainer EmbeddedFiles { get; set; }
|
||||||
public string ProfilePath { get; set; }
|
public string ProfilePath { get; set; }
|
||||||
public Dictionary<string, object> OtherParameters { get; set; } = [];
|
public Dictionary<string, object> OtherParameters { get; set; } = [];
|
||||||
public IWin32Window WindowOwner { get; set; }
|
public object Tag { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ using System.Data;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.Loader;
|
using System.Runtime.Loader;
|
||||||
using System.Windows.Forms;
|
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
using CSLanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion;
|
using CSLanguageVersion = Microsoft.CodeAnalysis.CSharp.LanguageVersion;
|
||||||
using VBLanguageVersion = Microsoft.CodeAnalysis.VisualBasic.LanguageVersion;
|
using VBLanguageVersion = Microsoft.CodeAnalysis.VisualBasic.LanguageVersion;
|
||||||
@@ -176,7 +175,7 @@ public class PatchingManager
|
|||||||
switch (script.Type)
|
switch (script.Type)
|
||||||
{
|
{
|
||||||
case ScriptType.TweakScript:
|
case ScriptType.TweakScript:
|
||||||
ExecuteTweakScript(script.Script, @params, @params.WindowOwner);
|
ExecuteTweakScript(script.Script, @params, @params.Tag);
|
||||||
break;
|
break;
|
||||||
case ScriptType.VisualBasic:
|
case ScriptType.VisualBasic:
|
||||||
case ScriptType.CSharp:
|
case ScriptType.CSharp:
|
||||||
@@ -396,7 +395,7 @@ public class PatchingManager
|
|||||||
fs?.Close();
|
fs?.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ExecuteTweakScript(string script, PatchScriptExecuteParams @params, IWin32Window owner)
|
private void ExecuteTweakScript(string script, PatchScriptExecuteParams @params, object tag)
|
||||||
{
|
{
|
||||||
var stream = new FileStream(@params.RomFilePath, FileMode.Open, FileAccess.ReadWrite);
|
var stream = new FileStream(@params.RomFilePath, FileMode.Open, FileAccess.ReadWrite);
|
||||||
var bw = new BinaryWriter(stream);
|
var bw = new BinaryWriter(stream);
|
||||||
@@ -503,7 +502,7 @@ public class PatchingManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
var titel = parts.ElementAtOrDefault(1)?.Trim()?.Trim('"', '[', ']');
|
var titel = parts.ElementAtOrDefault(1)?.Trim()?.Trim('"', '[', ']');
|
||||||
var processingEventArgs = new PatchScriptManagerProcessingInputValueEventArgs(inputType, titel, @params.RomManager, owner);
|
var processingEventArgs = new PatchScriptManagerProcessingInputValueEventArgs(inputType, titel, @params.RomManager, tag);
|
||||||
ProcessingInputValue?.Invoke(this, processingEventArgs);
|
ProcessingInputValue?.Invoke(this, processingEventArgs);
|
||||||
|
|
||||||
if (processingEventArgs.SettedValue)
|
if (processingEventArgs.SettedValue)
|
||||||
|
|||||||
@@ -1,22 +1,20 @@
|
|||||||
using System.Windows.Forms;
|
namespace SM64Lib.Patching;
|
||||||
|
|
||||||
namespace SM64Lib.Patching;
|
|
||||||
|
|
||||||
public class PatchScriptManagerProcessingInputValueEventArgs
|
public class PatchScriptManagerProcessingInputValueEventArgs
|
||||||
{
|
{
|
||||||
public InputValueType ValueType { get; private set; }
|
public InputValueType ValueType { get; private set; }
|
||||||
public string Titel { get; private set; }
|
public string Titel { get; private set; }
|
||||||
public RomManager RomManager { get; private set; }
|
public RomManager RomManager { get; private set; }
|
||||||
public IWin32Window Owner { get; private set; }
|
public object Tag { get; private set; }
|
||||||
public object ReturnValue { get; set; }
|
public object ReturnValue { get; set; }
|
||||||
public bool SettedValue { get; set; }
|
public bool SettedValue { get; set; }
|
||||||
|
|
||||||
internal PatchScriptManagerProcessingInputValueEventArgs(InputValueType valueType, string titel, RomManager romManager, IWin32Window owner)
|
internal PatchScriptManagerProcessingInputValueEventArgs(InputValueType valueType, string titel, RomManager romManager, object tag)
|
||||||
{
|
{
|
||||||
ValueType = valueType;
|
ValueType = valueType;
|
||||||
Titel = titel;
|
Titel = titel;
|
||||||
RomManager = romManager;
|
RomManager = romManager;
|
||||||
Owner = owner;
|
Tag = tag;
|
||||||
SettedValue = false;
|
SettedValue = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
using global::System.Runtime.InteropServices;
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird.
|
|
||||||
[assembly: Guid("7bb4da91-c143-4b0a-8452-00dca8dafa6b")]
|
|
||||||
|
|
||||||
@@ -13,18 +13,6 @@
|
|||||||
<PackageReference Include="Pilz.Simple3DFileParser" Version="2.0.0" />
|
<PackageReference Include="Pilz.Simple3DFileParser" Version="2.0.0" />
|
||||||
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
|
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Compile Update="My Project\Application.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Application.myapp</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="My Project\Application.myapp">
|
|
||||||
<Generator>MyApplicationCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Application.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\SM64Lib.LIBMIO0\SM64Lib.LIBMIO0.csproj" />
|
<ProjectReference Include="..\SM64Lib.LIBMIO0\SM64Lib.LIBMIO0.csproj" />
|
||||||
<ProjectReference Include="..\SM64Lib.N64Graphics\SM64Lib.N64Graphics.csproj" />
|
<ProjectReference Include="..\SM64Lib.N64Graphics\SM64Lib.N64Graphics.csproj" />
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
using global::System.ComponentModel;
|
using Newtonsoft.Json;
|
||||||
using global::System.ComponentModel.Design;
|
using System.ComponentModel;
|
||||||
using global::System.Drawing.Design;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace SM64Lib.Text.Profiles;
|
namespace SM64Lib.Text.Profiles;
|
||||||
|
|
||||||
@@ -14,7 +12,7 @@ public class TextTableGroupInfo : TextGroupInfo
|
|||||||
[Browsable(false)]
|
[Browsable(false)]
|
||||||
public List<string> ItemDescriptionsList { get; set; } = [];
|
public List<string> ItemDescriptionsList { get; set; } = [];
|
||||||
|
|
||||||
[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
|
[Editor("System.ComponentModel.Design.MultilineStringEditor", "System.Drawing.Design.UITypeEditor")]
|
||||||
public string ItemDescriptions
|
public string ItemDescriptions
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
Reference in New Issue
Block a user