-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from HJfod/new
New
- Loading branch information
Showing
1,758 changed files
with
390,533 additions
and
10,817 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 |
---|---|---|
@@ -1,4 +1 @@ | ||
build | ||
*.gmd | ||
*.gmd2 | ||
*.lvl | ||
build/ |
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
[submodule "submodules/Cappuccino"] | ||
path = submodules/Cappuccino | ||
url = https://github.com/AndreNIH/CappuccinoSDK/ | ||
[submodule "submodules/MinHook"] | ||
path = submodules/MinHook | ||
url = https://github.com/TsudaKageyu/minhook | ||
[submodule "submodules/gd"] | ||
path = submodules/gd | ||
url = https://github.com/poweredbypie/gd.h | ||
[submodule "submodules/nfd"] | ||
path = submodules/nfd | ||
url = https://github.com/mlabbe/nativefiledialog | ||
[submodule "submodules/zipper"] | ||
path = submodules/zipper | ||
url = https://github.com/sebastiandev/zipper |
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
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 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "(Windows) Attach", | ||
"type": "cppvsdbg", | ||
"request": "attach", | ||
"processId": "${command:pickProcess}" | ||
} | ||
] | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,7 +1,39 @@ | ||
# this is wip | ||
# Integrated GDShare | ||
|
||
Currently the mod is in an usable state, but it may (and likely) does contain bugs that need to be ironed out. If you find issues, please let me know! | ||
This is a mod for GD that adds buttons to export / import levels. | ||
|
||
# known bugs | ||
# Installation | ||
|
||
1. Download the [latest release](https://github.com/HJfod/GDShare-mod/releases/latest) | ||
2. Unzip contents in location of choice (preferably an empty folder) | ||
3. Run `OneTimeRunner.exe` | ||
4. For permanent installation, you need a modloader. Follow instructions for your specific loader to finish installing: | ||
|
||
### With MegaHack v6 | ||
|
||
1. Go to your `Geometry Dash` folder (the one with `GeometryDash.exe` in it) | ||
2. Open `absolutedlls` with notepad | ||
3. Add a new line and on it type "path/to/GDShare.dll" (replace path/to with the actual path to the file) | ||
|
||
### With ModLdr | ||
|
||
1. Add GDShare.dll to your `mods` folder | ||
|
||
### With GDDLLLoader | ||
|
||
1. Add GDShare.dll to your `adaf-dlls` folder | ||
|
||
### For other modloaders | ||
|
||
1. Ask the developer how to add normal DLLs as mods. | ||
|
||
# Thank yous | ||
|
||
* [Zipper](https://github.com/sebastiandev/zipper) | ||
* [MinHook](https://github.com/TsudaKageyu/minhook) | ||
* [nfd](https://github.com/mlabbe/nativefiledialog) | ||
* [PoweredByPie](https://github.com/poweredbypie) | ||
* [MatCool](https://github.com/matcool/) (tysm) | ||
* [zmx](https://github.com/kyurime) | ||
* And everyone else in [GDP](https://discord.gg/jEwtDBK) | ||
|
||
* deleting a level right after importing it crashes the game |
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,51 @@ | ||
#include "src/mod.hpp" | ||
|
||
// #define GDCONSOLE | ||
|
||
#ifdef GDCONSOLE | ||
#include "src/console.hpp" | ||
#endif | ||
|
||
DWORD WINAPI load_thread(LPVOID hModule) { | ||
if (gd::init()) { | ||
|
||
#ifdef GDCONSOLE | ||
if (!gd::console::load()) { | ||
MessageBoxA(nullptr, "Unable to hook up debugging console!", "GDShare", MB_ICONERROR); | ||
FreeLibraryAndExitThread((HMODULE)hModule, 0); | ||
return 1; | ||
} | ||
#endif | ||
|
||
if (mod::load()) { | ||
#ifdef GDCONSOLE | ||
gd::console::awaitUnload(); | ||
#endif | ||
} else | ||
FreeLibraryAndExitThread((HMODULE)hModule, 0); | ||
} else | ||
FreeLibraryAndExitThread((HMODULE)hModule, 0); | ||
|
||
#ifdef GDCONSOLE | ||
|
||
mod::unload(); | ||
gd::console::unload(); | ||
FreeLibraryAndExitThread((HMODULE)hModule, 0); | ||
|
||
#endif | ||
|
||
return 0; | ||
} | ||
|
||
BOOL APIENTRY DllMain( | ||
HMODULE hModule, | ||
DWORD ul_reason_for_call, | ||
LPVOID lpReserved | ||
) { | ||
if (ul_reason_for_call == DLL_PROCESS_ATTACH) { | ||
// what the hell is this pie | ||
HANDLE _ = CreateThread(0, 0, load_thread, hModule, 0, nullptr); | ||
if (_) CloseHandle(_); | ||
} | ||
return TRUE; | ||
} |
Binary file not shown.
Oops, something went wrong.