Skip to content

Commit

Permalink
ADD
Browse files Browse the repository at this point in the history
  • Loading branch information
MinamiChiwa committed Jan 23, 2022
0 parents commit 01eb440
Show file tree
Hide file tree
Showing 76 changed files with 33,266 additions and 0 deletions.
154 changes: 154 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
### Windows

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Shortcuts
*.lnk

### OSX

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Visual Studio

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

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

# Build results
build

# Visual Studio 2015 cache/options directory
.vs/

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

*_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

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

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

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

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

# Others
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings

# 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

### IDA
*.id0
*.id1
*.id2
*.nam
*.til

### Custom user files
# User scripts
user*.bat

# Premake binary
#premake5.exe

# text_dumper tmp files
resources/text_dumper/obj
resources/text_dumper/bin
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "deps/minhook"]
path = deps/minhook
url = https://github.com/TsudaKageyu/minhook.git
[submodule "deps/rapidjson"]
path = deps/rapidjson
url = https://github.com/Tencent/rapidjson.git
31 changes: 31 additions & 0 deletions deps/minhook.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
minhook = {
source = path.join(dependencies.basePath, "minhook"),
}

function minhook.import()
links { "minhook" }
minhook.includes()
end

function minhook.includes()
includedirs {
path.join(minhook.source, "include")
}
end

function minhook.project()
project "minhook"
language "C"

minhook.includes()

files {
path.join(minhook.source, "src/**.h"),
path.join(minhook.source, "src/**.c"),
}

warnings "Off"
kind "StaticLib"
end

table.insert(dependencies, minhook)
18 changes: 18 additions & 0 deletions deps/rapidjson.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
rapidjson = {
source = path.join(dependencies.basePath, "rapidjson"),
}

function rapidjson.import()
rapidjson.includes()
end

function rapidjson.includes()
includedirs {
path.join(rapidjson.source, "include")
}
end

function rapidjson.project()
end

table.insert(dependencies, rapidjson)
2 changes: 2 additions & 0 deletions generate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
utils\bin\premake5 %* vs2019
14 changes: 14 additions & 0 deletions license
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2021 GEEKiDoS <geek_ds@foxmail.com>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

102 changes: 102 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
dependencies = {
basePath = "./deps"
}

function dependencies.load()
dir = path.join(dependencies.basePath, "premake/*.lua")
deps = os.matchfiles(dir)

for i, dep in pairs(deps) do
dep = dep:gsub(".lua", "")
require(dep)
end
end

function dependencies.imports()
for i, proj in pairs(dependencies) do
if type(i) == 'number' then
proj.import()
end
end
end

function dependencies.projects()
for i, proj in pairs(dependencies) do
if type(i) == 'number' then
proj.project()
end
end
end

include "deps/minhook.lua"
include "deps/rapidjson.lua"

workspace "umamusume-localify"
location "./build"
objdir "%{wks.location}/obj"
targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"

architecture "x64"
platforms "x64"

configurations {
"Debug",
"Release",
}

buildoptions "/std:c++latest"
systemversion "latest"
symbols "On"
staticruntime "On"
editandcontinue "Off"
warnings "Off"
characterset "ASCII"

flags {
"NoIncrementalLink",
"NoMinimalRebuild",
"MultiProcessorCompile",
}

staticruntime "Off"

configuration "Release"
optimize "Full"
buildoptions "/Os"

configuration "Debug"
optimize "Debug"

dependencies.projects()

project "umamusume-localify"
targetname "version"

language "C++"
kind "SharedLib"

files {
"./src/**.hpp",
"./src/**.cpp",
"./src/**.asm",
"./src/**.def",
}

includedirs {
"./src",
"%{prj.location}/src",
}

dependencies.imports()

configuration "Release"
linkoptions "/SAFESEH:NO"
syslibdirs {
"./libs/Release",
}

configuration "Debug"
linkoptions "/SAFESEH:NO"
syslibdirs {
"./libs/Debug",
}
Loading

0 comments on commit 01eb440

Please sign in to comment.