# HG changeset patch # User Paper # Date 1659883315 14400 # Node ID 712c7fd6702a5c3483eab4056ce46a3bc912b4d2 # Parent 7abb5d8b20eafcef2b50200a378044f7bed1c14e Remove a LOT of unneeded stuff diff -r 7abb5d8b20ea -r 712c7fd6702a Makefile --- a/Makefile Sun Aug 07 10:23:10 2022 -0400 +++ b/Makefile Sun Aug 07 10:41:55 2022 -0400 @@ -24,4 +24,5 @@ gcc -c $(CFLAGS) $< -o $@ clean: - rm -f src/*.o *.dll \ No newline at end of file + find . -type f -name '*.o' -not -path "./discord_game_sdk/*" -delete + find . -type f -name '*.dll' -not -path "./discord_game_sdk/*" -delete diff -r 7abb5d8b20ea -r 712c7fd6702a src/include/dialog.rc --- a/src/include/dialog.rc Sun Aug 07 10:23:10 2022 -0400 +++ b/src/include/dialog.rc Sun Aug 07 10:41:55 2022 -0400 @@ -1,29 +1,8 @@ #include "resource.h" #include "winres.h" -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#ifdef APSTUDIO_INVOKED - -1 TEXTINCLUDE -BEGIN - "resource.h\0" -END - -2 TEXTINCLUDE -BEGIN - "\0" -END - -3 TEXTINCLUDE -BEGIN - "\r\n" - "\0" -END - -#endif // APSTUDIO_INVOKED - DIALOG_CONFIG DIALOGEX 0, 0, 262, 71 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "GameSDK Config" @@ -35,18 +14,3 @@ CONTROL "Show elapsed time in presence",ELAPSED_TIME_CHECK, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,20,114,10 END - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO -BEGIN - DIALOG_CONFIG, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 255 - TOPMARGIN, 7 - BOTTOMMARGIN, 64 - END -END -#endif // APSTUDIO_INVOKED - -#endif diff -r 7abb5d8b20ea -r 712c7fd6702a src/include/resource.h --- a/src/include/resource.h Sun Aug 07 10:23:10 2022 -0400 +++ b/src/include/resource.h Sun Aug 07 10:41:55 2022 -0400 @@ -1,12 +1,3 @@ #define DIALOG_CONFIG 101 #define TITLE_CHECK 1000 #define ELAPSED_TIME_CHECK 1001 - -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 102 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1002 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff -r 7abb5d8b20ea -r 712c7fd6702a src/main.c --- a/src/main.c Sun Aug 07 10:23:10 2022 -0400 +++ b/src/main.c Sun Aug 07 10:41:55 2022 -0400 @@ -1,14 +1,11 @@ #include #include -#include #include -#include #include #include "main.h" #include "discord_game_sdk.h" #include "timer.h" #include "config.h" -#include "dirtools.h" #include "resource.h" #ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN @@ -124,8 +121,6 @@ } int init() { - char* path = dirtools_concat_paths(getenv("APPDATA"), "Winamp\\Plugins\\wgsdk"); - printf("%s", path); memset(&app, 0, sizeof(app)); if (IsWindowUnicode(g_plugin.hwndParent)) { g_lpWndProcOld = (WNDPROC)SetWindowLongW(g_plugin.hwndParent, -4, (LONG)WndProc);