 |
Changeset 3646
- Timestamp:
- 06/19/08 19:20:38
(3 months ago)
- Author:
- kris
- Message:
had to add casts for revised Win32 API headers
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2913 |
r3646 |
|
| 26 | 26 | { |
|---|
| 27 | 27 | if(useMessageBoxes) |
|---|
| 28 | | MessageBoxA(null, toStringz(msg), "Tango Switch utility\0", 0); |
|---|
| | 28 | MessageBoxA(null, cast(ubyte*) toStringz(msg), cast(ubyte*) "Tango Switch utility\0", 0); |
|---|
| 29 | 29 | else |
|---|
| 30 | 30 | printf("%s\n", toStringz(msg)); |
|---|
| … | … | |
| 94 | 94 | } |
|---|
| 95 | 95 | |
|---|
| 96 | | MoveFileA(toStringz(targetConf), toStringz(tangoConf)); // backup the Tango Build config |
|---|
| 97 | | MoveFileA(toStringz(phobosConf), toStringz(targetConf)); // put Phobos's Build config in place |
|---|
| | 96 | MoveFileA(cast(ubyte*) toStringz(targetConf), cast(ubyte*) toStringz(tangoConf)); // backup the Tango Build config |
|---|
| | 97 | MoveFileA(cast(ubyte*) toStringz(phobosConf), cast(ubyte*) toStringz(targetConf)); // put Phobos's Build config in place |
|---|
| 98 | 98 | |
|---|
| 99 | | if (!CopyFileA(toStringz(phobosLib), toStringz(targetLib), false)) |
|---|
| | 99 | if (!CopyFileA(cast(ubyte*) toStringz(phobosLib), cast(ubyte*) toStringz(targetLib), false)) |
|---|
| 100 | 100 | showMessage("Error: Could not find " ~ phobosLib); |
|---|
| 101 | 101 | else |
|---|
| … | … | |
| 111 | 111 | } |
|---|
| 112 | 112 | |
|---|
| 113 | | MoveFileA(toStringz(targetConf), toStringz(phobosConf)); // backup the Phobos Build config |
|---|
| 114 | | MoveFileA(toStringz(tangoConf), toStringz(targetConf)); // put Tango's Build config in place |
|---|
| | 113 | MoveFileA(cast(ubyte*) toStringz(targetConf), cast(ubyte*) toStringz(phobosConf)); // backup the Phobos Build config |
|---|
| | 114 | MoveFileA(cast(ubyte*) toStringz(tangoConf), cast(ubyte*) toStringz(targetConf)); // put Tango's Build config in place |
|---|
| 115 | 115 | |
|---|
| 116 | | if (!CopyFileA(toStringz(tangoLib), toStringz(targetLib), false)) |
|---|
| | 116 | if (!CopyFileA(cast(ubyte*) toStringz(tangoLib), cast(ubyte*) toStringz(targetLib), false)) |
|---|
| 117 | 117 | showMessage("Error: Could not find " ~ tangoLib); |
|---|
| 118 | 118 | else |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic