Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Jul 17, 2017
0 parents commit b943270
Show file tree
Hide file tree
Showing 36 changed files with 3,024 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
275 changes: 275 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
*.vcxproj.filters

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# Visual Studio code coverage results
*.coverage
*.coveragexml

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc

# Cake - Uncomment if you are using it
# tools/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 GGG KILLER

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# WorkshopUtils
A workshop utility tool to download GMAD files and extract or look at files in-memory

# Dependencies
- [GMADFileFormat](https://github.com/GGG-KILLER/GMADFileFormat)
- [Newtonsoft.Json](http://www.newtonsoft.com/json)

# Requirements
- VS 2017 Community (not tested with previous versions)
- .NET Core SDK
- .NET Framework 2.6.1

# Re-generating highlight functions list
1. Copy contents of `highlighter-scrapper.js` to Chrome (should work in other browsers but untested) console
2. Paste output into `WorkshopUtils/UI/GLuaHighlighter/GLuaHighlightTokenizer.Fns.cs` (don't worry about what was there previously)
3. Re-compile

# License
MIT, do whatever the license lets you but at least give me credits
28 changes: 28 additions & 0 deletions WorkshopUtils.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkshopUtils", "WorkshopUtils\WorkshopUtils.csproj", "{A5E30662-65FB-4F73-957D-40AFD1D30F49}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GMADFileFormat", "GMADFileFormat\GMADFileFormat.csproj", "{A1CB8F0B-BD90-4F73-B675-DCADF98572EC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A5E30662-65FB-4F73-957D-40AFD1D30F49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A5E30662-65FB-4F73-957D-40AFD1D30F49}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A5E30662-65FB-4F73-957D-40AFD1D30F49}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A5E30662-65FB-4F73-957D-40AFD1D30F49}.Release|Any CPU.Build.0 = Release|Any CPU
{A1CB8F0B-BD90-4F73-B675-DCADF98572EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A1CB8F0B-BD90-4F73-B675-DCADF98572EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A1CB8F0B-BD90-4F73-B675-DCADF98572EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A1CB8F0B-BD90-4F73-B675-DCADF98572EC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions WorkshopUtils/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
16 changes: 16 additions & 0 deletions WorkshopUtils/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project. Project-level
// suppressions either have no target or are given a specific
// target and scoped to a namespace, type, member, etc.

[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0021:Use nameof", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.GetWorkshopAddonIDs(WorkshopUtils.EPublishedFileQueryType,System.UInt32,System.String[],System.Int32,System.Boolean)~System.Threading.Tasks.Task{System.Int32[]}" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0091:Use static method", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.DownloadAddonAsync(WorkshopUtils.WorkshopAddon,System.String)~System.Threading.Tasks.Task" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0021:Use nameof", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.GetWorkshopAddonIDsAsync(WorkshopUtils.EPublishedFileQueryType,System.UInt32,System.String[],System.Int32)~System.Threading.Tasks.Task{System.Int32[]}" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0091:Use static method", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.DownloadAddonDataAsync(WorkshopUtils.WorkshopAddon)~System.Threading.Tasks.Task{System.Byte[]}" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0091:Use static method", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.DownloadAddonFileAsync(WorkshopUtils.WorkshopAddon,System.String)~System.Threading.Tasks.Task" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0021:Use nameof", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.GetWorkshopAddonsAsync(System.String,WorkshopUtils.EPublishedFileQueryType,System.UInt32,System.Int32)~System.Threading.Tasks.Task{WorkshopUtils.WorkshopAddon[]}" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0091:Use static method", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.UI.ChoiceForm.Button1_Click(System.Object,System.EventArgs)" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Style", "CC0061:Asynchronous method can be terminated with the 'Async' keyword.", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.UI.ChoiceForm.Button1_Click(System.Object,System.EventArgs)" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0021:Use nameof", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.UI.GLuaHighlightTokenizer.IsGLuaFuncName(System.String)~System.Boolean" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0021:Use nameof", Justification = "<Pending>", Scope = "member", Target = "~M:WorkshopUtils.WorkshopHTTPAPI.GetWorkshopAddonsAsync(System.String,WorkshopUtils.EPublishedFileQueryType,System.UInt32,System.Int32)~System.Threading.Tasks.Task{WorkshopUtils.WorkshopAddon[]}" )]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage ( "Design", "CC0021:Use nameof", Justification = "<Pending>", Scope = "member", Target = "~F:WorkshopUtils.UI.GLuaHighlighter.GLuaHighlightTokenizer.Fns" )]
5 changes: 5 additions & 0 deletions WorkshopUtils/MS Managed Recommended + MS Security.ruleset
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="MS Managed Recommended + MS Security" ToolsVersion="15.0">
<Include Path="minimumrecommendedrules.ruleset" Action="Default" />
<Include Path="securityrules.ruleset" Action="Default" />
</RuleSet>
Loading

0 comments on commit b943270

Please sign in to comment.