Skip to content

Commit

Permalink
7.0. Show git version in Windows about box.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Mar 11, 2013
1 parent 3b15542 commit 2e6d68c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 24 deletions.
44 changes: 25 additions & 19 deletions Windows/WndMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@

#include <windows.h>
#include <tchar.h>
#include "../globals.h"
#include "Globals.h"

#include "shellapi.h"
#include "commctrl.h"

#include "../Core/Debugger/SymbolMap.h"
#include "OpenGLBase.h"
#include "Debugger/Debugger_Disasm.h"
#include "Debugger/Debugger_MemoryDlg.h"
#include "Core/Debugger/SymbolMap.h"
#include "Windows/OpenGLBase.h"
#include "Windows/Debugger/Debugger_Disasm.h"
#include "Windows/Debugger/Debugger_MemoryDlg.h"
#include "main.h"

#include "../Core/Core.h"
#include "../Core/MemMap.h"
#include "../Core/SaveState.h"
#include "../Core/System.h"
#include "EmuThread.h"
#include "Core/Core.h"
#include "Core/MemMap.h"
#include "Core/SaveState.h"
#include "Core/System.h"
#include "Core/Config.h"
#include "Windows/EmuThread.h"

#include "resource.h"

#include "WndMainWindow.h"
#include "LogManager.h"
#include "ConsoleListener.h"
#include "W32Util/DialogManager.h"
#include "W32Util/ShellUtil.h"
#include "W32Util/Misc.h"
#include "../Core/Config.h"
#include "../GPU/GPUInterface.h"
#include "../GPU/GPUState.h"
#include "Windows/WndMainWindow.h"
#include "Common/LogManager.h"
#include "Common/ConsoleListener.h"
#include "Windows/W32Util/DialogManager.h"
#include "Windows/W32Util/ShellUtil.h"
#include "Windows/W32Util/Misc.h"
#include "GPU/GPUInterface.h"
#include "GPU/GPUState.h"

#ifdef THEMES
#include "XPTheme.h"
Expand Down Expand Up @@ -724,6 +724,12 @@ namespace MainWindow
{
case WM_INITDIALOG:
W32Util::CenterWindow(hDlg);
{
HWND versionBox = GetDlgItem(hDlg, IDC_VERSION);
char temp[256];
sprintf(temp, "PPSSPP %s", PPSSPP_GIT_VERSION);
SetWindowText(versionBox, temp);
}
return TRUE;

case WM_COMMAND:
Expand Down
2 changes: 1 addition & 1 deletion Windows/ppsspp.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "OK",IDOK,243,140,50,14
ICON IDI_PPSSPP,IDC_STATIC,10,9,21,20
LTEXT "PPSSPP v0.6.1",IDC_STATIC,40,8,127,9
LTEXT "PPSSPP v0.6.1",IDC_VERSION,40,8,127,9
LTEXT "Copyright (c) by Henrik Rydgård && the PPSSPP project 2012-",IDC_STATIC,40,33,253,8
LTEXT "All trademarks are property of their respective owners.\nThe emulator is for educational and development purposes only and it may not be used to play games you do not legally own.",IDC_STATIC,40,102,253,24
LTEXT "PSP emulator and debugger",IDC_STATIC,40,19,253,8
Expand Down
1 change: 1 addition & 0 deletions Windows/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
#define IDC_REGISTERS 1007
#define IDC_BREAKPOINTS 1008
#define IDC_STEP 1009
#define IDC_VERSION 1010
#define IDC_UP 1014
#define IDC_DIRTREE 1014
#define IDC_DOWN 1015
Expand Down
4 changes: 2 additions & 2 deletions android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.ppsspp.ppsspp"
android:versionCode="61"
android:versionName="0.61"
android:versionCode="70"
android:versionName="0.70"
android:installLocation="auto" >

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
Expand Down
2 changes: 1 addition & 1 deletion android/src/org/ppsspp/ppsspp/PpssppActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ public boolean overrideKeys()
{
return false;
}
}
}
2 changes: 1 addition & 1 deletion native

0 comments on commit 2e6d68c

Please sign in to comment.