Mercurial > wgsdk
changeset 2:712c7fd6702a
Remove a LOT of unneeded stuff
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Aug 2022 10:41:55 -0400 |
parents | 7abb5d8b20ea |
children | 8df8af626dca |
files | Makefile src/include/dialog.rc src/include/resource.h src/main.c |
diffstat | 4 files changed, 2 insertions(+), 51 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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
--- 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
--- 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 <assert.h> #include <stdio.h> -#include <stdint.h> #include <stdlib.h> -#include <time.h> #include <Winamp/wa_ipc.h> #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);