-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 01eb440
Showing
76 changed files
with
33,266 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
utils\bin\premake5 %* vs2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
} |
Oops, something went wrong.